patch-2.3.99-pre6 linux/include/asm-i386/mpspec.h

Next file: linux/include/asm-i386/mtrr.h
Previous file: linux/include/asm-i386/mmu_context.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre5/linux/include/asm-i386/mpspec.h linux/include/asm-i386/mpspec.h
@@ -13,6 +13,11 @@
  
 #define SMP_MAGIC_IDENT	(('_'<<24)|('P'<<16)|('M'<<8)|'_')
 
+/*
+ * a maximum of 16 APICs with the current APIC ID architecture.
+ */
+#define MAX_APICS 16
+
 struct intel_mp_floating
 {
 	char mpf_signature[4];		/* "_MP_" 			*/
@@ -144,7 +149,8 @@
 enum mp_bustype {
 	MP_BUS_ISA,
 	MP_BUS_EISA,
-	MP_BUS_PCI
+	MP_BUS_PCI,
+	MP_BUS_MCA
 };
 extern int mp_bus_id_to_type [MAX_MP_BUSSES];
 extern int mp_bus_id_to_pci_bus [MAX_MP_BUSSES];
@@ -155,7 +161,7 @@
 extern void find_smp_config (void);
 extern void get_smp_config (void);
 extern int nr_ioapics;
-extern int apic_version [NR_CPUS];
+extern int apic_version [MAX_APICS];
 extern int mp_bus_id_to_type [MAX_MP_BUSSES];
 extern int mp_irq_entries;
 extern struct mpc_config_intsrc mp_irqs [MAX_IRQ_SOURCES];

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)