[ac7d5ef0] | 1 | /* |
---|
| 2 | * Message Queue Manager |
---|
| 3 | * |
---|
| 4 | * |
---|
| 5 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
| 6 | * On-Line Applications Research Corporation (OAR). |
---|
| 7 | * All rights assigned to U.S. Government, 1994. |
---|
| 8 | * |
---|
| 9 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
| 10 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
| 11 | * notice must appear in all copies of this file and its derivatives. |
---|
| 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #include <rtems/system.h> |
---|
[3a4ae6c] | 17 | #include <rtems/rtems/status.h> |
---|
| 18 | #include <rtems/rtems/attr.h> |
---|
[5e9b32b] | 19 | #include <rtems/score/chain.h> |
---|
| 20 | #include <rtems/score/isr.h> |
---|
[3a4ae6c] | 21 | #include <rtems/rtems/message.h> |
---|
[5e9b32b] | 22 | #include <rtems/score/object.h> |
---|
[3a4ae6c] | 23 | #include <rtems/rtems/options.h> |
---|
[5e9b32b] | 24 | #include <rtems/score/states.h> |
---|
| 25 | #include <rtems/score/thread.h> |
---|
| 26 | #include <rtems/score/wkspace.h> |
---|
[3b76313] | 27 | #include <rtems/score/interr.h> |
---|
[ac7d5ef0] | 28 | |
---|
| 29 | void _Message_queue_Manager_initialization( |
---|
[b06e68ef] | 30 | unsigned32 maximum_message_queues |
---|
[ac7d5ef0] | 31 | ) |
---|
| 32 | { |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | rtems_status_code rtems_message_queue_create( |
---|
[3235ad9] | 36 | rtems_name name, |
---|
[ac7d5ef0] | 37 | unsigned32 count, |
---|
[b06e68ef] | 38 | unsigned32 max_message_size, |
---|
| 39 | rtems_attribute attribute_set, |
---|
[ac7d5ef0] | 40 | Objects_Id *id |
---|
| 41 | ) |
---|
| 42 | { |
---|
[3b76313] | 43 | _Internal_error_Occurred( |
---|
| 44 | INTERNAL_ERROR_RTEMS_API, |
---|
| 45 | FALSE, |
---|
| 46 | RTEMS_NOT_CONFIGURED |
---|
| 47 | ); |
---|
[3a4ae6c] | 48 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 49 | } |
---|
| 50 | |
---|
| 51 | rtems_status_code rtems_message_queue_ident( |
---|
[3235ad9] | 52 | rtems_name name, |
---|
[ac7d5ef0] | 53 | unsigned32 node, |
---|
| 54 | Objects_Id *id |
---|
| 55 | ) |
---|
| 56 | { |
---|
[3b76313] | 57 | _Internal_error_Occurred( |
---|
| 58 | INTERNAL_ERROR_RTEMS_API, |
---|
| 59 | FALSE, |
---|
| 60 | RTEMS_NOT_CONFIGURED |
---|
| 61 | ); |
---|
[3a4ae6c] | 62 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 63 | } |
---|
| 64 | |
---|
| 65 | rtems_status_code rtems_message_queue_delete( |
---|
| 66 | Objects_Id id |
---|
| 67 | ) |
---|
| 68 | { |
---|
[3b76313] | 69 | _Internal_error_Occurred( |
---|
| 70 | INTERNAL_ERROR_RTEMS_API, |
---|
| 71 | FALSE, |
---|
| 72 | RTEMS_NOT_CONFIGURED |
---|
| 73 | ); |
---|
[3a4ae6c] | 74 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 75 | } |
---|
| 76 | |
---|
| 77 | rtems_status_code rtems_message_queue_send( |
---|
| 78 | Objects_Id id, |
---|
[b06e68ef] | 79 | void *buffer, |
---|
| 80 | unsigned32 size |
---|
[ac7d5ef0] | 81 | ) |
---|
| 82 | { |
---|
[3b76313] | 83 | _Internal_error_Occurred( |
---|
| 84 | INTERNAL_ERROR_RTEMS_API, |
---|
| 85 | FALSE, |
---|
| 86 | RTEMS_NOT_CONFIGURED |
---|
| 87 | ); |
---|
[3a4ae6c] | 88 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 89 | } |
---|
| 90 | |
---|
| 91 | rtems_status_code rtems_message_queue_urgent( |
---|
| 92 | Objects_Id id, |
---|
[b06e68ef] | 93 | void *buffer, |
---|
| 94 | unsigned32 size |
---|
[ac7d5ef0] | 95 | ) |
---|
| 96 | { |
---|
[3b76313] | 97 | _Internal_error_Occurred( |
---|
| 98 | INTERNAL_ERROR_RTEMS_API, |
---|
| 99 | FALSE, |
---|
| 100 | RTEMS_NOT_CONFIGURED |
---|
| 101 | ); |
---|
[3a4ae6c] | 102 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 103 | } |
---|
| 104 | |
---|
| 105 | rtems_status_code rtems_message_queue_broadcast( |
---|
| 106 | Objects_Id id, |
---|
| 107 | void *buffer, |
---|
[b06e68ef] | 108 | unsigned32 size, |
---|
[ac7d5ef0] | 109 | unsigned32 *count |
---|
| 110 | ) |
---|
| 111 | { |
---|
[3b76313] | 112 | _Internal_error_Occurred( |
---|
| 113 | INTERNAL_ERROR_RTEMS_API, |
---|
| 114 | FALSE, |
---|
| 115 | RTEMS_NOT_CONFIGURED |
---|
| 116 | ); |
---|
[3a4ae6c] | 117 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 118 | } |
---|
| 119 | |
---|
| 120 | rtems_status_code rtems_message_queue_receive( |
---|
| 121 | Objects_Id id, |
---|
| 122 | void *buffer, |
---|
[b06e68ef] | 123 | unsigned32 *size_p, |
---|
[ac7d5ef0] | 124 | unsigned32 option_set, |
---|
[b06e68ef] | 125 | rtems_interval timeout |
---|
[ac7d5ef0] | 126 | ) |
---|
| 127 | { |
---|
[3b76313] | 128 | _Internal_error_Occurred( |
---|
| 129 | INTERNAL_ERROR_RTEMS_API, |
---|
| 130 | FALSE, |
---|
| 131 | RTEMS_NOT_CONFIGURED |
---|
| 132 | ); |
---|
[3a4ae6c] | 133 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 134 | } |
---|
| 135 | |
---|
| 136 | rtems_status_code rtems_message_queue_flush( |
---|
| 137 | Objects_Id id, |
---|
| 138 | unsigned32 *count |
---|
| 139 | ) |
---|
| 140 | { |
---|
[3b76313] | 141 | _Internal_error_Occurred( |
---|
| 142 | INTERNAL_ERROR_RTEMS_API, |
---|
| 143 | FALSE, |
---|
| 144 | RTEMS_NOT_CONFIGURED |
---|
| 145 | ); |
---|
[3a4ae6c] | 146 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 147 | } |
---|
| 148 | |
---|
| 149 | unsigned32 _Message_queue_Flush_support( |
---|
| 150 | Message_queue_Control *the_message_queue |
---|
| 151 | ) |
---|
| 152 | { |
---|
[3b76313] | 153 | _Internal_error_Occurred( |
---|
| 154 | INTERNAL_ERROR_RTEMS_API, |
---|
| 155 | FALSE, |
---|
| 156 | RTEMS_NOT_CONFIGURED |
---|
| 157 | ); |
---|
| 158 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 159 | return 0; |
---|
| 160 | } |
---|
| 161 | |
---|
| 162 | boolean _Message_queue_Seize( |
---|
| 163 | Message_queue_Control *the_message_queue, |
---|
[b06e68ef] | 164 | rtems_option option_set, |
---|
| 165 | void *buffer, |
---|
| 166 | unsigned32 *size_p |
---|
[ac7d5ef0] | 167 | ) |
---|
| 168 | { |
---|
[3b76313] | 169 | _Internal_error_Occurred( |
---|
| 170 | INTERNAL_ERROR_RTEMS_API, |
---|
| 171 | FALSE, |
---|
| 172 | RTEMS_NOT_CONFIGURED |
---|
| 173 | ); |
---|
| 174 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 175 | _Thread_Executing->Wait.return_code = RTEMS_UNSATISFIED; |
---|
| 176 | return TRUE; |
---|
| 177 | } |
---|
| 178 | |
---|
| 179 | rtems_status_code _Message_queue_Submit( |
---|
| 180 | Objects_Id id, |
---|
[b06e68ef] | 181 | void *buffer, |
---|
| 182 | unsigned32 size, |
---|
[ac7d5ef0] | 183 | Message_queue_Submit_types submit_type |
---|
| 184 | ) |
---|
| 185 | { |
---|
[3b76313] | 186 | _Internal_error_Occurred( |
---|
| 187 | INTERNAL_ERROR_RTEMS_API, |
---|
| 188 | FALSE, |
---|
| 189 | RTEMS_NOT_CONFIGURED |
---|
| 190 | ); |
---|
[3a4ae6c] | 191 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 192 | } |
---|