diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-x86/apic.h | 4 | ||||
-rw-r--r-- | include/asm-x86/apicdef.h | 19 |
2 files changed, 14 insertions, 9 deletions
diff --git a/include/asm-x86/apic.h b/include/asm-x86/apic.h index 5e8192d36e5a..423022759cb2 100644 --- a/include/asm-x86/apic.h +++ b/include/asm-x86/apic.h | |||
@@ -126,8 +126,8 @@ extern void enable_NMI_through_LVT0(void *dummy); | |||
126 | extern void setup_apic_routing(void); | 126 | extern void setup_apic_routing(void); |
127 | #endif | 127 | #endif |
128 | 128 | ||
129 | extern void setup_APIC_extended_lvt(unsigned char lvt_off, unsigned char vector, | 129 | extern u8 setup_APIC_eilvt_mce(u8 vector, u8 msg_type, u8 mask); |
130 | unsigned char msg_type, unsigned char mask); | 130 | extern u8 setup_APIC_eilvt_ibs(u8 vector, u8 msg_type, u8 mask); |
131 | 131 | ||
132 | extern int apic_is_clustered_box(void); | 132 | extern int apic_is_clustered_box(void); |
133 | 133 | ||
diff --git a/include/asm-x86/apicdef.h b/include/asm-x86/apicdef.h index 5f7abe9b5f87..550af7a6f88e 100644 --- a/include/asm-x86/apicdef.h +++ b/include/asm-x86/apicdef.h | |||
@@ -116,13 +116,18 @@ | |||
116 | #define APIC_TDR_DIV_32 0x8 | 116 | #define APIC_TDR_DIV_32 0x8 |
117 | #define APIC_TDR_DIV_64 0x9 | 117 | #define APIC_TDR_DIV_64 0x9 |
118 | #define APIC_TDR_DIV_128 0xA | 118 | #define APIC_TDR_DIV_128 0xA |
119 | 119 | #define APIC_EILVT0 0x500 | |
120 | #define K8_APIC_EXT_LVT_BASE 0x500 | 120 | #define APIC_EILVT_NR_AMD_K8 1 /* Number of extended interrupts */ |
121 | #define K8_APIC_EXT_INT_MSG_FIX 0x0 | 121 | #define APIC_EILVT_NR_AMD_10H 4 |
122 | #define K8_APIC_EXT_INT_MSG_SMI 0x2 | 122 | #define APIC_EILVT_LVTOFF(x) (((x)>>4)&0xF) |
123 | #define K8_APIC_EXT_INT_MSG_NMI 0x4 | 123 | #define APIC_EILVT_MSG_FIX 0x0 |
124 | #define K8_APIC_EXT_INT_MSG_EXT 0x7 | 124 | #define APIC_EILVT_MSG_SMI 0x2 |
125 | #define K8_APIC_EXT_LVT_ENTRY_THRESHOLD 0 | 125 | #define APIC_EILVT_MSG_NMI 0x4 |
126 | #define APIC_EILVT_MSG_EXT 0x7 | ||
127 | #define APIC_EILVT_MASKED (1<<16) | ||
128 | #define APIC_EILVT1 0x510 | ||
129 | #define APIC_EILVT2 0x520 | ||
130 | #define APIC_EILVT3 0x530 | ||
126 | 131 | ||
127 | #define APIC_BASE (fix_to_virt(FIX_APIC_BASE)) | 132 | #define APIC_BASE (fix_to_virt(FIX_APIC_BASE)) |
128 | 133 | ||