- Update Xen patches to 3.3-rc5 and c/s 1157.
[linux-flexiantxendom0-3.2.10.git] / arch / x86 / include / asm / apicdef.h
index 134bba0..96fd18b 100644 (file)
@@ -17,6 +17,8 @@
  */
 #define IO_APIC_SLOT_SIZE              1024
 
+#ifndef CONFIG_XEN
+
 #define        APIC_ID         0x20
 
 #define        APIC_LVR        0x30
 #define XAPIC_ENABLE   (1UL << 11)
 #define X2APIC_ENABLE  (1UL << 10)
 
+#else /* CONFIG_XEN */
+
+enum {
+       APIC_DEST_ALLBUT = 0x1,
+       APIC_DEST_SELF,
+       APIC_DEST_ALLINC
+};
+
+#endif /* CONFIG_XEN */
+
 #ifdef CONFIG_X86_32
 # define MAX_IO_APICS 64
 # define MAX_LOCAL_APIC 256
 # define MAX_LOCAL_APIC 32768
 #endif
 
+#ifndef CONFIG_XEN
+
 /*
  * All x86-64 systems are xAPIC compatible.
  * In the following, "apicid" is a physical APIC ID.
@@ -425,6 +439,8 @@ struct local_apic {
 
 #undef u32
 
+#endif /* CONFIG_XEN */
+
 #ifdef CONFIG_X86_32
  #define BAD_APICID 0xFFu
 #else