comparison gsm-fw/nucleus/qui.c @ 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/qui.c@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 /* qui.c Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* QU - Queue Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains the initialization routine for the queue */
25 /* management component. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* None */
30 /* */
31 /* FUNCTIONS */
32 /* */
33 /* QUI_Initialize Queue Management Initialize */
34 /* */
35 /* DEPENDENCIES */
36 /* */
37 /* qu_defs.h Queue component constants */
38 /* */
39 /* HISTORY */
40 /* */
41 /* DATE REMARKS */
42 /* */
43 /* 03-01-1993 Created initial version 1.0 */
44 /* 04-19-1993 Verified version 1.0 */
45 /* 03-01-1994 Modified copyright, resulting in */
46 /* version 1.1 */
47 /* */
48 /* 03-18-1994 Verified version 1.1 */
49 /* 04-17-1996 updated to version 1.2 */
50 /* 03-24-1998 Released version 1.3 */
51 /* 03-26-1999 Released 1.11m (new release */
52 /* numbering scheme) */
53 /* 04-17-2002 Released version 1.13m */
54 /* 11-07-2002 Released version 1.14 */
55 /*************************************************************************/
56 #define NU_SOURCE_FILE
57
58
59 #include "qu_defs.h" /* Queue constants */
60 #include "qu_extr.h" /* Queue interfaces */
61
62
63 /* Define external inner-component global data references. */
64
65 extern CS_NODE *QUD_Created_Queues_List;
66 extern UNSIGNED QUD_Total_Queues;
67 extern TC_PROTECT QUD_List_Protect;
68
69
70 /*************************************************************************/
71 /* */
72 /* FUNCTION */
73 /* */
74 /* QUI_Initialize */
75 /* */
76 /* DESCRIPTION */
77 /* */
78 /* This function initializes the data structures that control the */
79 /* operation of the Queue component (QU). There are no queues */
80 /* initially. This routine must be called from Supervisor mode in */
81 /* Supervisor/User mode switching kernels. */
82 /* */
83 /* CALLED BY */
84 /* */
85 /* INC_Initialize System initialization */
86 /* */
87 /* CALLS */
88 /* */
89 /* None */
90 /* */
91 /* INPUTS */
92 /* */
93 /* None */
94 /* */
95 /* OUTPUTS */
96 /* */
97 /* QUD_Created_Queues_List List of created queues */
98 /* QUD_Total_Queues Number of created queues */
99 /* QUD_List_Protect Protection for queue list */
100 /* */
101 /* HISTORY */
102 /* */
103 /* DATE REMARKS */
104 /* */
105 /* 03-01-1993 Created initial version 1.0 */
106 /* 04-19-1993 Verified version 1.0 */
107 /* */
108 /*************************************************************************/
109 VOID QUI_Initialize(VOID)
110 {
111
112 /* Initialize the created queue list to NU_NULL. */
113 QUD_Created_Queues_List = NU_NULL;
114
115 /* Initialize the total number of created queues to 0. */
116 QUD_Total_Queues = 0;
117
118 /* Initialize the list protection structure. */
119 QUD_List_Protect.tc_tcb_pointer = NU_NULL;
120 }
121
122
123
124
125