void arch_irq_set_level(uint32_t irq)
make an ISA IRQ line level-triggered, for a PCI interrupt line that the firmware routed to it.
Definition msi.c:77
void arch_irq_disable(uint32_t irq)
mask (disable) a hardware IRQ line.
Definition arch_irq_x86.c:73
void(*) device_irq_handler_t(void *context)
a device interrupt handler (a message-signalled interrupt, or a PCI interrupt line).
Definition arch_irq.h:70
struct trap_frame trap_frame_t
arch-neutral hardware-interrupt (IRQ) interface.
Definition arch_irq.h:22
void(*) irq_handler_fn(uint32_t irq, trap_frame_t *frame)
IRQ handler function type.
Definition arch_irq.h:30
bool arch_irq_set_cpu(uint32_t irq, uint32_t cpu)
send the interrupts of an ISA IRQ line to a core.
Definition arch_irq_x86.c:101
uint64_t arch_msi_address(uint32_t cpu)
the message address that sends a message-signalled interrupt to a core.
Definition msi.c:72
bool arch_frame_is_user(const trap_frame_t *frame)
true if the interrupt came while user code ran (CPU time accounting).
Definition arch_irq_x86.c:115
bool arch_msi_alloc(device_irq_handler_t handler, void *context, uint64_t *address, uint32_t *data)
allocate an interrupt vector for a message-signalled interrupt (PCI MSI or MSI-X) and give the messag...
Definition msi.c:46
int arch_irq_register(uint32_t irq, irq_handler_fn handler)
register a handler for a hardware IRQ line.
Definition arch_irq_x86.c:45
void arch_irq_enable(uint32_t irq)
unmask (enable) a hardware IRQ line so it can be delivered.
Definition arch_irq_x86.c:57
void arch_irq_ack(uint32_t irq)
acknowledge an IRQ (end-of-interrupt) at the interrupt controller.
Definition arch_irq_x86.c:89
unsigned int uint32_t
Definition fb.h:17
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
the data of one core
Definition cpu.h:39