comparison gsm-fw/nucleus/ev_defs.h @ 143:afceeeb2cba1

Our nuc-fw is destined to become gsm-fw, so I went ahead and did the big hg mv
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 12 Nov 2013 05:35:48 +0000
parents nuc-fw/nucleus/ev_defs.h@947b1f473960
children
comparison
equal deleted inserted replaced
142:15d5977390c2 143:afceeeb2cba1
1 /*************************************************************************/
2 /* */
3 /* Copyright Mentor Graphics Corporation 2002 */
4 /* All Rights Reserved. */
5 /* */
6 /* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS */
7 /* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS */
8 /* SUBJECT TO LICENSE TERMS. */
9 /* */
10 /*************************************************************************/
11
12 /*************************************************************************/
13 /* */
14 /* FILE NAME VERSION */
15 /* */
16 /* ev_defs.h Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* EV - Event Group Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains data structure definitions and constants for */
25 /* the Event Flag Group component. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* EV_GCB Event Group control block */
30 /* EV_SUSPEND Event Group suspension block */
31 /* */
32 /* FUNCTIONS */
33 /* */
34 /* None */
35 /* */
36 /* DEPENDENCIES */
37 /* */
38 /* cs_defs.h Common service definitions */
39 /* tc_defs.h Thread Control definitions */
40 /* */
41 /* HISTORY */
42 /* */
43 /* NAME DATE REMARKS */
44 /* */
45 /* 03-01-1993 Created initial version 1.0 */
46 /* 04-19-1993 Verified version 1.0 */
47 /* 03-01-1994 Moved include files outside of */
48 /* the file #ifndef to allow the */
49 /* use of actual data structures, */
50 /* removed protect structure, */
51 /* added padding logic, */
52 /* resulting in version 1.1 */
53 /* */
54 /* 03-18-1994 Verified version 1.1 */
55 /* 04-17-1996 updated to version 1.2 */
56 /* 03-24-1998 Released version 1.3 */
57 /* 03-26-1999 Released 1.11m (new release */
58 /* numbering scheme) */
59 /* 04-17-2002 Released version 1.13m */
60 /* 11-07-2002 Released version 1.14 */
61 /*************************************************************************/
62
63 #include "cs_defs.h" /* Common service constants */
64 #include "tc_defs.h" /* Thread control constants */
65
66
67 /* Check to see if the file has been included already. */
68
69 #ifndef EV_DEFS
70 #define EV_DEFS
71
72
73 /* Define constants local to this component. */
74
75 #define EV_EVENT_ID 0x45564e54UL
76 #define EV_AND 0x2
77 #define EV_CONSUME 0x1
78
79
80 /* Define the Event Group Control Block data type. */
81
82 typedef struct EV_GCB_STRUCT
83 {
84 CS_NODE ev_created; /* Node for linking to */
85 /* created Events list */
86 UNSIGNED ev_id; /* Internal EV ID */
87 CHAR ev_name[NU_MAX_NAME]; /* Event group name */
88 UNSIGNED ev_current_events; /* Current event flags */
89 UNSIGNED ev_tasks_waiting; /* Number of waiting tasks*/
90 struct EV_SUSPEND_STRUCT
91 *ev_suspension_list; /* Suspension list */
92 } EV_GCB;
93
94
95 /* Define the Event Group suspension structure. This structure is allocated
96 off of the caller's stack. */
97
98 typedef struct EV_SUSPEND_STRUCT
99 {
100 CS_NODE ev_suspend_link; /* Link to suspend blocks */
101 EV_GCB *ev_event_group; /* Pointer to Event group */
102 UNSIGNED ev_requested_events; /* Requested event flags */
103 DATA_ELEMENT ev_operation; /* Event operation */
104 #if PAD_1
105 DATA_ELEMENT ev_padding[PAD_1];
106 #endif
107 TC_TCB *ev_suspended_task; /* Task suspended */
108 STATUS ev_return_status; /* Return status */
109 UNSIGNED ev_actual_events; /* Event flags returned */
110 } EV_SUSPEND;
111
112 #endif
113
114
115
116
117