|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
Go to the source code of this file.
Macros | |
| #define | IOAPICVER 0x01 |
| #define | IOAPICARB 0x02 |
| #define | IOAPICREDTBL(n) |
Functions | |
| static void | write_ioapic_register (const uintptr_t apic_base, const uint8_t offset, const uint32_t val) |
| static uint32_t | read_ioapic_register (const uintptr_t apic_base, const uint8_t offset) |
| uint32_t | ioapic_isr_get_vector (uint8_t irq) |
| __attribute__ ((used, visibility("default"), section(".export"))) | |
| This function handles memory allocation for a new dentry using the slab allocator. | |
| void | vxIOAPICMapISR (uint8_t irq, uint8_t vector, uint8_t apic_id) |
| void | ioapic_setup (uintptr_t ioapic_addr) |
| void | ioapic_add_irq_gsi_map (uint8_t irq, uint32_t gsi, uint16_t flags) |
Variables | |
| static struct irq_gsi_map | irq_gsi_table [32] = {0} |
| static uintptr_t | ioapic_base_addr = 0 |
| #define IOAPICREDTBL | ( | n | ) |
Definition at line 9 of file ioapic.c.
Referenced by __attribute__(), ioapic_isr_get_vector(), ioapic_setup(), and vxIOAPICMapISR().
| __attribute__ | ( | (used, visibility("default"), section(".export")) | ) |
This function handles memory allocation for a new dentry using the slab allocator.
It also links the dentry to its corresponding VNode (if provided).
| name | The name of the file or directory. |
| vnode | Pointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available. |
Definition at line 79 of file ioapic.c.
References flags, gsi, and irq_gsi_table.
Referenced by parsing_madt().
Definition at line 26 of file ioapic.c.
References ioapic_base_addr, IOAPICREDTBL, read_ioapic_register(), and reg.
| void ioapic_setup | ( | uintptr_t | ioapic_addr | ) |
Definition at line 55 of file ioapic.c.
References ioapic_base_addr, IOAPICREDTBL, and write_ioapic_register().
Referenced by parsing_madt().
Definition at line 21 of file ioapic.c.
References mmio_inl(), mmio_outl(), and offset.
Referenced by __attribute__(), and ioapic_isr_get_vector().
Definition at line 36 of file ioapic.c.
References ioapic_base_addr, IOAPICREDTBL, vector, and write_ioapic_register().
Referenced by __attribute__().
|
static |
Definition at line 14 of file ioapic.c.
References mmio_outl(), and offset.
Referenced by ioapic_setup(), and vxIOAPICMapISR().
|
static |
Definition at line 12 of file ioapic.c.
Referenced by __attribute__(), ioapic_isr_get_vector(), ioapic_setup(), and vxIOAPICMapISR().
|
static |
Definition at line 5 of file ioapic.c.
Referenced by ioapic_add_irq_gsi_map().