aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2008-10-14 14:54:14 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2008-10-14 14:54:14 +0000
commit51d163d3e91cbf4fe782352c88c0dc6f37015b47 (patch)
treec6f1268aba033a8e59745da49122a0eae51600b2 /sys/dev
parent8e6c0f8cfd9709c7c3482ffdb0e71067890c07c3 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/powermac_nvram/powermac_nvram.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/powermac_nvram/powermac_nvram.c b/sys/dev/powermac_nvram/powermac_nvram.c
index a22c7abead8f..a55fcae8a1e1 100644
--- a/sys/dev/powermac_nvram/powermac_nvram.c
+++ b/sys/dev/powermac_nvram/powermac_nvram.c
@@ -35,17 +35,15 @@
#include <sys/uio.h>
#include <dev/ofw/openfirm.h>
-#include <dev/ofw/ofw_pci.h>
+#include <dev/ofw/ofw_bus.h>
#include <machine/bus.h>
#include <machine/md_var.h>
-#include <machine/nexusvar.h>
#include <machine/pio.h>
#include <machine/resource.h>
#include <sys/rman.h>
-#include <powerpc/ofw/ofw_pci.h>
#include <dev/powermac_nvram/powermac_nvramvar.h>
#include <vm/vm.h>
@@ -113,10 +111,10 @@ static struct cdevsw powermac_nvram_cdevsw = {
static int
powermac_nvram_probe(device_t dev)
{
- char *type, *compatible;
+ const char *type, *compatible;
- type = nexus_get_device_type(dev);
- compatible = nexus_get_compatible(dev);
+ type = ofw_bus_get_type(dev);
+ compatible = ofw_bus_get_compat(dev);
if (type == NULL || compatible == NULL)
return ENXIO;
@@ -136,7 +134,7 @@ powermac_nvram_attach(device_t dev)
u_int32_t reg[2];
int gen0, gen1;
- node = nexus_get_node(dev);
+ node = ofw_bus_get_node(dev);
sc = device_get_softc(dev);
if (OF_getprop(node, "reg", reg, sizeof(reg)) < 8)