FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/nucleus/sm_extr.h @ 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 /* sm_extr.h Nucleus PLUS 1.14 */ | |
17 /* */ | |
18 /* COMPONENT */ | |
19 /* */ | |
20 /* SM - Semaphore Management */ | |
21 /* */ | |
22 /* DESCRIPTION */ | |
23 /* */ | |
24 /* This file contains function prototypes of all functions */ | |
25 /* accessible to other components. */ | |
26 /* */ | |
27 /* DATA STRUCTURES */ | |
28 /* */ | |
29 /* None */ | |
30 /* */ | |
31 /* FUNCTIONS */ | |
32 /* */ | |
33 /* None */ | |
34 /* */ | |
35 /* DEPENDENCIES */ | |
36 /* */ | |
37 /* sm_defs.h Semaphore Management constant*/ | |
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 Moved include files outside of */ | |
46 /* the file #ifndef to allow the */ | |
47 /* use of actual data structures, */ | |
48 /* modified function prototypes, */ | |
49 /* resulting in version 1.1 */ | |
50 /* */ | |
51 /* 03-18-1994 Verified version 1.1 */ | |
52 /* 04-17-1996 updated to version 1.2 */ | |
53 /* 03-24-1998 Released version 1.3 */ | |
54 /* 03-26-1999 Released 1.11m (new release */ | |
55 /* numbering scheme) */ | |
56 /* 04-17-2002 Released version 1.13m */ | |
57 /* 11-07-2002 Released version 1.14 */ | |
58 /*************************************************************************/ | |
59 | |
60 #include "sm_defs.h" /* Include SM constants */ | |
61 | |
62 | |
63 /* Check to see if the file has been included already. */ | |
64 | |
65 #ifndef SM_EXTR | |
66 #define SM_EXTR | |
67 | |
68 | |
69 /* Initialization functions. */ | |
70 | |
71 VOID SMI_Initialize(VOID); | |
72 | |
73 | |
74 /* Error checking core functions. */ | |
75 | |
76 STATUS SMCE_Create_Semaphore(NU_SEMAPHORE *semaphore_ptr, CHAR *name, | |
77 UNSIGNED initial_count, OPTION suspend_type); | |
78 STATUS SMCE_Delete_Semaphore(NU_SEMAPHORE *semaphore_ptr); | |
79 STATUS SMCE_Obtain_Semaphore(NU_SEMAPHORE *semaphore_ptr, | |
80 UNSIGNED suspend); | |
81 STATUS SMCE_Release_Semaphore(NU_SEMAPHORE *semaphore_ptr); | |
82 | |
83 | |
84 /* Error checking supplemental functions. */ | |
85 | |
86 STATUS SMSE_Reset_Semaphore(NU_SEMAPHORE *semaphore_ptr, | |
87 UNSIGNED initial_count); | |
88 | |
89 | |
90 /* Core processing functions. */ | |
91 | |
92 STATUS SMC_Create_Semaphore(NU_SEMAPHORE *semaphore_ptr, CHAR *name, | |
93 UNSIGNED initial_count, OPTION suspend_type); | |
94 STATUS SMC_Delete_Semaphore(NU_SEMAPHORE *semaphore_ptr); | |
95 STATUS SMC_Obtain_Semaphore(NU_SEMAPHORE *semaphore_ptr, | |
96 UNSIGNED suspend); | |
97 STATUS SMC_Release_Semaphore(NU_SEMAPHORE *semaphore_ptr); | |
98 | |
99 | |
100 /* Supplemental processing functions. */ | |
101 | |
102 STATUS SMS_Reset_Semaphore(NU_SEMAPHORE *semaphore_ptr, | |
103 UNSIGNED initial_count); | |
104 | |
105 | |
106 /* Information retrieval functions. */ | |
107 | |
108 UNSIGNED SMF_Established_Semaphores(VOID); | |
109 STATUS SMF_Semaphore_Information(NU_SEMAPHORE *semaphore_ptr, | |
110 CHAR *name, UNSIGNED *current_count, OPTION *suspend_type, | |
111 UNSIGNED *tasks_waiting, NU_TASK **first_task); | |
112 UNSIGNED SMF_Semaphore_Pointers(NU_SEMAPHORE **pointer_list, | |
113 UNSIGNED maximum_pointers); | |
114 #endif | |
115 | |
116 | |
117 | |
118 |