source: rtems/cpukit/itron/include/itronsys/intr.h @ 6df1f64

4.104.114.84.95
Last change on this file since 6df1f64 was 6df1f64, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 28, 2005 at 11:07:14 AM

New header guards.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @file itronsys/intr.h
3 */
4
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.rtems.com/license/LICENSE.
12 *
13 *  $Id$
14 */
15
16#ifndef _ITRONSYS_INTR_H
17#define _ITRONSYS_INTR_H
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  Define Interrupt (def_int) Structure
25 */
26
27typedef struct t_dint {
28  ATR   intatr;   /* interrupt handler attributes */
29  FP    inthdr;   /* interrupt handler address */
30  /* additional information may be included depending on the implementation */
31} T_DINT;
32
33/*
34 *  Interrupt Functions
35 */
36
37/*
38 *  def_int - Define Interrupt Handler
39 */
40
41ER def_int(
42  UINT dintno,
43  T_DINT *pk_dint
44);
45
46/*
47 *  ret_int - Return from Interrupt Handler
48 */
49
50void ret_int( void );
51
52/*
53 *  ret_wup - Return and Wakeup Task
54 */
55
56void ret_wup(
57  ID tskid
58);
59
60/*
61 *  loc_cpu - Lock CPU
62 */
63
64ER loc_cpu( void );
65
66/*
67 *  unl_cpu - Unlock CPU
68 */
69
70ER unl_cpu( void );
71
72/*
73 *  dis_int - Disable Interrupt
74 */
75
76ER dis_int(
77  UINT eintno
78);
79
80/*
81 *  ena_int - Enable Interrupt
82 */
83
84ER ena_int(
85  UINT eintno
86);
87
88/*
89 *  chg_iXX - Change Interrupt Mask(Level or Priority)
90 */
91
92ER chg_iXX(
93  UINT iXXXX
94);
95
96/*
97 *  ref_iXX - Reference Interrupt Mask(Level or Priority)
98 */
99
100ER ref_iXX(
101  UINT *p_iXXXX
102);
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif
109/* end of include file */
Note: See TracBrowser for help on using the repository browser.