disable configuration space accesses */
| 236 | |
| 237 | /* disable configuration space accesses */ |
| 238 | static void |
| 239 | pci_cfgdisable(void) |
| 240 | { |
| 241 | switch (cfgmech) { |
| 242 | case CFGMECH_PCIE: |
| 243 | case CFGMECH_1: |
| 244 | /* |
| 245 | * Do nothing for the config mechanism 1 case. |
| 246 | * Writing a 0 to the address port can apparently |
| 247 | * confuse some bridges and cause spurious |
| 248 | * access failures. |
| 249 | */ |
| 250 | break; |
| 251 | case CFGMECH_2: |
| 252 | outb(CONF2_ENABLE_PORT, 0); |
| 253 | break; |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | static int |
| 258 | pcireg_cfgread(int bus, int slot, int func, int reg, int bytes) |
no test coverage detected