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

4.104.114.84.95
Last change on this file since de05cbb9 was 9d9a3dd, checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/17/99 at 16:47:58

+ Updated copyright information.

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