MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pci_cfgdisable

Function pci_cfgdisable

freebsd/i386/pci/pci_cfgreg.c:238–255  ·  view source on GitHub ↗

disable configuration space accesses */

Source from the content-addressed store, hash-verified

236
237/* disable configuration space accesses */
238static void
239pci_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
257static int
258pcireg_cfgread(int bus, int slot, int func, int reg, int bytes)

Callers 3

pcireg_cfgreadFunction · 0.70
pcireg_cfgwriteFunction · 0.70
pci_cfgcheckFunction · 0.70

Calls 1

outbFunction · 0.50

Tested by

no test coverage detected