Demand minimum I/O size rather than 0 when it calls

bus_alloc_resource(dev, SYS_RES_IOPORT, ...)

Pointed-out by: Yamamoto-san shigeru@iij.ad.jp
This commit is contained in:
non 2001-09-02 06:42:40 +00:00
parent 5757abe58a
commit 794b5d1b6e
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ nsp_alloc_resource(DEVPORT_PDEVICE dev)
sc->port_rid = 0;
sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid,
0, ~0, 0, RF_ACTIVE);
0, ~0, NSP_IOSIZE, RF_ACTIVE);
if (sc->port_res == NULL) {
nsp_release_resource(dev);
return(ENOMEM);

View File

@ -148,7 +148,7 @@ stg_alloc_resource(DEVPORT_PDEVICE dev)
sc->port_rid = 0;
sc->port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->port_rid,
0, ~0, 0, RF_ACTIVE);
0, ~0, STGIOSZ, RF_ACTIVE);
if (sc->port_res == NULL) {
stg_release_resource(dev);
return(ENOMEM);