comparison src/nucleus/qu_extr.h @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
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_extr.h Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* QU - Queue 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 /* qu_defs.h Queue 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 "qu_defs.h" /* Include QU constants */
61
62
63 /* Check to see if the file has been included already. */
64
65 #ifndef QU_EXTR
66 #define QU_EXTR
67
68
69 /* Initialization functions. */
70
71 VOID QUI_Initialize(VOID);
72
73
74 /* Core error checking functions. */
75
76 STATUS QUCE_Create_Queue(NU_QUEUE *queue_ptr, CHAR *name,
77 VOID *start_address, UNSIGNED queue_size,
78 OPTION message_type, UNSIGNED message_size,
79 OPTION suspend_type);
80 STATUS QUCE_Delete_Queue(NU_QUEUE *queue_ptr);
81 STATUS QUCE_Send_To_Queue(NU_QUEUE *queue_ptr, VOID *message,
82 UNSIGNED size, UNSIGNED suspend);
83 STATUS QUCE_Receive_From_Queue(NU_QUEUE *queue_ptr, VOID *message,
84 UNSIGNED size, UNSIGNED *actual_size, UNSIGNED suspend);
85
86 /* Supplemental error checking functions. */
87
88 STATUS QUSE_Reset_Queue(NU_QUEUE *queue_ptr);
89 STATUS QUSE_Send_To_Front_Of_Queue(NU_QUEUE *queue_ptr, VOID *message,
90 UNSIGNED size, UNSIGNED suspend);
91 STATUS QUSE_Broadcast_To_Queue(NU_QUEUE *queue_ptr, VOID *message,
92 UNSIGNED size, UNSIGNED suspend);
93
94 /* Core processing functions. */
95
96 STATUS QUC_Create_Queue(NU_QUEUE *queue_ptr, CHAR *name,
97 VOID *start_address, UNSIGNED queue_size,
98 OPTION message_type, UNSIGNED message_size,
99 OPTION suspend_type);
100 STATUS QUC_Delete_Queue(NU_QUEUE *queue_ptr);
101 STATUS QUC_Send_To_Queue(NU_QUEUE *queue_ptr, VOID *message,
102 UNSIGNED size, UNSIGNED suspend);
103 STATUS QUC_Receive_From_Queue(NU_QUEUE *queue_ptr, VOID *message,
104 UNSIGNED size, UNSIGNED *actual_size, UNSIGNED suspend);
105
106 /* Supplemental processing functions. */
107
108 STATUS QUS_Reset_Queue(NU_QUEUE *queue_ptr);
109 STATUS QUS_Send_To_Front_Of_Queue(NU_QUEUE *queue_ptr, VOID *message,
110 UNSIGNED size, UNSIGNED suspend);
111 STATUS QUS_Broadcast_To_Queue(NU_QUEUE *queue_ptr, VOID *message,
112 UNSIGNED size, UNSIGNED suspend);
113
114 /* Information gathering functions. */
115
116
117 UNSIGNED QUF_Established_Queues(VOID);
118 STATUS QUF_Queue_Information(NU_QUEUE *queue_ptr, CHAR *name,
119 VOID **start_address, UNSIGNED *queue_size,
120 UNSIGNED *available, UNSIGNED *messages,
121 OPTION *message_type, UNSIGNED *message_size,
122 OPTION *suspend_type, UNSIGNED *tasks_waiting,
123 NU_TASK **first_task);
124 UNSIGNED QUF_Queue_Pointers(NU_QUEUE **pointer_list,
125 UNSIGNED maximum_pointers);
126
127 #endif
128
129
130
131