diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/pci.c | 2 | ||||
-rw-r--r-- | sys/pci/pci.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 8860582..d35bc86 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -950,7 +950,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg, u_int8_t ln2size; u_int8_t ln2range; u_int32_t testval; +#ifdef PCI_ENABLE_IO_MODES u_int16_t cmd; +#endif int type; map = PCIB_READ_CONFIG(pcib, b, s, f, reg, 4); diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 8860582..d35bc86 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -950,7 +950,9 @@ pci_add_map(device_t pcib, int b, int s, int f, int reg, u_int8_t ln2size; u_int8_t ln2range; u_int32_t testval; +#ifdef PCI_ENABLE_IO_MODES u_int16_t cmd; +#endif int type; map = PCIB_READ_CONFIG(pcib, b, s, f, reg, 4); |