summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2008-05-02 17:44:18 +0000
committermarius <marius@FreeBSD.org>2008-05-02 17:44:18 +0000
commit5c5505b2bed5647197f8cef87bd05cc4231b536e (patch)
treea5d13e5d8ce170807ffd21fb2049a0ac0c75e1f9 /sys/sparc64
parent5a923df198b24d48d9a046c48b9658e9dcf51fc3 (diff)
downloadFreeBSD-src-5c5505b2bed5647197f8cef87bd05cc4231b536e.zip
FreeBSD-src-5c5505b2bed5647197f8cef87bd05cc4231b536e.tar.gz
Remove an header which is unused for sun4v.
MFC after: 3 days
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/pci/ofw_pcibus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/pci/ofw_pcibus.c b/sys/sparc64/pci/ofw_pcibus.c
index b9b9fed..3732ac3 100644
--- a/sys/sparc64/pci/ofw_pcibus.c
+++ b/sys/sparc64/pci/ofw_pcibus.c
@@ -45,8 +45,8 @@ __FBSDID("$FreeBSD$");
#include <dev/ofw/openfirm.h>
#include <machine/bus.h>
-#include <machine/bus_common.h>
#ifndef SUN4V
+#include <machine/bus_common.h>
#include <machine/iommureg.h>
#endif
#include <machine/resource.h>
@@ -233,12 +233,14 @@ ofw_pcibus_assign_interrupt(device_t dev, device_t child)
if (isz != sizeof(intr)) {
/* No property; our best guess is the intpin. */
intr = pci_get_intpin(child);
+#ifndef SUN4V
} else if (intr >= 255) {
/*
* A fully specified interrupt (including IGN), as present on
* SPARCengine Ultra AX and e450. Extract the INO and return it.
*/
return (INTINO(intr));
+#endif
}
/*
* If we got intr from a property, it may or may not be an intpin.
OpenPOWER on IntegriCloud