diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-07-26 18:56:43 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-07-26 18:56:43 +0000 |
commit | a9512777739a9e09c385ada16a99b39ac30bc7c5 (patch) | |
tree | f0ae0c7aa14dc3f0df4a4ccf544417bc4949e9de /sys/arch | |
parent | 7458aafff0569577b463f9c368e66cb25262aa6c (diff) |
Create the pci resource extents as covering the full 4GB address space,
with only the available range free, instead of that range only.
ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sh/dev/shpcic.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sys/arch/sh/dev/shpcic.c b/sys/arch/sh/dev/shpcic.c index ff532e94de6..ffb92394fc7 100644 --- a/sys/arch/sh/dev/shpcic.c +++ b/sys/arch/sh/dev/shpcic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: shpcic.c,v 1.8 2009/04/25 16:25:12 kettenis Exp $ */ +/* $OpenBSD: shpcic.c,v 1.9 2009/07/26 18:56:42 miod Exp $ */ /* $NetBSD: shpcic.c,v 1.10 2005/12/24 20:07:32 perry Exp $ */ /* @@ -250,10 +250,14 @@ shpcic_attach(struct device *parent, struct device *self, void *aux) sc->sc_iobus_space.bus_size = SH4_PCIC_IO_SIZE; sc->sc_iobus_space.bus_io = 1;; - io_ex = extent_create("pciio", SH4_PCIC_IO, - SH4_PCIC_IO + SH4_PCIC_IO_SIZE - 1, M_DEVBUF, NULL, 0, EX_NOWAIT); - mem_ex = extent_create("pcimem", SH4_PCIC_MEM, - SH4_PCIC_MEM + SH4_PCIC_MEM_SIZE - 1, M_DEVBUF, NULL, 0, EX_NOWAIT); + io_ex = extent_create("pciio", 0, 0xffffffff, M_DEVBUF, NULL, 0, + EX_NOWAIT | EX_FILLED); + if (io_ex != NULL) + extent_free(io_ex, SH4_PCIC_IO, SH4_PCIC_IO_SIZE, EX_NOWAIT); + mem_ex = extent_create("pcimem", 0, 0xffffffff, M_DEVBUF, NULL, 0, + EX_NOWAIT | EX_FILLED); + if (mem_ex != NULL) + extent_free(mem_ex, SH4_PCIC_MEM, SH4_PCIC_MEM_SIZE, EX_NOWAIT); sc->sc_pci_chipset = shpcic_get_bus_mem_tag(); |