#include <stdbool.h>
#include <stdint.h>
#include <sys/kassert.h>
#include <sys/kdebug.h>
#include <sys/cdefs.h>
#include <machine/amd64.h>
#include <machine/pmap.h>
#include <machine/trap.h>
Go to the source code of this file.
◆ IOAPICARB
#define IOAPICARB 0x02 /* IOAPIC Arbitration ID */ |
◆ IOAPICBASE
#define IOAPICBASE 0xFEC00000 |
◆ IOAPICID
#define IOAPICID 0x00 /* IOAPIC ID */ |
◆ IOAPICVER
#define IOAPICVER 0x01 /* IOAPIC Version */ |
◆ IOREDTBL0
◆ IOREDTBL23
◆ IOREDTBL_LEN
◆ IOREDTBL_LOGICAL
#define IOREDTBL_LOGICAL 0x00000800 |
◆ IOREDTBL_MASK
#define IOREDTBL_MASK 0x00010000 |
◆ Debug_IOAPIC()
static void Debug_IOAPIC |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
|
static |
Definition at line 84 of file ioapic.c.
85{
86 int i;
87
90
92 {
95 kprintf(
"%02x: %08x %08x\n", i, irqInfo, cpuInfo);
96 }
97}
uint32_t IOAPIC_Read(uint32_t reg)
int kprintf(const char *fmt,...)
◆ IOAPIC_Disable()
void IOAPIC_Disable |
( |
int |
irq | ) |
|
Definition at line 77 of file ioapic.c.
78{
81}
void IOAPIC_Write(uint32_t reg, uint32_t val)
◆ IOAPIC_Enable()
void IOAPIC_Enable |
( |
int |
irq | ) |
|
◆ IOAPIC_Init()
Definition at line 54 of file ioapic.c.
55{
56 int i;
59
60 kprintf(
"IOAPIC: ID:%d Max Interrupts: %d\n",
id, maxInts);
61
63 {
66 }
67}
◆ IOAPIC_Read()
Definition at line 30 of file ioapic.c.
31{
34
36
38 return *cmd;
39}
◆ IOAPIC_Write()
Definition at line 42 of file ioapic.c.
43{
46
48
50 *cmd = val;
51}
◆ REGISTER_DBGCMD()