comparison nuc-fw/nucleus/mbi.c @ 79:947b1f473960

beginning of nuc-fw
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 11 Aug 2013 07:17:25 +0000
parents
children
comparison
equal deleted inserted replaced
78:2c266d4339ff 79:947b1f473960
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 /* mbi.c Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* MB - Mailbox Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains the initialization routine for the mailbox */
25 /* management component. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* None */
30 /* */
31 /* FUNCTIONS */
32 /* */
33 /* MBI_Initialize Mailbox Management Initialize*/
34 /* */
35 /* DEPENDENCIES */
36 /* */
37 /* mb_defs.h Mailbox 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 Update file copyright informaion, */
46 /* resulting in 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 "mb_defs.h" /* Mailbox constants */
60 #include "mb_extr.h" /* Mailbox interfaces */
61
62
63 /* Define external inner-component global data references. */
64
65 extern CS_NODE *MBD_Created_Mailboxes_List;
66 extern UNSIGNED MBD_Total_Mailboxes;
67 extern TC_PROTECT MBD_List_Protect;
68
69
70 /*************************************************************************/
71 /* */
72 /* FUNCTION */
73 /* */
74 /* MBI_Initialize */
75 /* */
76 /* DESCRIPTION */
77 /* */
78 /* This function initializes the data structures that control the */
79 /* operation of the Mailbox component (MB). There are no mailboxes */
80 /* initially. This routine must be called from Supervisor mode in */
81 /* Supervisor/User mode switched 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 /* MBD_Created_Mailboxes_List List of created mailboxes */
98 /* MBD_Total_Mailboxes Number of created mailboxes */
99 /* MBD_List_Protect Protection for mailbox 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 MBI_Initialize(VOID)
110 {
111 /* Initialize the created mailbox list to NU_NULL. */
112 MBD_Created_Mailboxes_List = NU_NULL;
113
114 /* Initialize the total number of created mailboxes to 0. */
115 MBD_Total_Mailboxes = 0;
116
117 /* Initialize the list protection structure. */
118 MBD_List_Protect.tc_tcb_pointer = NU_NULL;
119 }
120
121
122
123
124
125