diff options
| author | eeh <eeh@NetBSD.org> | 2002-03-21 21:33:57 +0000 |
|---|---|---|
| committer | eeh <eeh@NetBSD.org> | 2002-03-21 21:33:57 +0000 |
| commit | 9c8153181f5deda68fa14fd3383f5d8008ba3043 (patch) | |
| tree | 21d753e9f49ad4edc0f81176939178ed6dfcd1ca /sys/dev | |
| parent | 1c9c09e3becbd218b18d6442270a437b26c290d7 (diff) | |
Do not even bother trying to use the mappings provided by the PROM.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ebus/cs4231_ebus.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/sys/dev/ebus/cs4231_ebus.c b/sys/dev/ebus/cs4231_ebus.c index 5f381505b41..90222c33305 100644 --- a/sys/dev/ebus/cs4231_ebus.c +++ b/sys/dev/ebus/cs4231_ebus.c @@ -1,4 +1,4 @@ -/* $NetBSD: cs4231_ebus.c,v 1.3 2002/03/21 04:09:27 uwe Exp $ */ +/* $NetBSD: cs4231_ebus.c,v 1.4 2002/03/21 21:33:57 eeh Exp $ */ /* * Copyright (c) 2002 Valeriy E. Ushakov @@ -171,20 +171,13 @@ cs4231_ebus_attach(parent, self, aux) * Map my registers in, if they aren't already in virtual * address space. */ - if (ea->ea_nvaddr) { - bh = (bus_space_handle_t)ea->ea_vaddr[0]; - } else { - if (bus_space_map(ea->ea_bustag, - EBUS_ADDR_FROM_REG(&ea->ea_reg[0]), - ea->ea_reg[0].size, - 0, &bh) != 0) - { - printf("%s: unable to map registers\n", - self->dv_xname); - return; - } + if (bus_space_map(ea->ea_bustag, EBUS_ADDR_FROM_REG(&ea->ea_reg[0]), + ea->ea_reg[0].size, 0, &bh) != 0) { + printf("%s: unable to map registers\n", + self->dv_xname); + return; } - + /* XXX: map playback DMA registers (we just know where they are) */ if (bus_space_map(ea->ea_bustag, BUS_ADDR(0x14, 0x702000), /* XXX: magic num */ |
