comparison gpf/INC/NUC/ev_defs.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*************************************************************************/
2 /* */
3 /* Copyright (c) 1993-1996 Accelerated Technology, Inc. */
4 /* */
5 /* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
6 /* subject matter of this material. All manufacturing, reproduction, */
7 /* use, and sales rights pertaining to this subject matter are governed */
8 /* by the license agreement. The recipient of this software implicitly */
9 /* accepts the terms of the license. */
10 /* */
11 /*************************************************************************/
12
13 /*************************************************************************/
14 /* */
15 /* FILE NAME VERSION */
16 /* */
17 /* ev_defs.h PLUS 1.2 */
18 /* */
19 /* COMPONENT */
20 /* */
21 /* EV - Event Group Management */
22 /* */
23 /* DESCRIPTION */
24 /* */
25 /* This file contains data structure definitions and constants for */
26 /* the Event Flag Group component. */
27 /* */
28 /* AUTHOR */
29 /* */
30 /* William E. Lamie, Accelerated Technology, Inc. */
31 /* */
32 /* DATA STRUCTURES */
33 /* */
34 /* EV_GCB Event Group control block */
35 /* EV_SUSPEND Event Group suspension block */
36 /* */
37 /* FUNCTIONS */
38 /* */
39 /* None */
40 /* */
41 /* DEPENDENCIES */
42 /* */
43 /* cs_defs.h Common service definitions */
44 /* tc_defs.h Thread Control definitions */
45 /* */
46 /* HISTORY */
47 /* */
48 /* NAME DATE REMARKS */
49 /* */
50 /* W. Lamie 03-01-1993 Created initial version 1.0 */
51 /* D. Lamie 04-19-1993 Verified version 1.0 */
52 /* W. Lamie 03-01-1994 Moved include files outside of */
53 /* the file #ifndef to allow the */
54 /* use of actual data structures, */
55 /* removed protect structure, */
56 /* added padding logic, */
57 /* resulting in version 1.1 */
58 /* R. Pfaff - */
59 /* D. Lamie 03-18-1994 Verified version 1.1 */
60 /* M.Q. Qian 04-17-1996 updated to version 1.2 */
61 /* */
62 /*************************************************************************/
63
64 #include "cs_defs.h" /* Common service constants */
65 #include "tc_defs.h" /* Thread control constants */
66
67
68 /* Check to see if the file has been included already. */
69
70 #ifndef EV_DEFS
71 #define EV_DEFS
72
73
74 /* Define constants local to this component. */
75
76 #define EV_EVENT_ID 0x45564e54UL
77 #define EV_AND 0x2
78 #define EV_CONSUME 0x1
79
80
81 /* Define the Event Group Control Block data type. */
82
83 typedef struct EV_GCB_STRUCT
84 {
85 CS_NODE ev_created; /* Node for linking to */
86 /* created Events list */
87 UNSIGNED ev_id; /* Internal EV ID */
88 CHAR ev_name[NU_MAX_NAME]; /* Event group name */
89 UNSIGNED ev_current_events; /* Current event flags */
90 UNSIGNED ev_tasks_waiting; /* Number of waiting tasks*/
91 struct EV_SUSPEND_STRUCT
92 *ev_suspension_list; /* Suspension list */
93 } EV_GCB;
94
95
96 /* Define the Event Group suspension structure. This structure is allocated
97 off of the caller's stack. */
98
99 typedef struct EV_SUSPEND_STRUCT
100 {
101 CS_NODE ev_suspend_link; /* Link to suspend blocks */
102 EV_GCB *ev_event_group; /* Pointer to Event group */
103 UNSIGNED ev_requested_events; /* Requested event flags */
104 DATA_ELEMENT ev_operation; /* Event operation */
105 #if PAD_1
106 DATA_ELEMENT ev_padding[PAD_1];
107 #endif
108 TC_TCB *ev_suspended_task; /* Task suspended */
109 STATUS ev_return_status; /* Return status */
110 UNSIGNED ev_actual_events; /* Event flags returned */
111 } EV_SUSPEND;
112
113 #endif