FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/nucleus/qu_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/qu_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 /* qu_defs.h Nucleus PLUS 1.14 */ | |
17 /* */ | |
18 /* COMPONENT */ | |
19 /* */ | |
20 /* QU - Queue Management */ | |
21 /* */ | |
22 /* DESCRIPTION */ | |
23 /* */ | |
24 /* This file contains data structure definitions and constants for */ | |
25 /* the message Queue component. */ | |
26 /* */ | |
27 /* DATA STRUCTURES */ | |
28 /* */ | |
29 /* QU_QCB Queue control block */ | |
30 /* QU_SUSPEND Queue 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 /* 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 protection structure, */ | |
51 /* put padding into structure, */ | |
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 QU_DEFS | |
70 #define QU_DEFS | |
71 | |
72 | |
73 /* Define constants local to this component. */ | |
74 | |
75 #define QU_QUEUE_ID 0x51554555UL | |
76 | |
77 | |
78 /* Define the Queue Control Block data type. */ | |
79 | |
80 typedef struct QU_QCB_STRUCT | |
81 { | |
82 CS_NODE qu_created; /* Node for linking to */ | |
83 /* created queue list */ | |
84 UNSIGNED qu_id; /* Internal QCB ID */ | |
85 CHAR qu_name[NU_MAX_NAME]; /* Queue name */ | |
86 BOOLEAN qu_fixed_size; /* Fixed-size messages? */ | |
87 BOOLEAN qu_fifo_suspend; /* Suspension type flag */ | |
88 #if PAD_2 | |
89 DATA_ELEMENT qu_padding[PAD_2]; | |
90 #endif | |
91 UNSIGNED qu_queue_size; /* Total size of queue */ | |
92 UNSIGNED qu_messages; /* Messages in queue */ | |
93 UNSIGNED qu_message_size; /* Size of each message */ | |
94 UNSIGNED qu_available; /* Available words */ | |
95 UNSIGNED_PTR qu_start; /* Start of queue area */ | |
96 UNSIGNED_PTR qu_end; /* End of queue area + 1 */ | |
97 UNSIGNED_PTR qu_read; /* Read pointer */ | |
98 UNSIGNED_PTR qu_write; /* Write pointer */ | |
99 UNSIGNED qu_tasks_waiting; /* Number of waiting tasks*/ | |
100 struct QU_SUSPEND_STRUCT | |
101 *qu_urgent_list; /* Urgent message suspend */ | |
102 struct QU_SUSPEND_STRUCT | |
103 *qu_suspension_list; /* Suspension list */ | |
104 } QU_QCB; | |
105 | |
106 | |
107 /* Define the queue suspension structure. This structure is allocated off of | |
108 the caller's stack. */ | |
109 | |
110 typedef struct QU_SUSPEND_STRUCT | |
111 { | |
112 CS_NODE qu_suspend_link; /* Link to suspend blocks */ | |
113 QU_QCB *qu_queue; /* Pointer to the queue */ | |
114 TC_TCB *qu_suspended_task; /* Task suspended */ | |
115 UNSIGNED_PTR qu_message_area; /* Pointer to message area*/ | |
116 UNSIGNED qu_message_size; /* Message size requested */ | |
117 UNSIGNED qu_actual_size; /* Actual size of message */ | |
118 STATUS qu_return_status; /* Return status */ | |
119 } QU_SUSPEND; | |
120 | |
121 #endif | |
122 | |
123 | |
124 | |
125 |