pciid
unsigned pciid, bhlcr;
pciid = cfgread(bus, device, 0, PCI_ID_REG);
if (PCI_VENDOR(pciid) == PCI_VENDOR_INVALID)
if (PCI_VENDOR(pciid) == 0)
pciid = cfgread(bus, device, function, PCI_ID_REG);
if (PCI_VENDOR(pciid) == PCI_VENDOR_INVALID)
if (PCI_VENDOR(pciid) == 0)
unsigned pciid;
pciid = cfgread(bus, dev, func, PCI_ID_REG);
return (pciid == (unsigned)data);
unsigned pciid, bhlcr, class;
pciid = cfgread(bus, device, 0, PCI_ID_REG);
if (PCI_VENDOR(pciid) == PCI_VENDOR_INVALID)
if (PCI_VENDOR(pciid) == 0)
pciid = cfgread(bus, device, function, PCI_ID_REG);
if (PCI_VENDOR(pciid) == PCI_VENDOR_INVALID)
if (PCI_VENDOR(pciid) == 0)
list[index].pvd = pciid;
unsigned pciid;
pciid = PCI_DEVICE(vend, prod);
if (_pcilookup(0, devmatch, pciid, &target, 0, 1)) {
hifn_enable_crypto(struct hifn_softc *sc, pcireg_t pciid)
if (pci2id[i].pci_vendor == PCI_VENDOR(pciid) &&
pci2id[i].pci_prod == PCI_PRODUCT(pciid)) {