BUS_SPACE_UNRESTRICTED shouldn't be used with the bus_alloc_resource
interface. Instead, move to the convenience _any interface.
This commit is contained in:
parent
3d7d8f614b
commit
7c61c21042
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141095
@ -850,8 +850,8 @@ cmi_attach(device_t dev)
|
||||
|
||||
sc->dev = dev;
|
||||
sc->regid = PCIR_BAR(0);
|
||||
sc->reg = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->regid,
|
||||
0, BUS_SPACE_UNRESTRICTED, 1, RF_ACTIVE);
|
||||
sc->reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->regid,
|
||||
RF_ACTIVE);
|
||||
if (!sc->reg) {
|
||||
device_printf(dev, "cmi_attach: Cannot allocate bus resource\n");
|
||||
goto bad;
|
||||
|
@ -1843,8 +1843,8 @@ agg_attach(device_t dev)
|
||||
|
||||
/* Allocate resources. */
|
||||
if (data & PCIM_CMD_PORTEN)
|
||||
reg = bus_alloc_resource(dev, SYS_RES_IOPORT, ®id,
|
||||
0, BUS_SPACE_UNRESTRICTED, 256, RF_ACTIVE);
|
||||
reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, ®id,
|
||||
RF_ACTIVE);
|
||||
if (reg != NULL) {
|
||||
ess->reg = reg;
|
||||
ess->regid = regid;
|
||||
@ -1855,8 +1855,8 @@ agg_attach(device_t dev)
|
||||
ret = ENXIO;
|
||||
goto bad;
|
||||
}
|
||||
irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
|
||||
0, BUS_SPACE_UNRESTRICTED, 1, RF_ACTIVE | RF_SHAREABLE);
|
||||
irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &irqid,
|
||||
RF_ACTIVE | RF_SHAREABLE);
|
||||
if (irq != NULL) {
|
||||
ess->irq = irq;
|
||||
ess->irqid = irqid;
|
||||
|
Loading…
Reference in New Issue
Block a user