|
iPXE
|
#include <ipxe/io.h>Go to the source code of this file.
Macros | |
| #define | PIC8259_H |
| #define | IRQ_PIC_CUTOFF 8 |
| #define | PIC1_ICW1 0x20 |
| #define | PIC1_OCW2 0x20 |
| #define | PIC1_OCW3 0x20 |
| #define | PIC1_ICR 0x20 |
| #define | PIC1_IRR 0x20 |
| #define | PIC1_ISR 0x20 |
| #define | PIC1_ICW2 0x21 |
| #define | PIC1_ICW3 0x21 |
| #define | PIC1_ICW4 0x21 |
| #define | PIC1_IMR 0x21 |
| #define | PIC2_ICW1 0xa0 |
| #define | PIC2_OCW2 0xa0 |
| #define | PIC2_OCW3 0xa0 |
| #define | PIC2_ICR 0xa0 |
| #define | PIC2_IRR 0xa0 |
| #define | PIC2_ISR 0xa0 |
| #define | PIC2_ICW2 0xa1 |
| #define | PIC2_ICW3 0xa1 |
| #define | PIC2_ICW4 0xa1 |
| #define | PIC2_IMR 0xa1 |
| #define | OCW3_ID 0x08 |
| #define | OCW3_READ_IRR 0x02 |
| #define | OCW3_READ_ISR 0x03 |
| #define | ICR_EOI_NON_SPECIFIC 0x20 |
| #define | ICR_EOI_NOP 0x40 |
| #define | ICR_EOI_SPECIFIC 0x60 |
| #define | ICR_EOI_SET_PRIORITY 0xc0 |
| #define | IMR_REG(x) |
| #define | IMR_BIT(x) |
| #define | ICR_REG(irq) |
| #define | ICR_VALUE(irq) |
| #define | CHAINED_IRQ 2 |
| #define | IRQ_INT(irq) |
| #define | IRQ_MAX 15 |
| #define | IRQ_NONE -1U |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static | __attribute__ ((always_inline)) int irq_enabled(unsigned int irq) |
| Check if interrupt is enabled. | |
| void | send_eoi (unsigned int irq) |
| Send End-Of-Interrupt to the PIC. | |
| #define IRQ_PIC_CUTOFF 8 |
Definition at line 14 of file pic8259.h.
Referenced by send_nonspecific_eoi(), and send_specific_eoi().
| #define PIC1_ICR 0x20 |
Definition at line 20 of file pic8259.h.
Referenced by send_nonspecific_eoi().
| #define PIC2_ICR 0xa0 |
Definition at line 30 of file pic8259.h.
Referenced by send_nonspecific_eoi().
| #define ICR_EOI_NON_SPECIFIC 0x20 |
Definition at line 42 of file pic8259.h.
Referenced by send_nonspecific_eoi().
| #define ICR_EOI_SPECIFIC 0x60 |
Definition at line 44 of file pic8259.h.
Referenced by send_specific_eoi().
| #define IMR_REG | ( | x | ) |
Definition at line 48 of file pic8259.h.
Referenced by __attribute__(), and undinet_hook_isr().
| #define IMR_BIT | ( | x | ) |
Definition at line 49 of file pic8259.h.
Referenced by __attribute__(), and undinet_hook_isr().
| #define ICR_REG | ( | irq | ) |
| #define ICR_VALUE | ( | irq | ) |
Definition at line 53 of file pic8259.h.
Referenced by send_specific_eoi().
| #define CHAINED_IRQ 2 |
Definition at line 54 of file pic8259.h.
Referenced by send_specific_eoi().
| #define IRQ_INT | ( | irq | ) |
Definition at line 57 of file pic8259.h.
Referenced by hv_enable_sint(), interrupt(), interrupt_profiler(), undinet_hook_isr(), and undinet_unhook_isr().
| #define IRQ_MAX 15 |
Definition at line 60 of file pic8259.h.
Referenced by undinet_hook_isr(), undinet_probe(), and undinet_unhook_isr().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
| void send_eoi | ( | unsigned int | irq | ) |
Send End-Of-Interrupt to the PIC.
| irq | IRQ number |
Definition at line 65 of file pic8259.c.
References send_specific_eoi().
Referenced by undinet_open().