From 501755f4f61fef5716992ea6d59cfba80eef84ee Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 1 Jan 2006 20:59:28 +0000 Subject: [PATCH] Define __HAVE_ACPI and/or __PCI_REROUTE_INTERRUPT, as appropriate for each platform. These will be used in the pci code in preference to the complicated #ifdefs we have there now. --- sys/alpha/include/_types.h | 2 ++ sys/amd64/include/_types.h | 2 ++ sys/arm/include/_types.h | 2 ++ sys/i386/include/_types.h | 2 ++ sys/ia64/include/_types.h | 3 +++ sys/pc98/include/_types.h | 2 ++ 6 files changed, 13 insertions(+) diff --git a/sys/alpha/include/_types.h b/sys/alpha/include/_types.h index a8acbbbce35..88ae6e539fc 100644 --- a/sys/alpha/include/_types.h +++ b/sys/alpha/include/_types.h @@ -43,6 +43,8 @@ #error this file needs sys/cdefs.h as a prerequisite #endif +#define __PCI_REROUTE_INTERRUPT + /* * Basic types upon which most other types are built. */ diff --git a/sys/amd64/include/_types.h b/sys/amd64/include/_types.h index 4217c82b060..d129b217fb6 100644 --- a/sys/amd64/include/_types.h +++ b/sys/amd64/include/_types.h @@ -44,6 +44,8 @@ #endif #define __NO_STRICT_ALIGNMENT +#define __HAVE_ACPI +#define __PCI_REROUTE_INTERRUPT /* * Basic types upon which most other types are built. diff --git a/sys/arm/include/_types.h b/sys/arm/include/_types.h index c700f523caf..8775b9622a5 100644 --- a/sys/arm/include/_types.h +++ b/sys/arm/include/_types.h @@ -43,6 +43,8 @@ #error this file needs sys/cdefs.h as a prerequisite #endif +#define __PCI_REROUTE_INTERRUPT + /* * Basic types upon which most other types are built. */ diff --git a/sys/i386/include/_types.h b/sys/i386/include/_types.h index b272cf0f3f8..1238183ab92 100644 --- a/sys/i386/include/_types.h +++ b/sys/i386/include/_types.h @@ -44,6 +44,8 @@ #endif #define __NO_STRICT_ALIGNMENT +#define __HAVE_ACPI +#define __PCI_REROUTE_INTERRUPT /* * Basic types upon which most other types are built. diff --git a/sys/ia64/include/_types.h b/sys/ia64/include/_types.h index 8fc1be2f387..5143ad49292 100644 --- a/sys/ia64/include/_types.h +++ b/sys/ia64/include/_types.h @@ -43,6 +43,9 @@ #error this file needs sys/cdefs.h as a prerequisite #endif +#define __HAVE_ACPI +#define __PCI_REROUTE_INTERRUPT + /* * Basic types upon which most other types are built. */ diff --git a/sys/pc98/include/_types.h b/sys/pc98/include/_types.h index 63da67a982a..b5ff4b15732 100644 --- a/sys/pc98/include/_types.h +++ b/sys/pc98/include/_types.h @@ -4,3 +4,5 @@ /* $FreeBSD$ */ #include + +#undef __HAVE_ACPI