OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  taskmp.h
2
 *
3
 *  This include file contains all the constants and structures associated
4
 *  with the multiprocessing support in the task 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: taskmp.h,v 1.2 2001-09-27 11:59:18 chris Exp $
14
 */
15
 
16
#ifndef __RTEMS_RTEMS_TASKS_MP_h
17
#define __RTEMS_RTEMS_TASKS_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/rtems/options.h>
26
#include <rtems/score/priority.h>
27
#include <rtems/rtems/tasks.h>
28
#include <rtems/score/thread.h>
29
 
30
/*
31
 *  The following enumerated type defines the list of
32
 *  remote task operations.
33
 */
34
 
35
typedef enum {
36
  RTEMS_TASKS_MP_ANNOUNCE_CREATE       =  0,
37
  RTEMS_TASKS_MP_ANNOUNCE_DELETE       =  1,
38
  RTEMS_TASKS_MP_SUSPEND_REQUEST       =  2,
39
  RTEMS_TASKS_MP_SUSPEND_RESPONSE      =  3,
40
  RTEMS_TASKS_MP_RESUME_REQUEST        =  4,
41
  RTEMS_TASKS_MP_RESUME_RESPONSE       =  5,
42
  RTEMS_TASKS_MP_SET_PRIORITY_REQUEST  =  6,
43
  RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE =  7,
44
  RTEMS_TASKS_MP_GET_NOTE_REQUEST      =  8,
45
  RTEMS_TASKS_MP_GET_NOTE_RESPONSE     =  9,
46
  RTEMS_TASKS_MP_SET_NOTE_REQUEST      = 10,
47
  RTEMS_TASKS_MP_SET_NOTE_RESPONSE     = 11
48
}   RTEMS_tasks_MP_Remote_operations;
49
 
50
/*
51
 *  The following data structure defines the packet used to perform
52
 *  remote task operations.
53
 */
54
 
55
typedef struct {
56
  rtems_packet_prefix               Prefix;
57
  RTEMS_tasks_MP_Remote_operations  operation;
58
  rtems_name                        name;
59
  rtems_task_priority               the_priority;
60
  unsigned32                        notepad;
61
  unsigned32                        note;
62
}   RTEMS_tasks_MP_Packet;
63
 
64
/*
65
 *  _RTEMS_tasks_MP_Send_process_packet
66
 *
67
 *  DESCRIPTION:
68
 *
69
 *  This routine performs a remote procedure call so that a
70
 *  process operation can be performed on another node.
71
 */
72
 
73
void _RTEMS_tasks_MP_Send_process_packet (
74
  RTEMS_tasks_MP_Remote_operations operation,
75
  Objects_Id                       task_id,
76
  rtems_name                       name
77
);
78
 
79
/*
80
 *  _RTEMS_tasks_MP_Send_request_packet
81
 *
82
 *  DESCRIPTION:
83
 *
84
 *  This routine performs a remote procedure call so that a
85
 *  directive operation can be initiated on another node.
86
 */
87
 
88
rtems_status_code _RTEMS_tasks_MP_Send_request_packet (
89
  RTEMS_tasks_MP_Remote_operations operation,
90
  Objects_Id                       task_id,
91
  rtems_task_priority                 the_priority,
92
  unsigned32                       notepad,
93
  unsigned32                       note
94
);
95
 
96
/*
97
 *  _RTEMS_tasks_MP_Send_response_packet
98
 *
99
 *  DESCRIPTION:
100
 *
101
 *  This routine performs a remote procedure call so that a
102
 *  directive can be performed on another node.
103
 */
104
 
105
void _RTEMS_tasks_MP_Send_response_packet (
106
  RTEMS_tasks_MP_Remote_operations  operation,
107
  Thread_Control                   *the_thread
108
);
109
 
110
/*
111
 *
112
 *  _RTEMS_tasks_MP_Process_packet
113
 *
114
 *  DESCRIPTION:
115
 *
116
 *  This routine performs the actions specific to this package for
117
 *  the request from another node.
118
 */
119
 
120
void _RTEMS_tasks_MP_Process_packet (
121
  rtems_packet_prefix *the_packet_prefix
122
);
123
 
124
/*
125
 *  _RTEMS_tasks_MP_Send_object_was_deleted
126
 *
127
 *  DESCRIPTION:
128
 *
129
 *  This routine is invoked indirectly by the thread queue
130
 *  when a proxy has been removed from the thread queue and
131
 *  the remote node must be informed of this.
132
 *
133
 *  This routine is not needed by RTEMS_tasks since a task
134
 *  cannot be deleted when segments are in use.
135
 */
136
 
137
/*
138
 *  _RTEMS_tasks_MP_Send_extract_proxy
139
 *
140
 *  DESCRIPTION:
141
 *
142
 *  This routine is invoked when a task is deleted and it
143
 *  has a proxy which must be removed from a thread queue and
144
 *  the remote node must be informed of this.
145
 *
146
 *  This routine is not needed since there are no objects
147
 *  deleted by this manager.
148
 *
149
 */
150
 
151
/*
152
 *  _RTEMS_tasks_MP_Get_packet
153
 *
154
 *  DESCRIPTION:
155
 *
156
 *  This function is used to obtain a task mp packet.
157
 */
158
 
159
RTEMS_tasks_MP_Packet *_RTEMS_tasks_MP_Get_packet ( void );
160
 
161
#ifdef __cplusplus
162
}
163
#endif
164
 
165
#endif
166
/* end of file */

powered by: WebSVN 2.1.0

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