i386: apic/mpapic.h -> apic/lapic.h
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 4 May 2011 03:00:35 +0000 (11:00 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 4 May 2011 03:00:35 +0000 (11:00 +0800)
sys/platform/pc32/acpica5/acpi_fadt.c
sys/platform/pc32/acpica5/acpi_madt.c
sys/platform/pc32/acpica5/acpi_sdt.c
sys/platform/pc32/apic/ioapic.c
sys/platform/pc32/apic/lapic.c
sys/platform/pc32/apic/lapic.h [moved from sys/platform/pc32/apic/mpapic.h with 79% similarity]
sys/platform/pc32/i386/mp_machdep.c
sys/platform/pc32/i386/nexus.c
sys/platform/pc32/include/smp.h

index 2907196..c69cb88 100644 (file)
@@ -43,7 +43,6 @@
 #include <machine/smp.h>
 #include <machine/md_var.h>
 #include <machine/specialreg.h>
-#include <machine_base/apic/mpapic.h>
 
 #include "acpi_sdt.h"
 #include "acpi_sdt_var.h"
index bf4bc80..d497a4f 100644 (file)
@@ -41,7 +41,7 @@
 #include <machine/smp.h>
 #include <machine/md_var.h>
 #include <machine/specialreg.h>
-#include <machine_base/apic/mpapic.h>
+#include <machine_base/apic/lapic.h>
 
 #include "acpi_sdt.h"
 #include "acpi_sdt_var.h"
index 64c2b9e..133737b 100644 (file)
@@ -41,7 +41,6 @@
 #include <machine/smp.h>
 #include <machine/md_var.h>
 #include <machine/specialreg.h>
-#include <machine_base/apic/mpapic.h>
 
 #include "acpi_sdt.h"
 #include "acpi_sdt_var.h"
index a85e0ae..4204a07 100644 (file)
@@ -35,7 +35,7 @@
 #include <machine/cputypes.h>
 #include <machine/md_var.h>
 #include <machine/pmap.h>
-#include <machine_base/apic/mpapic.h>
+#include <machine_base/apic/lapic.h>
 #include <machine_base/apic/ioapic_abi.h>
 #include <machine/segments.h>
 #include <sys/thread2.h>
index de06656..9fd3f18 100644 (file)
@@ -35,7 +35,7 @@
 #include <machine/cputypes.h>
 #include <machine/md_var.h>
 #include <machine/pmap.h>
-#include <machine_base/apic/mpapic.h>
+#include <machine_base/apic/lapic.h>
 #include <machine_base/apic/ioapic_abi.h>
 #include <machine/segments.h>
 #include <sys/thread2.h>
similarity index 79%
rename from sys/platform/pc32/apic/mpapic.h
rename to sys/platform/pc32/apic/lapic.h
index 81a6178..b56b826 100644 (file)
  * $DragonFly: src/sys/platform/pc32/apic/mpapic.h,v 1.12 2008/06/07 11:37:23 mneumann Exp $
  */
 
-#ifndef _MACHINE_MPAPIC_H_
-#define _MACHINE_MPAPIC_H_
+#ifndef _ARCH_APIC_LAPIC_H_
+#define _ARCH_APIC_LAPIC_H_
 
 #include "apicreg.h"
 
-#include <machine_base/icu/icu.h>
-
-/*
- * Size of APIC ID list.
- * Also used a MAX size of various other arrays.
- */
-#define NAPICID                256
-
-/* these don't really belong in here... */
-enum busTypes {
-    CBUS = 1,
-    CBUSII = 2,
-    EISA = 3,
-    MCA = 4,
-    ISA = 6,
-    PCI = 13,
-    XPRESS = 18,
-    MAX_BUSTYPE = 18,
-    UNKNOWN_BUSTYPE = 0xff
-};
-
-
 /*
  * the physical/logical APIC ID management macros
  */
@@ -62,7 +40,7 @@ enum busTypes {
 #ifdef SMP
 
 /*
- * send an IPI INTerrupt containing 'vector' to all CPUs EXCEPT myself
+ * Send an IPI INTerrupt containing 'vector' to all CPUs EXCEPT myself
  */
 static __inline int
 all_but_self_ipi(int vector)
@@ -77,4 +55,4 @@ all_but_self_ipi(int vector)
 void   lapic_map(vm_offset_t /* XXX should be vm_paddr_t */);
 int    lapic_unused_apic_id(int);
 
-#endif /* _MACHINE_MPAPIC_H */
+#endif /* _ARCH_APIC_LAPIC_H_ */
index f0fcdcc..ba30820 100644 (file)
@@ -57,7 +57,7 @@
 #include <machine/cpufunc.h>
 #include <machine/cputypes.h>
 #include <machine_base/apic/ioapic_abi.h>
-#include <machine_base/apic/mpapic.h>
+#include <machine_base/apic/lapic.h>
 #include <machine/psl.h>
 #include <machine/segments.h>
 #include <machine/tss.h>
index 4582475..7cf00df 100644 (file)
@@ -57,7 +57,6 @@
 
 #include <machine/nexusvar.h>
 #include <machine/smp.h>
-#include <machine_base/apic/mpapic.h>
 
 #include <bus/pci/pcivar.h>
 #include <bus/pci/pcireg.h>
index e6b50d0..cd0a8cd 100644 (file)
 
 #ifdef _KERNEL
 
+/*
+ * Size of APIC ID list.
+ * Also used a MAX size of various other arrays.
+ */
+#define NAPICID                256
+
 #if defined(SMP)
 
 #ifndef LOCORE