FreeCalypso > hg > freecalypso-citrine
comparison nucleus/pi_extr.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 /* pi_extr.h Nucleus PLUS 1.14 */ | |
17 /* */ | |
18 /* COMPONENT */ | |
19 /* */ | |
20 /* PI - Pipe 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 /* pi_defs.h Pipe Management 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 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 "pi_defs.h" /* Include Pipe constants */ | |
61 | |
62 | |
63 /* Check to see if the file has been included already. */ | |
64 | |
65 #ifndef PI_EXTR | |
66 #define PI_EXTR | |
67 | |
68 | |
69 /* Initialization functions. */ | |
70 | |
71 VOID PII_Initialize(VOID); | |
72 | |
73 | |
74 /* Error checking core functions. */ | |
75 | |
76 STATUS PICE_Create_Pipe(NU_PIPE *pipe_ptr, CHAR *name, | |
77 VOID *start_address, UNSIGNED pipe_size, | |
78 OPTION message_type, UNSIGNED message_size, | |
79 OPTION suspend_type); | |
80 STATUS PICE_Delete_Pipe(NU_PIPE *pipe_ptr); | |
81 STATUS PICE_Send_To_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
82 UNSIGNED size, UNSIGNED suspend); | |
83 STATUS PICE_Receive_From_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
84 UNSIGNED size, UNSIGNED *actual_size, UNSIGNED suspend); | |
85 | |
86 | |
87 /* Error checking supplemental functions. */ | |
88 | |
89 STATUS PISE_Reset_Pipe(NU_PIPE *pipe_ptr); | |
90 STATUS PISE_Send_To_Front_Of_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
91 UNSIGNED size, UNSIGNED suspend); | |
92 STATUS PISE_Broadcast_To_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
93 UNSIGNED size, UNSIGNED suspend); | |
94 | |
95 | |
96 /* Core processing functions. */ | |
97 | |
98 STATUS PIC_Create_Pipe(NU_PIPE *pipe_ptr, CHAR *name, | |
99 VOID *start_address, UNSIGNED pipe_size, | |
100 OPTION message_type, UNSIGNED message_size, | |
101 OPTION suspend_type); | |
102 STATUS PIC_Delete_Pipe(NU_PIPE *pipe_ptr); | |
103 STATUS PIC_Send_To_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
104 UNSIGNED size, UNSIGNED suspend); | |
105 STATUS PIC_Receive_From_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
106 UNSIGNED size, UNSIGNED *actual_size, UNSIGNED suspend); | |
107 | |
108 | |
109 /* Supplemental processing functions. */ | |
110 | |
111 STATUS PIS_Reset_Pipe(NU_PIPE *pipe_ptr); | |
112 STATUS PIS_Send_To_Front_Of_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
113 UNSIGNED size, UNSIGNED suspend); | |
114 STATUS PIS_Broadcast_To_Pipe(NU_PIPE *pipe_ptr, VOID *message, | |
115 UNSIGNED size, UNSIGNED suspend); | |
116 | |
117 | |
118 /* Information retrieval functions. */ | |
119 | |
120 UNSIGNED PIF_Established_Pipes(VOID); | |
121 STATUS PIF_Pipe_Information(NU_PIPE *pipe_ptr, CHAR *name, | |
122 VOID **start_address, UNSIGNED *pipe_size, | |
123 UNSIGNED *available, UNSIGNED *messages, | |
124 OPTION *message_type, UNSIGNED *message_size, | |
125 OPTION *suspend_type, UNSIGNED *tasks_waiting, | |
126 NU_TASK **first_task); | |
127 UNSIGNED PIF_Pipe_Pointers(NU_PIPE **pointer_list, | |
128 UNSIGNED maximum_pointers); | |
129 | |
130 #endif | |
131 | |
132 | |
133 | |
134 | |
135 |