Fix params passed to pci_porten() and pci_memen().

This commit is contained in:
phk 2000-10-29 09:59:28 +00:00
parent 5523c894ed
commit 271b521d5e
2 changed files with 4 additions and 4 deletions

View File

@ -1005,9 +1005,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg,
PCIB_WRITE_CONFIG(pcib, b, s, f, PCIR_COMMAND, cmd, 2);
}
#else
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
if (type == SYS_RES_IOPORT && !pci_porten(pcib, b, s, f))
return 1;
if (type == SYS_RES_MEMORY && !pci_memen(cfg))
if (type == SYS_RES_MEMORY && !pci_memen(pcib, b, s, f))
return 1;
#endif

View File

@ -1005,9 +1005,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg,
PCIB_WRITE_CONFIG(pcib, b, s, f, PCIR_COMMAND, cmd, 2);
}
#else
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
if (type == SYS_RES_IOPORT && !pci_porten(pcib, b, s, f))
return 1;
if (type == SYS_RES_MEMORY && !pci_memen(cfg))
if (type == SYS_RES_MEMORY && !pci_memen(pcib, b, s, f))
return 1;
#endif