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:
Noriaki Mitsunaga 2001-09-02 06:42:40 +00:00
parent a8bc31671a
commit 1068971fe0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82782
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);