Use PCIR_BAR() instead of a magic offset.
This commit is contained in:
parent
008d694364
commit
03f1b3ffef
@ -198,7 +198,7 @@ aac_pci_attach(device_t dev)
|
||||
/*
|
||||
* Allocate the PCI register window.
|
||||
*/
|
||||
sc->aac_regs_rid = 0x10; /* first base address register */
|
||||
sc->aac_regs_rid = PCIR_BAR(0);
|
||||
if ((sc->aac_regs_resource = bus_alloc_resource(sc->aac_dev,
|
||||
SYS_RES_MEMORY,
|
||||
&sc->aac_regs_rid,
|
||||
|
Loading…
x
Reference in New Issue
Block a user