int pcicfgwrite(pcihdl_t *handle, int off, int val) { int ret; ret = pcibios_cfgwrite(*handle, off, val); if (ret) return -1; return 0; }
/* * Write configuration space register */ void pci_cfgregwrite(int bus, int slot, int func, int reg, u_int32_t data, int bytes) { #ifdef USE_PCI_BIOS_FOR_READ_WRITE if (usebios) pcibios_cfgwrite(bus, slot, func, reg, data, bytes); else pcireg_cfgwrite(bus, slot, func, reg, data, bytes); #else pcireg_cfgwrite(bus, slot, func, reg, data, bytes); #endif }