diff options
Diffstat (limited to 'sys/sparc64/pci/ofw_pcib_subr.c')
-rw-r--r-- | sys/sparc64/pci/ofw_pcib_subr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/sparc64/pci/ofw_pcib_subr.c b/sys/sparc64/pci/ofw_pcib_subr.c index daf7e0b..b297d34 100644 --- a/sys/sparc64/pci/ofw_pcib_subr.c +++ b/sys/sparc64/pci/ofw_pcib_subr.c @@ -31,8 +31,9 @@ #include <sys/systm.h> #include <sys/bus.h> -#include <dev/ofw/openfirm.h> +#include <dev/ofw/ofw_bus.h> #include <dev/ofw/ofw_pci.h> +#include <dev/ofw/openfirm.h> #include <machine/bus.h> #include <machine/ofw_bus.h> @@ -53,7 +54,7 @@ ofw_pcib_gen_setup(device_t bridge) u_int secbus; sc->ops_pcib_sc.dev = bridge; - sc->ops_node = ofw_pci_get_node(bridge); + sc->ops_node = ofw_bus_get_node(bridge); KASSERT(sc->ops_node != 0, ("ofw_pcib_gen_setup: no ofw pci parent bus!")); @@ -81,7 +82,7 @@ ofw_pcib_gen_route_interrupt(device_t bridge, device_t dev, int intpin) struct ofw_bus_iinfo *ii = &sc->ops_iinfo; struct ofw_pci_register reg; device_t pbridge = device_get_parent(device_get_parent(bridge)); - phandle_t node = ofw_pci_get_node(dev); + phandle_t node = ofw_bus_get_node(dev); ofw_pci_intr_t pintr, mintr; u_int8_t maskbuf[sizeof(reg) + sizeof(pintr)]; |