apic.h File Reference

Include dependency graph for apic.h:

Go to the source code of this file.

Data Structures

struct  icr
union  esr
union  tpr
union  svr
union  tdcr
union  lvt_tm
union  lvt_lint
union  lvt_error
union  l_apic_id
union  ldr
union  dfr
union  io_regsel
struct  io_redirection_reg
union  io_apic_id

Defines

#define FIXED   (0<<0)
#define LOPRI   (1<<0)
#define APIC_ID_COUNT   16
#define IPI_INIT   0
#define IPI_STARTUP   0
#define DELMOD_FIXED   0x0
#define DELMOD_LOWPRI   0x1
#define DELMOD_SMI   0x2
#define DELMOD_NMI   0x4
#define DELMOD_INIT   0x5
#define DELMOD_STARTUP   0x6
#define DELMOD_EXTINT   0x7
#define DESTMOD_PHYS   0x0
#define DESTMOD_LOGIC   0x1
#define TRIGMOD_EDGE   0x0
#define TRIGMOD_LEVEL   0x1
#define LEVEL_DEASSERT   0x0
#define LEVEL_ASSERT   0x1
#define SHORTHAND_NONE   0x0
#define SHORTHAND_SELF   0x1
#define SHORTHAND_ALL_INCL   0x2
#define SHORTHAND_ALL_EXCL   0x3
#define POLARITY_HIGH   0x0
#define POLARITY_LOW   0x1
#define DIVIDE_2   0x0
#define DIVIDE_4   0x1
#define DIVIDE_8   0x2
#define DIVIDE_16   0x3
#define DIVIDE_32   0x8
#define DIVIDE_64   0x9
#define DIVIDE_128   0xa
#define DIVIDE_1   0xb
#define TIMER_ONESHOT   0x0
#define TIMER_PERIODIC   0x1
#define DELIVS_IDLE   0x0
#define DELIVS_PENDING   0x1
#define DEST_ALL   0xff
#define MODEL_FLAT   0xf
#define MODEL_CLUSTER   0x0
#define ICRlo   (0x300/sizeof(__u32))
#define ICRhi   (0x310/sizeof(__u32))
#define EOI   (0x0b0/sizeof(__u32))
#define ESR   (0x280/sizeof(__u32))
#define TPR   (0x080/sizeof(__u32))
#define SVR   (0x0f0/sizeof(__u32))
#define TDCR   (0x3e0/sizeof(__u32))
#define ICRT   (0x380/sizeof(__u32))
#define CCRT   (0x390/sizeof(__u32))
#define LVT_Tm   (0x320/sizeof(__u32))
#define LVT_LINT0   (0x350/sizeof(__u32))
#define LVT_LINT1   (0x360/sizeof(__u32))
#define LVT_Err   (0x370/sizeof(__u32))
#define L_APIC_ID   (0x020/sizeof(__u32))
#define LAVR   (0x030/sizeof(__u32))
#define LAVR_Mask   0xff
#define is_local_apic(x)   (((x)&LAVR_Mask&0xf0)==0x1)
#define is_82489DX_apic(x)   ((((x)&LAVR_Mask&0xf0)==0x0))
#define is_local_xapic(x)   (((x)&LAVR_Mask)==0x14)
#define LDR   (0x0d0/sizeof(__u32))
#define DFR   (0x0e0/sizeof(__u32))
#define IOREGSEL   (0x00/sizeof(__u32))
#define IOWIN   (0x10/sizeof(__u32))
#define IOAPICID   0x00
#define IOAPICVER   0x01
#define IOAPICARB   0x02
#define IOREDTBL   0x10

Typedefs

typedef icr icr_t
typedef esr esr_t
typedef tpr tpr_t
typedef svr svr_t
typedef tdcr tdcr_t
typedef lvt_tm lvt_tm_t
typedef lvt_lint lvt_lint_t
typedef lvt_error lvt_error_t
typedef l_apic_id l_apic_id_t
typedef ldr ldr_t
typedef dfr dfr_t
typedef io_regsel io_regsel_t
typedef io_redirection_reg io_redirection_reg_t
typedef io_apic_id io_apic_id_t

Functions

void apic_init (void)
void l_apic_init (void)
void l_apic_eoi (void)
int l_apic_broadcast_custom_ipi (__u8 vector)
int l_apic_send_init_ipi (__u8 apicid)
void l_apic_debug (void)
__u8 l_apic_id (void)
__u32 io_apic_read (__u8 address)
void io_apic_write (__u8 address, __u32 x)
void io_apic_change_ioredtbl (int pin, int dest, __u8 v, int flags)
void io_apic_disable_irqs (__u16 irqmask)
void io_apic_enable_irqs (__u16 irqmask)

Variables

icr packed
io_redirection_reg packed
volatile __u32l_apic
volatile __u32io_apic
__u32 apic_id_mask


Detailed Description

Definition in file apic.h.


Generated on Sun Jun 18 16:38:58 2006 for HelenOS Kernel (ia32) by  doxygen 1.4.6