summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2008-09-05 22:27:10 +0000
committerimp <imp@FreeBSD.org>2008-09-05 22:27:10 +0000
commit4f189f7cd19c1d6ad4e2fb0441a5b92a8b281fdb (patch)
tree09cc876b50da28af853808c4d2db26be278a21b5 /sys/arm/at91/at91.c
parent5c95f8503b237d04b9c9ac0de1276b8c1d26d0e4 (diff)
downloadFreeBSD-src-4f189f7cd19c1d6ad4e2fb0441a5b92a8b281fdb.zip
FreeBSD-src-4f189f7cd19c1d6ad4e2fb0441a5b92a8b281fdb.tar.gz
Kill vestiges of the special case code we once had in place for usb
memory allocation. It was change to include the range in the normal memory area, so these ifdef'd out special cases are no longer useful to keep around.
Diffstat (limited to 'sys/arm/at91/at91.c')
-rw-r--r--sys/arm/at91/at91.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/arm/at91/at91.c b/sys/arm/at91/at91.c
index 17e0ca2..67a82ed 100644
--- a/sys/arm/at91/at91.c
+++ b/sys/arm/at91/at91.c
@@ -458,10 +458,6 @@ at91_attach(device_t dev)
sc->sc_irq_rman.rm_descr = "AT91 IRQs";
sc->sc_mem_rman.rm_type = RMAN_ARRAY;
sc->sc_mem_rman.rm_descr = "AT91 Memory";
-#if 0
- sc->sc_usbmem_rman.rm_type = RMAN_ARRAY;
- sc->sc_usbmem_rman.rm_descr = "AT91RM9200 USB Memory-mapped regs";
-#endif
if (rman_init(&sc->sc_irq_rman) != 0 ||
rman_manage_region(&sc->sc_irq_rman, 1, 31) != 0)
panic("at91_attach: failed to set up IRQ rman");
@@ -536,14 +532,8 @@ at91_alloc_resource(device_t dev, device_t child, int type, int *rid,
start, end, count, flags, child);
break;
case SYS_RES_MEMORY:
-#if 0
- if (start >= 0x00300000 && start <= 0x003fffff)
- rle->res = rman_reserve_resource(&sc->sc_usbmem_rman,
- start, end, count, flags, child);
- else
-#endif
- rle->res = rman_reserve_resource(&sc->sc_mem_rman,
- start, end, count, flags, child);
+ rle->res = rman_reserve_resource(&sc->sc_mem_rman,
+ start, end, count, flags, child);
rman_set_bustag(rle->res, &at91_bs_tag);
rman_set_bushandle(rle->res, start);
break;
OpenPOWER on IntegriCloud