adapt to extent(9) changes
This commit is contained in:
parent
e334a4ccda
commit
8c064ceca8
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: mppb.c,v 1.5 2012/01/19 00:14:08 rkujawa Exp $ */
|
||||
/* $NetBSD: mppb.c,v 1.6 2012/01/29 15:32:52 para Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 The NetBSD Foundation, Inc.
|
||||
@ -168,9 +168,9 @@ mppb_attach(device_t parent, device_t self, void *aux)
|
||||
|
||||
#ifdef PCI_NETBSD_CONFIGURE
|
||||
ioext = extent_create("mppbio", MPPB_IO_BASE,
|
||||
MPPB_IO_BASE + MPPB_IO_SIZE, M_DEVBUF, NULL, 0, EX_NOWAIT);
|
||||
MPPB_IO_BASE + MPPB_IO_SIZE, NULL, 0, EX_NOWAIT);
|
||||
memext = extent_create("mppbmem", MPPB_MEM_BASE,
|
||||
MPPB_MEM_BASE + MPPB_MEM_SIZE, M_DEVBUF, NULL, 0, EX_NOWAIT);
|
||||
MPPB_MEM_BASE + MPPB_MEM_SIZE, NULL, 0, EX_NOWAIT);
|
||||
|
||||
#ifdef MPPB_DEBUG
|
||||
aprint_normal("mppb: reconfiguring the bus!\n");
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: p5pb.c,v 1.7 2012/01/24 00:20:45 rkujawa Exp $ */
|
||||
/* $NetBSD: p5pb.c,v 1.8 2012/01/29 15:32:52 para Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011, 2012 The NetBSD Foundation, Inc.
|
||||
@ -452,11 +452,11 @@ p5pb_bus_reconfigure(struct p5pb_softc *sc)
|
||||
|
||||
pc = &sc->apc;
|
||||
|
||||
ioext = extent_create("p5pbio", 0, P5BUS_PCI_IO_SIZE, M_DEVBUF, NULL, 0,
|
||||
EX_NOWAIT);
|
||||
ioext = extent_create("p5pbio", 0, P5BUS_PCI_IO_SIZE, NULL, 0,
|
||||
EX_NOWAIT);
|
||||
|
||||
memext = extent_create("p5pbmem", sc->pci_mem_lowest,
|
||||
sc->pci_mem_highest, M_DEVBUF, NULL, 0, EX_NOWAIT);
|
||||
sc->pci_mem_highest, NULL, 0, EX_NOWAIT);
|
||||
|
||||
if ( (!ioext) || (!memext) )
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user