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/] [regionmp.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
/*  regionmp.h
2
 *
3
 *  This include file contains all the constants and structures associated
4
 *  with the Multiprocessing Support in the Region 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: regionmp.h,v 1.2 2001-09-27 11:59:18 chris Exp $
14
 */
15
 
16
#ifndef __RTEMS_REGION_MP_h
17
#define __RTEMS_REGION_MP_h
18
 
19
#ifdef __cplusplus
20
extern "C" {
21
#endif
22
 
23
#include <rtems/score/mppkt.h>
24
#include <rtems/score/object.h>
25
#include <rtems/score/thread.h>
26
 
27
#include <rtems/rtems/options.h>
28
#include <rtems/rtems/region.h>
29
 
30
/*
31
 *  The following enumerated type defines the list of
32
 *  remote region operations.
33
 */
34
 
35
typedef enum {
36
  REGION_MP_ANNOUNCE_CREATE         =  0,
37
  REGION_MP_ANNOUNCE_DELETE         =  1,
38
  REGION_MP_EXTRACT_PROXY           =  2,
39
  REGION_MP_GET_SEGMENT_REQUEST     =  3,
40
  REGION_MP_GET_SEGMENT_RESPONSE    =  4,
41
  REGION_MP_RETURN_SEGMENT_REQUEST  =  5,
42
  REGION_MP_RETURN_SEGMENT_RESPONSE =  6
43
}   Region_MP_Remote_operations;
44
 
45
/*
46
 *  The following data structure defines the packet used to perform
47
 *  remote region operations.
48
 */
49
 
50
typedef struct {
51
  rtems_packet_prefix          Prefix;
52
  Region_MP_Remote_operations  operation;
53
  rtems_name                   name;
54
  rtems_option                 option_set;
55
  unsigned32                   size;
56
  Objects_Id                   proxy_id;
57
  void                        *segment;
58
}   Region_MP_Packet;
59
 
60
/*
61
 *  _Region_MP_Send_process_packet
62
 *
63
 *  DESCRIPTION:
64
 *
65
 *  This routine performs a remote procedure call so that a
66
 *  process operation can be performed on another node.
67
 */
68
 
69
void _Region_MP_Send_process_packet (
70
  Region_MP_Remote_operations operation,
71
  Objects_Id                  region_id,
72
  rtems_name                  name,
73
  Objects_Id                  proxy_id
74
);
75
 
76
/*
77
 *  _Region_MP_Send_request_packet
78
 *
79
 *  DESCRIPTION:
80
 *
81
 *  This routine performs a remote procedure call so that a
82
 *  directive operation can be initiated on another node.
83
 */
84
 
85
rtems_status_code _Region_MP_Send_request_packet (
86
  Region_MP_Remote_operations  operation,
87
  Objects_Id                   region_id,
88
  void                        *segment,
89
  unsigned32                   size,
90
  rtems_option                 option_set,
91
  rtems_interval               timeout
92
);
93
 
94
/*
95
 *  _Region_MP_Send_response_packet
96
 *
97
 *  DESCRIPTION:
98
 *
99
 *  This routine performs a remote procedure call so that a
100
 *  directive can be performed on another node.
101
 */
102
 
103
void _Region_MP_Send_response_packet (
104
  Region_MP_Remote_operations  operation,
105
  Objects_Id                   region_id,
106
  Thread_Control              *the_thread
107
);
108
 
109
/*
110
 *
111
 *  _Region_MP_Process_packet
112
 *
113
 *  DESCRIPTION:
114
 *
115
 *  This routine performs the actions specific to this package for
116
 *  the request from another node.
117
 */
118
 
119
void _Region_MP_Process_packet (
120
  rtems_packet_prefix *the_packet_prefix
121
);
122
 
123
/*
124
 *  _Region_MP_Send_object_was_deleted
125
 *
126
 *  DESCRIPTION:
127
 *
128
 *  This routine is invoked indirectly by the thread queue
129
 *  when a proxy has been removed from the thread queue and
130
 *  the remote node must be informed of this.
131
 *
132
 *  This routine is not needed by the Region since a region
133
 *  cannot be deleted when segments are in use.
134
 */
135
 
136
/*
137
 *  _Region_MP_Send_extract_proxy
138
 *
139
 *  DESCRIPTION:
140
 *
141
 *  This routine is invoked when a task is deleted and it
142
 *  has a proxy which must be removed from a thread queue and
143
 *  the remote node must be informed of this.
144
 */
145
 
146
void _Region_MP_Send_extract_proxy (
147
  Thread_Control *the_thread
148
);
149
 
150
/*
151
 *  _Region_MP_Get_packet
152
 *
153
 *  DESCRIPTION:
154
 *
155
 *  This function is used to obtain a region mp packet.
156
 */
157
 
158
Region_MP_Packet *_Region_MP_Get_packet ( void );
159
 
160
#ifdef __cplusplus
161
}
162
#endif
163
 
164
#endif
165
/* end of file */

powered by: WebSVN 2.1.0

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