8#define APIC_REG_LAPIC_ID 0x20
should_inline void ioapic_enable_interrupt(u32 irq, u32 lapic_id)
void lapic_interrupt(u8 vec, u8 dest, lapic_delivery_mode_t delivery_mode, lapic_dest_mode_t dest_mode, lapic_shorthand_t shorthand)
void lapic_set_timer(u32 initial_count)
@ IOAPIC_POLARITY_ACTIVE_HIGH
@ IOAPIC_POLARITY_ACTIVE_LOW
@ APIC_DELIVER_MODE_NORMAL
@ APIC_DELIVER_MODE_INIT_DEASSERT
@ APIC_DELIVER_MODE_STARTUP
@ APIC_DELIVER_MODE_LOWEST_PRIORITY
void lapic_write32(u32 offset, u32 value)
should_inline u8 lapic_get_id(void)
u32 lapic_read32(u32 offset)
#define APIC_REG_LAPIC_ID
@ LAPIC_SHORTHAND_ALL_EXCLUDING_SELF
@ LAPIC_DEST_MODE_LOGICAL
@ LAPIC_DEST_MODE_PHYSICAL
void lapic_interrupt_full(u8 vec, u8 dest, lapic_delivery_mode_t dliv_mode, lapic_dest_mode_t dstmode, bool lvl, bool trigger, lapic_shorthand_t sh)
void lapic_write64(u32 offset, u64 value)
u64 lapic_read64(u32 offset)
void ioapic_disable(u32 irq)
@ IOAPIC_TRIGGER_MODE_LEVEL
@ IOAPIC_TRIGGER_MODE_EDGE
void ioapic_enable_with_mode(u32 irq, u32 cpu, ioapic_trigger_mode_t trigger_mode, ioapic_polarity_t polarity)