aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/pci
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2008-05-02 17:44:18 +0000
committerMarius Strobl <marius@FreeBSD.org>2008-05-02 17:44:18 +0000
commit0b5a77c6a4243d5aad3484acb721a3b5b07e03ff (patch)
treea5d13e5d8ce170807ffd21fb2049a0ac0c75e1f9 /sys/sparc64/pci
parent4755eb64118f1133635d3cf796504dbfb6e081b3 (diff)
downloadsrc-0b5a77c6a4243d5aad3484acb721a3b5b07e03ff.tar.gz
src-0b5a77c6a4243d5aad3484acb721a3b5b07e03ff.zip
Remove an header which is unused for sun4v.
MFC after: 3 days
Notes
Notes: svn path=/head/; revision=178728
Diffstat (limited to 'sys/sparc64/pci')
-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 b9b9fed24085..3732ac3ba26a 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.