OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [include/] [rtems/] [rtems/] [msgmp.h] - Blame information for rev 219

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  msgmp.h
2
 *
3
 *  This include file contains all the constants and structures associated
4
 *  with the Multiprocessing Support in the Message Manager.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: msgmp.h,v 1.2 2001-09-27 11:59:18 chris Exp $
14
 */
15
 
16
#ifndef __RTEMS_MESSAGE_QUEUE_MP_h
17
#define __RTEMS_MESSAGE_QUEUE_MP_h
18
 
19
#ifdef __cplusplus
20
extern "C" {
21
#endif
22
 
23
#include <rtems/rtems/message.h>
24
#include <rtems/score/mppkt.h>
25
#include <rtems/score/object.h>
26
#include <rtems/rtems/options.h>
27
#include <rtems/score/thread.h>
28
#include <rtems/score/watchdog.h>
29
 
30
/*
31
 *  The following enumerated type defines the list of
32
 *  remote message queue operations.
33
 */
34
 
35
typedef enum {
36
  MESSAGE_QUEUE_MP_ANNOUNCE_CREATE             =  0,
37
  MESSAGE_QUEUE_MP_ANNOUNCE_DELETE             =  1,
38
  MESSAGE_QUEUE_MP_EXTRACT_PROXY               =  2,
39
  MESSAGE_QUEUE_MP_RECEIVE_REQUEST             =  3,
40
  MESSAGE_QUEUE_MP_RECEIVE_RESPONSE            =  4,
41
  MESSAGE_QUEUE_MP_SEND_REQUEST                =  5,
42
  MESSAGE_QUEUE_MP_SEND_RESPONSE               =  6,
43
  MESSAGE_QUEUE_MP_URGENT_REQUEST              =  7,
44
  MESSAGE_QUEUE_MP_URGENT_RESPONSE             =  8,
45
  MESSAGE_QUEUE_MP_BROADCAST_REQUEST           =  9,
46
  MESSAGE_QUEUE_MP_BROADCAST_RESPONSE          = 10,
47
  MESSAGE_QUEUE_MP_FLUSH_REQUEST               = 11,
48
  MESSAGE_QUEUE_MP_FLUSH_RESPONSE              = 12,
49
  MESSAGE_QUEUE_MP_GET_NUMBER_PENDING_REQUEST  = 13,
50
  MESSAGE_QUEUE_MP_GET_NUMBER_PENDING_RESPONSE = 14
51
}   Message_queue_MP_Remote_operations;
52
 
53
/*
54
 *  The following data structure defines the packet used to perform
55
 *  remote message queue operations.
56
 */
57
 
58
typedef struct {
59
  rtems_packet_prefix                Prefix;
60
  Message_queue_MP_Remote_operations operation;
61
  rtems_name                         name;
62
  rtems_option                       option_set;
63
  Objects_Id                         proxy_id;
64
  unsigned32                         count;
65
  unsigned32                         size;
66
  unsigned32                         pad0;
67
  CORE_message_queue_Buffer          Buffer;
68
}   Message_queue_MP_Packet;
69
 
70
/*
71
 *  _Message_queue_MP_Send_process_packet
72
 *
73
 *  DESCRIPTION:
74
 *
75
 *  This routine performs a remote procedure call so that a
76
 *  process operation can be performed on another node.
77
 */
78
 
79
void _Message_queue_MP_Send_process_packet (
80
  Message_queue_MP_Remote_operations operation,
81
  Objects_Id                         message_queue_id,
82
  rtems_name                         name,
83
  Objects_Id                         proxy_id
84
);
85
 
86
/*
87
 *  _Message_queue_MP_Send_request_packet
88
 *
89
 *  DESCRIPTION:
90
 *
91
 *  This routine performs a remote procedure call so that a
92
 *  directive operation can be initiated on another node.
93
 */
94
 
95
rtems_status_code _Message_queue_MP_Send_request_packet (
96
  Message_queue_MP_Remote_operations  operation,
97
  Objects_Id                          message_queue_id,
98
  void                               *buffer,
99
  unsigned32                         *size_p,
100
  rtems_option                        option_set,
101
  Watchdog_Interval                   timeout
102
);
103
 
104
/*
105
 *  _Message_queue_MP_Send_response_packet
106
 *
107
 *  DESCRIPTION:
108
 *
109
 *  This routine performs a remote procedure call so that a
110
 *  directive can be performed on another node.
111
 */
112
 
113
void _Message_queue_MP_Send_response_packet (
114
  Message_queue_MP_Remote_operations  operation,
115
  Objects_Id                          message_queue_id,
116
  Thread_Control                     *the_thread
117
);
118
 
119
/*
120
 *
121
 *  _Message_queue_MP_Process_packet
122
 *
123
 *  DESCRIPTION:
124
 *
125
 *  This routine performs the actions specific to this package for
126
 *  the request from another node.
127
 */
128
 
129
void _Message_queue_MP_Process_packet (
130
  rtems_packet_prefix *the_packet_prefix
131
);
132
 
133
/*
134
 *  _Message_queue_MP_Send_object_was_deleted
135
 *
136
 *  DESCRIPTION:
137
 *
138
 *  This routine is invoked indirectly by the thread queue
139
 *  when a proxy has been removed from the thread queue and
140
 *  the remote node must be informed of this.
141
 */
142
 
143
void _Message_queue_MP_Send_object_was_deleted (
144
  Thread_Control *the_proxy
145
);
146
 
147
/*
148
 *  _Message_queue_MP_Send_extract_proxy
149
 *
150
 *  DESCRIPTION:
151
 *
152
 *  This routine is invoked when a task is deleted and it
153
 *  has a proxy which must be removed from a thread queue and
154
 *  the remote node must be informed of this.
155
 */
156
 
157
void _Message_queue_MP_Send_extract_proxy (
158
  Thread_Control *the_thread
159
);
160
 
161
/*
162
 *  _Message_queue_MP_Get_packet
163
 *
164
 *  DESCRIPTION:
165
 *
166
 *  This function is used to obtain a message queue mp packet.
167
 */
168
 
169
Message_queue_MP_Packet *_Message_queue_MP_Get_packet ( void );
170
 
171
#ifdef __cplusplus
172
}
173
#endif
174
 
175
#endif
176
/* end of file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.