MOS Source Code
|
#include <mos/mm/paging/paging.h>
#include <mos/mm/physical/pmm.h>
#include <mos/platform/platform.h>
#include <mos/syslog/printk.h>
#include <mos/x86/acpi/madt.h>
#include <mos/x86/interrupt/apic.h>
#include <mos/x86/x86_interrupt.h>
#include <mos/x86/x86_platform.h>
Go to the source code of this file.
Classes | |
struct | ioapic_redirection_entry_t |
Macros | |
#define | IOAPIC_REG_ID 0x00 |
#define | IOAPIC_REG_VERSION 0x01 |
#define | IOAPIC_REG_ARB_ID 0x02 |
#define | IOAPIC_REG_REDIR_TABLE(n) |
Functions | |
MOS_STATIC_ASSERT (sizeof(ioapic_redirection_entry_t)==sizeof(u64), "ioapic_register_1 is not 64 bits") | |
should_inline u32 | ioapic_read (u32 reg) |
should_inline void | ioapic_write (u32 reg, u32 value) |
should_inline void | ioapic_write_redirection_entry (u32 irq, ioapic_redirection_entry_t entry) |
should_inline ioapic_redirection_entry_t | ioapic_read_redirection_entry (u32 irq) |
void | ioapic_init (void) |
void | ioapic_enable_with_mode (u32 irq, u32 lapic_id, ioapic_trigger_mode_t trigger_mode, ioapic_polarity_t polarity) |
void | ioapic_disable (u32 irq) |
Variables | |
static u32 volatile * | ioapic = NULL |
#define IOAPIC_REG_ID 0x00 |
Definition at line 28 of file ioapic.c.
Referenced by ioapic_init().
#define IOAPIC_REG_VERSION 0x01 |
Definition at line 29 of file ioapic.c.
Referenced by ioapic_init().
#define IOAPIC_REG_ARB_ID 0x02 |
Definition at line 30 of file ioapic.c.
Referenced by ioapic_init().
#define IOAPIC_REG_REDIR_TABLE | ( | n | ) |
Definition at line 31 of file ioapic.c.
Referenced by ioapic_read_redirection_entry(), and ioapic_write_redirection_entry().
MOS_STATIC_ASSERT | ( | sizeof(ioapic_redirection_entry_t) | = =sizeof(u64), |
"ioapic_register_1 is not 64 bits" | ) |
should_inline u32 ioapic_read | ( | u32 | reg | ) |
Definition at line 55 of file ioapic.c.
Referenced by ioapic_init(), and ioapic_read_redirection_entry().
should_inline void ioapic_write | ( | u32 | reg, |
u32 | value ) |
Definition at line 61 of file ioapic.c.
Referenced by ioapic_write_redirection_entry().
should_inline void ioapic_write_redirection_entry | ( | u32 | irq, |
ioapic_redirection_entry_t | entry ) |
Definition at line 67 of file ioapic.c.
Referenced by ioapic_disable(), and ioapic_enable_with_mode().
should_inline ioapic_redirection_entry_t ioapic_read_redirection_entry | ( | u32 | irq | ) |
Definition at line 93 of file ioapic.c.
Referenced by platform_startup_late().
void ioapic_enable_with_mode | ( | u32 | irq, |
u32 | lapic_id, | ||
ioapic_trigger_mode_t | trigger_mode, | ||
ioapic_polarity_t | polarity ) |
Definition at line 125 of file ioapic.c.
Referenced by ioapic_enable_interrupt().
Definition at line 139 of file ioapic.c.
Referenced by ioapic_init().
Definition at line 53 of file ioapic.c.
Referenced by ioapic_init(), ioapic_read(), ioapic_write(), and madt_parse_table().