pci_read
if (pci_read(bus, dev, func, PCI_ID_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_COMMAND_STATUS_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_CLASS_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_BHLC_REG, ®) != 0)
if (pci_read(bus, dev, func, i, ®) != 0) {
if (pci_read(bus, dev, 0, PCI_BHLC_REG, &hdr) != 0)
if (pci_read(bus, dev, func, PCI_ROM_REG, &addr) != 0 ||
pci_read(bus, dev, func, PCI_CLASS_REG, &cr) != 0)
if (pci_read(bus, dev, func, PCI_ID_REG, &id_reg) != 0)
if (pci_read(bus, dev, func, ptr + PCI_PMCSR, &pmcsr) != 0)
int pci_read(int, int, int, u_int32_t, u_int32_t *);
if (pci_read(bus, dev, func, ptr + PCI_PCIE_DCAP, &dcap) != 0)
if (pci_read(bus, dev, func, ptr + PCI_PCIE_DCSR, &dcsr) != 0)
if (pci_read(bus, dev, func, ptr + PCI_PCIE_LCAP, &lcap) != 0)
if (pci_read(bus, dev, func, ptr + PCI_PCIE_LCSR, &lcsr) != 0)
if ((pci_read(bus, dev, func, ptr + 8, &upper) != 0) ||
(pci_read(bus, dev, func, ptr + 4, &lower) != 0))
if (pci_read(bus, dev, func, ptr, ®) != 0)
if ((pci_read(bus, dev, func, ptr, ®) != 0) ||
(pci_read(bus, dev, func, ptr + PCI_MSIX_TABLE, &table) != 0))
if (pci_read(bus, dev, func, ptr, ®) != 0)
if (pci_read(bus, dev, func, PCI_COMMAND_STATUS_REG, ®) != 0)
if (pci_read(bus, dev, func, ptr, ®) != 0)
if (pci_read(bus, dev, func, ptr, ®) != 0)
if (pci_read(bus, dev, func, bar, ®) != 0 ||
if (pci_read(bus, dev, func, bar, ®) != 0 ||
if (pci_read(bus, dev, func, PCI_CARDBUS_CIS_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_SUBSYS_ID_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_ROM_REG, ®) != 0)
if (pci_read(bus, dev, func, 0x38, ®) != 0)
if (pci_read(bus, dev, func, PCI_INTERRUPT_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_PRIBUS_1, ®) != 0)
if (pci_read(bus, dev, func, PCI_IOBASEL_1, ®) != 0)
if (pci_read(bus, dev, func, PCI_IOBASEH_1, &iobaseh) != 0)
if (pci_read(bus, dev, func, PCI_MEMBASE_1, ®) != 0)
if (pci_read(bus, dev, func, PCI_PMBASEL_1, ®) != 0)
if (pci_read(bus, dev, func, PCI_PMBASEH_1, &pmbaseh) != 0)
if (pci_read(bus, dev, func, PCI_PMLIMITH_1, &pmlimith) != 0)
if (pci_read(bus, dev, func, PCI_EXROMADDR_1, ®) != 0)
if (pci_read(bus, dev, func, PCI_INTERRUPT_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_MAPREG_START, ®) != 0)
if (pci_read(bus, dev, func, PCI_PRIBUS_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_MEMBASE0_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_MEMLIMIT0_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_MEMBASE1_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_MEMLIMIT1_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_IOBASE0_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_IOLIMIT0_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_IOBASE1_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_IOLIMIT1_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_INTERRUPT_REG, ®) != 0)
if (pci_read(bus, dev, func, PCI_SUBVEND_2, ®) != 0)
if (pci_read(bus, dev, func, PCI_PCCARDIF_2, ®) != 0)