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

Function pci_cfgregwrite

freebsd/amd64/pci/pci_cfgreg.c:121–131  ·  view source on GitHub ↗

* Write configuration space register */

Source from the content-addressed store, hash-verified

119 * Write configuration space register
120 */
121void
122pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes)
123{
124
125 if (cfgmech == CFGMECH_PCIE &&
126 (bus >= pcie_minbus && bus <= pcie_maxbus) &&
127 (bus != 0 || !(1 << slot & pcie_badslots)))
128 pciereg_cfgwrite(bus, slot, func, reg, data, bytes);
129 else
130 pcireg_cfgwrite(bus, slot, func, reg, data, bytes);
131}
132
133/*
134 * Configuration space access using direct register operations

Callers

nothing calls this directly

Calls 2

pciereg_cfgwriteFunction · 0.70
pcireg_cfgwriteFunction · 0.70

Tested by

no test coverage detected