UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Macros | Functions | Variables
ioapic.c File Reference
#include "types.h"
#include "defs.h"
#include "traps.h"

Go to the source code of this file.

Data Structures

struct  ioapic
 

Macros

#define IOAPIC   0xFEC00000
 
#define REG_ID   0x00
 
#define REG_VER   0x01
 
#define REG_TABLE   0x10
 
#define INT_DISABLED   0x00010000
 
#define INT_LEVEL   0x00008000
 
#define INT_ACTIVELOW   0x00002000
 
#define INT_LOGICAL   0x00000800
 

Functions

void ioapicinit (void)
 
void ioapicenable (int irq, int cpunum)
 

Variables

struct ioapicioapic
 

Macro Definition Documentation

#define INT_ACTIVELOW   0x00002000

Definition at line 22 of file ioapic.c.

#define INT_DISABLED   0x00010000

Definition at line 20 of file ioapic.c.

#define INT_LEVEL   0x00008000

Definition at line 21 of file ioapic.c.

#define INT_LOGICAL   0x00000800

Definition at line 23 of file ioapic.c.

#define IOAPIC   0xFEC00000

Definition at line 9 of file ioapic.c.

#define REG_ID   0x00

Definition at line 11 of file ioapic.c.

#define REG_TABLE   0x10

Definition at line 13 of file ioapic.c.

#define REG_VER   0x01

Definition at line 12 of file ioapic.c.

Function Documentation

void ioapicenable ( int  irq,
int  cpunum 
)

Definition at line 71 of file ioapic.c.

void ioapicinit ( void  )

Definition at line 49 of file ioapic.c.

Variable Documentation

struct ioapic* ioapic

Definition at line 25 of file ioapic.c.