RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
i386
pc386
include
bsp
irq.h
Go to the documentation of this file.
1
6
7
/* irq.h
8
*
9
* This include file describe the data structure and the functions implemented
10
* by rtems to write interrupt handlers.
11
*
12
* CopyRight (C) 1998 valette@crf.canon.fr
13
*
14
* This code is heavilly inspired by the public specification of STREAM V2
15
* that can be found at :
16
*
17
* <http://www.chorus.com/Documentation/index.html> by following
18
* the STREAM API Specification Document link.
19
*
20
* The license and distribution terms for this file may be
21
* found in the file LICENSE in this distribution or at
22
* http://www.rtems.org/license/LICENSE.
23
*/
24
31
32
#ifndef _IRQ_H_
33
#define _IRQ_H_
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
42
43
#include <
bsp/irq_asm.h
>
44
#include <
rtems.h
>
45
#ifndef BSP_SHARED_HANDLER_SUPPORT
46
#define BSP_SHARED_HANDLER_SUPPORT 1
47
#endif
48
#include <
rtems/irq.h
>
49
#include <
rtems/irq-extension.h
>
50
51
/*-------------------------------------------------------------------------+
52
| Constants
53
+--------------------------------------------------------------------------*/
54
56
#define BSP_IRQ_VECTOR_BASE BSP_ASM_IRQ_VECTOR_BASE
57
#define BSP_IRQ_LINES_NUMBER 16
58
#define BSP_IRQ_MAX_ON_i8259A (BSP_IRQ_LINES_NUMBER - 1)
59
60
/*
61
* Define the number of valid vectors. This is different to the number of IRQ
62
* signals supported. Use this value to allocation vector data or range check.
63
*/
64
#define BSP_IRQ_VECTOR_NUMBER 17
65
#define BSP_IRQ_VECTOR_LOWEST_OFFSET 0
66
#define BSP_IRQ_VECTOR_MAX_OFFSET (BSP_IRQ_VECTOR_NUMBER - 1)
67
74
#define BSP_PERIODIC_TIMER 0
/* fixed on all builds of PC */
75
#define BSP_KEYBOARD 1
/* fixed on all builds of PC */
76
#define BSP_UART_COM2_IRQ 3
/* fixed for ISA bus */
77
#define BSP_UART_COM1_IRQ 4
/* fixed for ISA bus */
78
#define BSP_UART_COM3_IRQ 5
79
#define BSP_UART_COM4_IRQ 6
80
#define BSP_RT_TIMER1 8
81
#define BSP_RT_TIMER3 10
82
#define BSP_SMP_IPI 16
/* not part of the ATPIC */
83
84
#define BSP_INTERRUPT_VECTOR_COUNT BSP_IRQ_VECTOR_NUMBER
85
89
typedef
unsigned
short
rtems_i8259_masks
;
90
92
93
#ifdef __cplusplus
94
}
95
#endif
96
97
#endif
/* _IRQ_H_ */
irq.h
rtems_i8259_masks
unsigned short rtems_i8259_masks
Type definition for RTEMS managed interrupts.
Definition
irq.h:89
irq-extension.h
This header file is provided for backward compatiblility.
irq_asm.h
rtems.h
This header file defines the RTEMS Classic API.
Generated by
1.18.0