Go to the source code of this file.
◆ PIC8259_H
◆ IRQ_PIC_CUTOFF
◆ PIC1_ICW1
◆ PIC1_OCW2
◆ PIC1_OCW3
◆ PIC1_ICR
◆ PIC1_IRR
◆ PIC1_ISR
◆ PIC1_ICW2
◆ PIC1_ICW3
◆ PIC1_ICW4
◆ PIC1_IMR
◆ PIC2_ICW1
◆ PIC2_OCW2
◆ PIC2_OCW3
◆ PIC2_ICR
◆ PIC2_IRR
◆ PIC2_ISR
◆ PIC2_ICW2
◆ PIC2_ICW3
◆ PIC2_ICW4
◆ PIC2_IMR
◆ OCW3_ID
◆ OCW3_READ_IRR
| #define OCW3_READ_IRR 0x02 |
◆ OCW3_READ_ISR
| #define OCW3_READ_ISR 0x03 |
◆ ICR_EOI_NON_SPECIFIC
| #define ICR_EOI_NON_SPECIFIC 0x20 |
◆ ICR_EOI_NOP
◆ ICR_EOI_SPECIFIC
| #define ICR_EOI_SPECIFIC 0x60 |
◆ ICR_EOI_SET_PRIORITY
| #define ICR_EOI_SET_PRIORITY 0xc0 |
◆ IMR_REG
◆ IMR_BIT
◆ ICR_REG
◆ ICR_VALUE
◆ CHAINED_IRQ
◆ IRQ_INT
| #define IRQ_INT |
( |
|
irq | ) |
( ( ( (irq) - IRQ_PIC_CUTOFF ) ^ 0x70 ) & 0x7f ) |
◆ IRQ_MAX
◆ IRQ_NONE
◆ FILE_LICENCE()
| FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL |
| ) |
|
◆ __attribute__()
Check if interrupt is enabled.
Disable interrupt.
Enable interrupt.
- Parameters
-
- Return values
-
| enabled | Interrupt is currently enabled |
- Parameters
-
- Return values
-
| enabled | Interrupt was previously enabled |
Definition at line 69 of file pic8259.h.
74 return ( (
imr & mask ) == 0 );
uint8_t inb(volatile uint8_t *io_addr)
Read byte from I/O-mapped device.
References imr, IMR_BIT, IMR_REG, and inb().
◆ send_eoi()
| void send_eoi |
( |
unsigned int |
irq | ) |
|