summaryrefslogtreecommitdiffstats
path: root/sys/pci/xrpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/xrpu.c')
-rw-r--r--sys/pci/xrpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pci/xrpu.c b/sys/pci/xrpu.c
index 9782399..08dbe82 100644
--- a/sys/pci/xrpu.c
+++ b/sys/pci/xrpu.c
@@ -225,7 +225,7 @@ xrpu_attach(device_t self)
unit = device_get_unit(self);
sc = device_get_softc(self);
sc->mode = NORMAL;
- rid = PCIR_MAPS;
+ rid = PCIR_BAR(0);
res = bus_alloc_resource(self, SYS_RES_MEMORY, &rid,
0, ~0, 1, RF_ACTIVE);
if (res == NULL) {
OpenPOWER on IntegriCloud