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/] [signalmp.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
/*  signalmp.h
2
 *
3
 *  This include file contains all the constants and structures associated
4
 *  with the Multiprocessing Support in the Signal 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: signalmp.h,v 1.2 2001-09-27 11:59:18 chris Exp $
14
 */
15
 
16
#ifndef __RTEMS_SIGNAL_MP_h
17
#define __RTEMS_SIGNAL_MP_h
18
 
19
#ifdef __cplusplus
20
extern "C" {
21
#endif
22
 
23
#include <rtems/rtems/asr.h>
24
#include <rtems/score/mppkt.h>
25
#include <rtems/score/object.h>
26
#include <rtems/score/thread.h>
27
#include <rtems/score/watchdog.h>
28
 
29
/*
30
 *  The following enumerated type defines the list of
31
 *  remote signal operations.
32
 */
33
 
34
typedef enum {
35
  SIGNAL_MP_SEND_REQUEST  = 0,
36
  SIGNAL_MP_SEND_RESPONSE = 1
37
}   Signal_MP_Remote_operations;
38
 
39
/*
40
 *  The following data structure defines the packet used to perform
41
 *  remote signal operations.
42
 */
43
 
44
typedef struct {
45
  rtems_packet_prefix          Prefix;
46
  Signal_MP_Remote_operations  operation;
47
  rtems_signal_set             signal_in;
48
}   Signal_MP_Packet;
49
 
50
/*
51
 *  _Signal_MP_Send_process_packet
52
 *
53
 *  DESCRIPTION:
54
 *
55
 *  This routine performs a remote procedure call so that a
56
 *  process operation can be performed on another node.
57
 *
58
 *  This routine is not needed since there are no process
59
 *  packets to be sent by this manager.
60
 */
61
 
62
/*
63
 *  _Signal_MP_Send_request_packet
64
 *
65
 *  DESCRIPTION:
66
 *
67
 *  This routine performs a remote procedure call so that a
68
 *  directive operation can be initiated on another node.
69
 */
70
 
71
rtems_status_code _Signal_MP_Send_request_packet (
72
  Signal_MP_Remote_operations operation,
73
  Objects_Id                  task_id,
74
  rtems_signal_set      signal_in
75
);
76
 
77
/*
78
 *  _Signal_MP_Send_response_packet
79
 *
80
 *  DESCRIPTION:
81
 *
82
 *  This routine performs a remote procedure call so that a
83
 *  directive can be performed on another node.
84
 */
85
 
86
void _Signal_MP_Send_response_packet (
87
  Signal_MP_Remote_operations  operation,
88
  Thread_Control              *the_thread
89
);
90
 
91
/*
92
 *
93
 *  _Signal_MP_Process_packet
94
 *
95
 *  DESCRIPTION:
96
 *
97
 *  This routine performs the actions specific to this package for
98
 *  the request from another node.
99
 */
100
 
101
void _Signal_MP_Process_packet (
102
  rtems_packet_prefix *the_packet_prefix
103
);
104
 
105
/*
106
 *  _Signal_MP_Send_object_was_deleted
107
 *
108
 *  DESCRIPTION:
109
 *
110
 *  This routine is invoked indirectly by the thread queue
111
 *  when a proxy has been removed from the thread queue and
112
 *  the remote node must be informed of this.
113
 *
114
 *  This routine is not needed since there are no objects
115
 *  deleted by this manager.
116
 */
117
 
118
/*
119
 *  _Signal_MP_Send_extract_proxy
120
 *
121
 *  DESCRIPTION:
122
 *
123
 *  This routine is invoked when a task is deleted and it
124
 *  has a proxy which must be removed from a thread queue and
125
 *  the remote node must be informed of this.
126
 *
127
 *  This routine is not needed since there are no objects
128
 *  deleted by this manager.
129
 */
130
 
131
/*
132
 *  _Signal_MP_Get_packet
133
 *
134
 *  DESCRIPTION:
135
 *
136
 *  This function is used to obtain a signal mp packet.
137
 */
138
 
139
Signal_MP_Packet *_Signal_MP_Get_packet ( void );
140
 
141
#ifdef __cplusplus
142
}
143
#endif
144
 
145
#endif
146
/* end of file */

powered by: WebSVN 2.1.0

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