/*
* Local APIC masks and software interrupt masks, in order
* of priority. Must not conflict with SIR_* below.
*/
#define LIR_IPI 55
#define LIR_TIMER 54
/*
* XXX These should be lowest numbered, but right now would
* conflict with the legacy IRQs. Their current position
* means that soft interrupt take priority over hardware
* interrupts when lowering the priority level!
*/
#define SIR_SERIAL 29
#define SIR_NET 28
#define SIR_BIO 27
#define SIR_CLOCK 26
#define SIR_PREEMPT 25
#define LIR_HV 24
#define SIR_XENIPL_HIGH 23
#define SIR_XENIPL_SCHED 22
#define SIR_XENIPL_VM 21
/*
* Maximum # of interrupt sources per CPU. Bitmask must still fit in one quad.
* ioapics can theoretically produce more, but it's not likely to
* happen. For multiple ioapics, things can be routed to different
* CPUs.
*/
#define MAX_INTR_SOURCES 56
#define NUM_LEGACY_IRQS 16
/*
* Low and high boundaries between which interrupt gates will
* be allocated in the IDT.
*/
#define IDT_INTR_LOW (0x20 + NUM_LEGACY_IRQS)
#define IDT_INTR_HIGH 0xef