mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-29 05:04:50 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52327
|
@ -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 a new issue