Correct a stupid type which prevented us from working with any device
which needed port resources.
This commit is contained in:
parent
af51b059b5
commit
9091387f87
@ -1032,7 +1032,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
|
||||
#endif
|
||||
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
|
||||
continue;
|
||||
if (type == SYS_RES_IOPORT && !pci_memen(cfg))
|
||||
if (type == SYS_RES_MEMORY && !pci_memen(cfg))
|
||||
continue;
|
||||
|
||||
resource_list_add(rl, type, reg,
|
||||
|
@ -1032,7 +1032,7 @@ pci_add_resources(device_t dev, pcicfgregs* cfg)
|
||||
#endif
|
||||
if (type == SYS_RES_IOPORT && !pci_porten(cfg))
|
||||
continue;
|
||||
if (type == SYS_RES_IOPORT && !pci_memen(cfg))
|
||||
if (type == SYS_RES_MEMORY && !pci_memen(cfg))
|
||||
continue;
|
||||
|
||||
resource_list_add(rl, type, reg,
|
||||
|
Loading…
Reference in New Issue
Block a user