aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/apicdef.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/include/asm/apicdef.h')
-rw-r--r--arch/x86/include/asm/apicdef.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/include/asm/apicdef.h b/arch/x86/include/asm/apicdef.h
index 7fe3b3060f08..34595d5e1038 100644
--- a/arch/x86/include/asm/apicdef.h
+++ b/arch/x86/include/asm/apicdef.h
@@ -78,6 +78,7 @@
78#define APIC_DEST_LOGICAL 0x00800 78#define APIC_DEST_LOGICAL 0x00800
79#define APIC_DEST_PHYSICAL 0x00000 79#define APIC_DEST_PHYSICAL 0x00000
80#define APIC_DM_FIXED 0x00000 80#define APIC_DM_FIXED 0x00000
81#define APIC_DM_FIXED_MASK 0x00700
81#define APIC_DM_LOWEST 0x00100 82#define APIC_DM_LOWEST 0x00100
82#define APIC_DM_SMI 0x00200 83#define APIC_DM_SMI 0x00200
83#define APIC_DM_REMRD 0x00300 84#define APIC_DM_REMRD 0x00300
@@ -131,6 +132,7 @@
131#define APIC_EILVTn(n) (0x500 + 0x10 * n) 132#define APIC_EILVTn(n) (0x500 + 0x10 * n)
132#define APIC_EILVT_NR_AMD_K8 1 /* # of extended interrupts */ 133#define APIC_EILVT_NR_AMD_K8 1 /* # of extended interrupts */
133#define APIC_EILVT_NR_AMD_10H 4 134#define APIC_EILVT_NR_AMD_10H 4
135#define APIC_EILVT_NR_MAX APIC_EILVT_NR_AMD_10H
134#define APIC_EILVT_LVTOFF(x) (((x) >> 4) & 0xF) 136#define APIC_EILVT_LVTOFF(x) (((x) >> 4) & 0xF)
135#define APIC_EILVT_MSG_FIX 0x0 137#define APIC_EILVT_MSG_FIX 0x0
136#define APIC_EILVT_MSG_SMI 0x2 138#define APIC_EILVT_MSG_SMI 0x2
@@ -144,6 +146,7 @@
144 146
145#ifdef CONFIG_X86_32 147#ifdef CONFIG_X86_32
146# define MAX_IO_APICS 64 148# define MAX_IO_APICS 64
149# define MAX_LOCAL_APIC 256
147#else 150#else
148# define MAX_IO_APICS 128 151# define MAX_IO_APICS 128
149# define MAX_LOCAL_APIC 32768 152# define MAX_LOCAL_APIC 32768
@@ -424,4 +427,16 @@ struct local_apic {
424#else 427#else
425 #define BAD_APICID 0xFFFFu 428 #define BAD_APICID 0xFFFFu
426#endif 429#endif
430
431enum ioapic_irq_destination_types {
432 dest_Fixed = 0,
433 dest_LowestPrio = 1,
434 dest_SMI = 2,
435 dest__reserved_1 = 3,
436 dest_NMI = 4,
437 dest_INIT = 5,
438 dest__reserved_2 = 6,
439 dest_ExtINT = 7
440};
441
427#endif /* _ASM_X86_APICDEF_H */ 442#endif /* _ASM_X86_APICDEF_H */