Loading [MathJax]/extensions/tex2jax.js
CS350 COS
COS
All Data Structures Files Functions Variables Typedefs Macros
ioapic.h File Reference

Go to the source code of this file.

Functions

void IOAPIC_Init ()
 
void IOAPIC_Enable (int irq)
 
void IOAPIC_Disable (int irq)
 

Function Documentation

◆ 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)
Definition: ioapic.c:42
uint32_t IOAPIC_Read(uint32_t reg)
Definition: ioapic.c:30
#define IOREDTBL0
Definition: ioapic.c:21
#define IOREDTBL_MASK
Definition: ioapic.c:26
static uint8_t irq
Definition: sercons.c:38
unsigned int uint32_t
Definition: types.h:12
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IOAPIC_Enable()

void IOAPIC_Enable ( int  irq)

Definition at line 70 of file ioapic.c.

71{
74}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ IOAPIC_Init()

void IOAPIC_Init ( )

Definition at line 54 of file ioapic.c.

55{
56 int i;
57 uint32_t id = (IOAPIC_Read(IOAPICID) >> 24) & 0x0F;
58 uint32_t maxInts = (IOAPIC_Read(IOAPICVER) >> 16) & 0xFF;
59
60 kprintf("IOAPIC: ID:%d Max Interrupts: %d\n", id, maxInts);
61
62 for (i = 0; i < IOREDTBL_LEN; i++)
63 {
65 IOAPIC_Write(IOREDTBL0 + 2*i + 1, 0);
66 }
67}
#define IOAPICID
Definition: ioapic.c:18
#define IOAPICVER
Definition: ioapic.c:19
#define IOREDTBL_LEN
Definition: ioapic.c:24
int kprintf(const char *fmt,...)
Definition: printf.c:210
#define T_IRQ_BASE
Definition: trap.h:28
Here is the call graph for this function:
Here is the caller graph for this function: