summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-12-03 08:13:08 +0000
committernjl <njl@FreeBSD.org>2004-12-03 08:13:08 +0000
commit63e8d4f89a4a9a52b5a7bca6b2d917e33c6f47e3 (patch)
treef658486306eda785f58646c1eb7cbe447c29c8d7 /sys/dev/pci
parent0ce0c908ff33d73ee79bcc0612a2a5026f0f0844 (diff)
downloadFreeBSD-src-63e8d4f89a4a9a52b5a7bca6b2d917e33c6f47e3.zip
FreeBSD-src-63e8d4f89a4a9a52b5a7bca6b2d917e33c6f47e3.tar.gz
Non-x86 platforms cannot use the ACPI includes. This should be fixed but
for now, only include the headers for i386, amd64, or ia64. Pointed out by: grehan
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index dbbdd91..ef8659d 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -60,9 +60,13 @@ __FBSDID("$FreeBSD$");
#include "pcib_if.h"
#include "pci_if.h"
+#if defined(__i386__) || defined(__amd64__) || defined (__ia64__)
#include <contrib/dev/acpica/acpi.h>
#include <dev/acpica/acpivar.h>
#include "acpi_if.h"
+#else
+#define ACPI_PWR_FOR_SLEEP(x, y, z)
+#endif
static uint32_t pci_mapbase(unsigned mapreg);
static int pci_maptype(unsigned mapreg);
OpenPOWER on IntegriCloud