PCI_ROM_REG
address = pci_conf_read(adev->pc, adev->pa_tag, PCI_ROM_REG);
pci_conf_write(adev->pc, adev->pa_tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(adev->pc, adev->pa_tag, PCI_ROM_REG);
pci_conf_write(adev->pc, adev->pa_tag, PCI_ROM_REG, address);
addr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, addr);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, base);
address = pci_conf_read(rdev->pc, rdev->pa_tag, PCI_ROM_REG);
pci_conf_write(rdev->pc, rdev->pa_tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(rdev->pc, rdev->pa_tag, PCI_ROM_REG);
pci_conf_write(rdev->pc, rdev->pa_tag, PCI_ROM_REG, address);
addr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, addr);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, base);
if (pci_mapreg_map(pa, PCI_ROM_REG, PCI_MAPREG_TYPE_MEM, 0,
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
if (pci_mapreg_map(pa, PCI_ROM_REG, PCI_MAPREG_TYPE_MEM, 0,
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
if (pci_mapreg_map(pa, PCI_ROM_REG, PCI_MAPREG_TYPE_MEM, 0,
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
PWRITE(psc, PCI_ROM_REG, PREAD(psc, PCI_ROM_REG) & ~PCI_ROM_ENABLE);
pci_conf_write(sc->sc_pc, sc->sc_tag, PCI_ROM_REG,
pci_conf_read(sc->sc_pc, sc->sc_tag, PCI_ROM_REG) &
pci_conf_write(pc, tag, PCI_ROM_REG, 0);
addr = pci_conf_read(pc, tag, PCI_ROM_REG);
pci_conf_write(pc, tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(pc, tag, PCI_ROM_REG);
pci_conf_write(pc, tag, PCI_ROM_REG, addr);
pci_conf_write(pc, tag, PCI_ROM_REG,
pci_conf_write(pc, tag, PCI_ROM_REG, addr);
reg_rom = PCI_ROM_REG;
addr = pci_conf_read(pc, tag, PCI_ROM_REG);
pci_conf_write(pc, tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(pc, tag, PCI_ROM_REG);
pci_conf_write(pc, tag, PCI_ROM_REG, addr);
reg_rom = PCI_ROM_REG;
pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, pcictl);
pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, pcictl);
pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, pcictl);
address = pci_conf_read(spc->sc_pc, spc->sc_tag, PCI_ROM_REG);
pci_conf_write(spc->sc_pc, spc->sc_tag, PCI_ROM_REG, address);
address = pci_conf_read(spc->sc_pc, spc->sc_tag, PCI_ROM_REG);
pci_conf_write(spc->sc_pc, spc->sc_tag, PCI_ROM_REG, address);
address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, ~PCI_ROM_ENABLE);
mask = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG);
pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_ROM_REG, address);
if (i == 0 && region_bars[i] == PCI_ROM_REG)
if (region_bars[0] == PCI_ROM_REG) {
if (pci_read(bus, dev, func, PCI_ROM_REG, &addr) != 0 ||
if (pci_read(bus, dev, func, PCI_ROM_REG, ®) != 0)
PCI_ROM_REG, reg);