RTEMS CPU Kit with SuperCore  4.11.3
msgmp.h
Go to the documentation of this file.
1 
10 /* COPYRIGHT (c) 1989-2013.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_RTEMS_MSGMP_H
19 #define _RTEMS_RTEMS_MSGMP_H
20 
21 #ifndef _RTEMS_RTEMS_MESSAGEIMPL_H
22 # error "Never use <rtems/rtems/msgmp.h> directly; include <rtems/rtems/messageimpl.h> instead."
23 #endif
24 
25 #include <rtems/score/mpciimpl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
39 /*{*/
40 
45 typedef enum {
46  MESSAGE_QUEUE_MP_ANNOUNCE_CREATE = 0,
47  MESSAGE_QUEUE_MP_ANNOUNCE_DELETE = 1,
48  MESSAGE_QUEUE_MP_EXTRACT_PROXY = 2,
49  MESSAGE_QUEUE_MP_RECEIVE_REQUEST = 3,
50  MESSAGE_QUEUE_MP_RECEIVE_RESPONSE = 4,
51  MESSAGE_QUEUE_MP_SEND_REQUEST = 5,
52  MESSAGE_QUEUE_MP_SEND_RESPONSE = 6,
53  MESSAGE_QUEUE_MP_URGENT_REQUEST = 7,
54  MESSAGE_QUEUE_MP_URGENT_RESPONSE = 8,
55  MESSAGE_QUEUE_MP_BROADCAST_REQUEST = 9,
56  MESSAGE_QUEUE_MP_BROADCAST_RESPONSE = 10,
57  MESSAGE_QUEUE_MP_FLUSH_REQUEST = 11,
58  MESSAGE_QUEUE_MP_FLUSH_RESPONSE = 12,
59  MESSAGE_QUEUE_MP_GET_NUMBER_PENDING_REQUEST = 13,
60  MESSAGE_QUEUE_MP_GET_NUMBER_PENDING_RESPONSE = 14
62 
67 typedef struct {
68  rtems_packet_prefix Prefix;
70  rtems_name name;
71  rtems_option option_set;
72  Objects_Id proxy_id;
73  uint32_t count;
74  size_t size;
75  uint32_t pad0;
78 
79 #define MESSAGE_QUEUE_MP_PACKET_SIZE \
80  offsetof(Message_queue_MP_Packet, Buffer.buffer)
81 
92  Thread_Control *the_thread,
93  rtems_id id
94 );
95 
104  Objects_Id message_queue_id,
105  rtems_name name,
106  Objects_Id proxy_id
107 );
108 
117  Objects_Id message_queue_id,
118  const void *buffer,
119  size_t *size_p,
120  rtems_option option_set,
121  rtems_interval timeout
122 );
123 
132  Objects_Id message_queue_id,
133  Thread_Control *the_thread
134 );
135 
144  rtems_packet_prefix *the_packet_prefix
145 );
146 
155  Thread_Control *the_proxy
156 );
157 
166  void *argument
167 );
168 
175 
178 #ifdef __cplusplus
179 }
180 #endif
181 
182 #endif
183 /* end of file */
void _Message_queue_MP_Send_extract_proxy(void *argument)
_Message_queue_MP_Send_extract_proxy
Definition: msgmp.c:456
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:80
void _Message_queue_MP_Process_packet(rtems_packet_prefix *the_packet_prefix)
_Message_queue_MP_Process_packet
Definition: msgmp.c:260
Watchdog_Interval rtems_interval
Used to manage and manipulate intervals specified by clock ticks.
Definition: types.h:119
rtems_status_code
Classic API Status.
Definition: status.h:46
void _Message_queue_MP_Send_process_packet(Message_queue_MP_Remote_operations operation, Objects_Id message_queue_id, rtems_name name, Objects_Id proxy_id)
_Message_queue_MP_Send_process_packet
Definition: msgmp.c:37
uint32_t rtems_name
Classic API object name type.
Definition: types.h:74
This structure defines the Thread Control Block (TCB).
Definition: thread.h:671
rtems_status_code _Message_queue_MP_Send_request_packet(Message_queue_MP_Remote_operations operation, Objects_Id message_queue_id, const void *buffer, size_t *size_p, rtems_option option_set, rtems_interval timeout)
_Message_queue_MP_Send_request_packet
Definition: msgmp.c:92
uint32_t rtems_option
The following type defines the control block used to manage option sets.
Definition: options.h:45
Data types needed to manipulate the contents of message buffers.
Definition: coremsg.h:75
Message_queue_MP_Remote_operations
The following enumerated type defines the list of remote message queue operations.
Definition: msgmp.h:45
void _Message_queue_Core_message_queue_mp_support(Thread_Control *the_thread, rtems_id id)
Message_queue_Core_message_queue_mp_support.
Definition: msgmp.c:491
Message_queue_MP_Packet * _Message_queue_MP_Get_packet(void)
_Message_queue_MP_Get_packet
Definition: msgmp.c:475
void _Message_queue_MP_Send_object_was_deleted(Thread_Control *the_proxy)
_Message_queue_MP_Send_object_was_deleted
Definition: msgmp.c:438
void _Message_queue_MP_Send_response_packet(Message_queue_MP_Remote_operations operation, Objects_Id message_queue_id, Thread_Control *the_thread)
_Message_queue_MP_Send_response_packet
Definition: msgmp.c:202
uint32_t Objects_Id
The following type defines the control block used to manage object IDs.
Definition: object.h:122
The following data structure defines the packet used to perform remote message queue operations...
Definition: msgmp.h:67
MPCI Layer Implementation.