PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
ioapic.c File Reference
Include dependency graph for ioapic.c:

Go to the source code of this file.

Functions

static uint32_t ioapic_read (ioapic_t *ioapic, ioapic_register_t reg)
 
static void ioapic_write (ioapic_t *ioapic, ioapic_register_t reg, uint32_t value)
 
static ioapic_version_t ioapic_version_read (ioapic_t *ioapic)
 
static void ioapic_redirect_write (ioapic_t *ioapic, ioapic_gsi_t gsi, ioapic_redirect_entry_t entry)
 
static uint64_t ioapic_enable (irq_t *irq)
 
static void ioapic_disable (irq_t *irq)
 
static void ioapic_eoi (irq_t *irq)
 
uint64_t ioapic_all_init (void)
 Initialize all IO APICs found in the MADT.
 

Variables

static irq_chip_t ioApicChip
 

Function Documentation

◆ ioapic_read()

static uint32_t ioapic_read ( ioapic_t ioapic,
ioapic_register_t  reg 
)
static

Definition at line 14 of file ioapic.c.

Here is the caller graph for this function:

◆ ioapic_write()

static void ioapic_write ( ioapic_t ioapic,
ioapic_register_t  reg,
uint32_t  value 
)
static

Definition at line 21 of file ioapic.c.

Here is the caller graph for this function:

◆ ioapic_version_read()

static ioapic_version_t ioapic_version_read ( ioapic_t ioapic)
static

Definition at line 28 of file ioapic.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ioapic_redirect_write()

static void ioapic_redirect_write ( ioapic_t ioapic,
ioapic_gsi_t  gsi,
ioapic_redirect_entry_t  entry 
)
static

Definition at line 35 of file ioapic.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ioapic_enable()

static uint64_t ioapic_enable ( irq_t irq)
static

Definition at line 46 of file ioapic.c.

Here is the call graph for this function:

◆ ioapic_disable()

static void ioapic_disable ( irq_t irq)
static

Definition at line 67 of file ioapic.c.

Here is the call graph for this function:

◆ ioapic_eoi()

static void ioapic_eoi ( irq_t irq)
static

Definition at line 76 of file ioapic.c.

Here is the call graph for this function:

Variable Documentation

◆ ioApicChip

irq_chip_t ioApicChip
static
Initial value:
= {
.name = "IO APIC",
.enable = ioapic_enable,
.disable = ioapic_disable,
.ack = NULL,
.eoi = ioapic_eoi,
}
#define NULL
Pointer error value.
Definition NULL.h:23
static void ioapic_disable(irq_t *irq)
Definition ioapic.c:67
static void ioapic_eoi(irq_t *irq)
Definition ioapic.c:76
static uint64_t ioapic_enable(irq_t *irq)
Definition ioapic.c:46

Definition at line 83 of file ioapic.c.