#ifndef _KERNEL_AMD64_APIC_H
#define _KERNEL_AMD64_APIC_H

#include <libk/std.h>

void ioapic_route_irq (uint32_t vec, uint32_t irq, uint64_t flags, uint64_t lapic_id);
void ioapic_init (void);

uint32_t lapic_id (void);
void lapic_eoi (void);
void lapic_ipi (uint32_t lapic_id, uint32_t vec);
void lapic_init (uint32_t us);

#endif // _KERNEL_AMD64_APIC_H
