Replace another instance of PCIR_MAPS with PCIR_BAR(x).

Reminded by:	dfr
This commit is contained in:
John Baldwin 2003-09-03 15:24:31 +00:00
parent 700a0cbaca
commit ab551d918c

View File

@ -1344,7 +1344,7 @@ pci_alloc_resource(device_t dev, device_t child, int type, int *rid,
break;
case SYS_RES_IOPORT:
case SYS_RES_MEMORY:
if (*rid < PCIR_MAPS + 4*cfg->nummaps) {
if (*rid < PCIR_BAR(cfg->nummaps)) {
/*
* Enable the I/O mode. We should
* also be allocating resources