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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 30 unneback
/*  signal.h
2
 *
3
 *  This include file contains all the constants and structures associated
4
 *  with the Signal Manager.   This manager provides capabilities required
5
 *  for asynchronous communication between tasks via signal sets.
6
 *
7
 *  Directives provided are:
8
 *
9
 *     + establish an asynchronous signal routine
10
 *     + send a signal set to a task
11
 *
12
 *  COPYRIGHT (c) 1989-1999.
13
 *  On-Line Applications Research Corporation (OAR).
14
 *
15
 *  The license and distribution terms for this file may be
16
 *  found in the file LICENSE in this distribution or at
17
 *  http://www.OARcorp.com/rtems/license.html.
18
 *
19
 *  $Id: signal.h,v 1.2 2001-09-27 11:59:18 chris Exp $
20
 */
21
 
22
#ifndef __RTEMS_SIGNAL_h
23
#define __RTEMS_SIGNAL_h
24
 
25
#ifdef __cplusplus
26
extern "C" {
27
#endif
28
 
29
#include <rtems/rtems/asr.h>
30
#include <rtems/rtems/modes.h>
31
#include <rtems/score/object.h>
32
#include <rtems/rtems/status.h>
33
#include <rtems/rtems/types.h>
34
 
35
/*
36
 *  _Signal_Manager_initialization
37
 *
38
 *  DESCRIPTION:
39
 *
40
 *  This routine performs the initialization necessary for this manager.
41
 */
42
 
43
void _Signal_Manager_initialization( void );
44
 
45
/*
46
 *  rtems_signal_catch
47
 *
48
 *  DESCRIPTION:
49
 *
50
 *  This routine implements the rtems_signal_catch directive.  This directive
51
 *  is used to establish asr_handler as the Asynchronous Signal Routine
52
 *  (RTEMS_ASR) for the calling task.  The asr_handler will execute with a
53
 *  mode of mode_set.
54
 */
55
 
56
rtems_status_code rtems_signal_catch(
57
  rtems_asr_entry   asr_handler,
58
  rtems_mode        mode_set
59
);
60
 
61
/*
62
 *  rtems_signal_send
63
 *
64
 *  DESCRIPTION:
65
 *
66
 *  This routine implements the rtems_signal_send directive.  This directive
67
 *  sends the signal_set to the task specified by ID.
68
 */
69
 
70
rtems_status_code rtems_signal_send(
71
  Objects_Id             id,
72
  rtems_signal_set signal_set
73
);
74
 
75
#if defined(RTEMS_MULTIPROCESSING)
76
#include <rtems/rtems/signalmp.h>
77
#endif
78
 
79
#ifdef __cplusplus
80
}
81
#endif
82
 
83
#endif
84
/* end of include file */

powered by: WebSVN 2.1.0

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