summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbenno <benno@FreeBSD.org>2002-07-10 09:46:49 +0000
committerbenno <benno@FreeBSD.org>2002-07-10 09:46:49 +0000
commitd842b432e724f046ed40e500b5c24e919bd864da (patch)
tree99eced4f40d1ea1cebbf5f5f35719e9531bd5ed1
parentb053cc9efebdd284b8db4a5843498da353065491 (diff)
downloadFreeBSD-src-d842b432e724f046ed40e500b5c24e919bd864da.zip
FreeBSD-src-d842b432e724f046ed40e500b5c24e919bd864da.tar.gz
Remove some dead code.
-rw-r--r--sys/powerpc/powermac/uninorth.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sys/powerpc/powermac/uninorth.c b/sys/powerpc/powermac/uninorth.c
index 2db1db1..8d59122 100644
--- a/sys/powerpc/powermac/uninorth.c
+++ b/sys/powerpc/powermac/uninorth.c
@@ -81,9 +81,6 @@ static void uninorth_write_config(device_t, u_int, u_int, u_int,
u_int, u_int32_t, int);
static int uninorth_route_interrupt(device_t, device_t, int);
-static bus_space_tag_t uninorth_alloc_bus_tag(struct uninorth_softc *sc,
- int type);
-
/*
* Local routines.
*/
@@ -231,11 +228,6 @@ uninorth_attach(device_t dev)
}
}
-#if 0
- sc->sc_iot = uninorth_alloc_bus_tag(sc, PCI_IO_BUS_SPACE);
- sc->sc_memt = uninorth_alloc_bus_tag(sc, PCI_MEMORY_BUS_SPACE);
-#endif
-
device_add_child(dev, "pci", device_get_unit(dev));
return (bus_generic_attach(dev));
}
@@ -400,28 +392,6 @@ uninorth_activate_resource(device_t bus, device_t child, int type, int rid,
return (rman_activate_resource(res));
}
-#if 0
-static bus_space_tag_t
-uninorth_alloc_bus_tag(struct uninorth_softc *sc, int type)
-{
- bus_space_tag_t bt;
-
- bt = (bus_space_tag_t)malloc(sizeof(struct bus_space_tag), M_DEVBUF,
- M_NOWAIT | M_ZERO);
- if (bt == NULL)
- panic("uninorth_alloc_bus_tag: out of memory");
-
- bzero(bt, sizeof(struct bus_space_tag));
- bt->cookie = sc;
-#if 0
- bt->parent = sc->sc_bustag;
-#endif
- bt->type = type;
-
- return (bt);
-}
-#endif
-
static int
uninorth_enable_config(struct uninorth_softc *sc, u_int bus, u_int slot,
u_int func, u_int reg)
OpenPOWER on IntegriCloud