| /openbsd/src/sys/dev/pci/ |
| D | adv_pci.c | 128 u_int32_t bhlcr; in adv_pci_attach() local 130 bhlcr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); in adv_pci_attach() 134 bhlcr &= 0xFFFF00FFul; in adv_pci_attach() 136 PCI_BHLC_REG, bhlcr); in adv_pci_attach() 138 (PCI_LATTIMER(bhlcr) < 0x20)) { in adv_pci_attach() 139 bhlcr &= 0xFFFF00FFul; in adv_pci_attach() 140 bhlcr |= 0x00002000ul; in adv_pci_attach() 142 PCI_BHLC_REG, bhlcr); in adv_pci_attach()
|
| D | pcireg.h | 313 #define PCI_BIST(bhlcr) \ argument 314 (((bhlcr) >> PCI_BIST_SHIFT) & PCI_BIST_MASK) 318 #define PCI_HDRTYPE(bhlcr) \ argument 319 (((bhlcr) >> PCI_HDRTYPE_SHIFT) & PCI_HDRTYPE_MASK) 321 #define PCI_HDRTYPE_TYPE(bhlcr) \ argument 322 (PCI_HDRTYPE(bhlcr) & 0x7f) 323 #define PCI_HDRTYPE_MULTIFN(bhlcr) \ argument 324 ((PCI_HDRTYPE(bhlcr) & 0x80) != 0) 328 #define PCI_LATTIMER(bhlcr) \ argument 329 (((bhlcr) >> PCI_LATTIMER_SHIFT) & PCI_LATTIMER_MASK) [all …]
|
| D | pci.c | 419 pcireg_t id, class, intr, bhlcr, cap; in pci_probe_device() local 426 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in pci_probe_device() 427 if (PCI_HDRTYPE_TYPE(bhlcr) > 2) in pci_probe_device() 532 switch (PCI_HDRTYPE_TYPE(bhlcr)) { in pci_probe_device() 826 pcireg_t id, bhlcr, cap; in pci_enumerate_bus() local 851 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in pci_enumerate_bus() 852 if (PCI_HDRTYPE_TYPE(bhlcr) > 2) in pci_enumerate_bus() 873 nfunctions = PCI_HDRTYPE_MULTIFN(bhlcr) ? 8 : 1; in pci_enumerate_bus()
|
| D | ppb.c | 576 pcireg_t id, busdata, blr, bhlcr, type, csr; in ppb_alloc_resources() local 607 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in ppb_alloc_resources() 608 switch (PCI_HDRTYPE_TYPE(bhlcr)) { in ppb_alloc_resources()
|
| /openbsd/src/sys/arch/macppc/pci/ |
| D | pci_machdep.c | 252 pcireg_t bhlcr; in ofw_enumerate_pcibus() local 291 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in ofw_enumerate_pcibus() 292 if (PCI_HDRTYPE_TYPE(bhlcr) > 2) in ofw_enumerate_pcibus() 319 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in ofw_enumerate_pcibus() 320 if (PCI_HDRTYPE_TYPE(bhlcr) > 2) in ofw_enumerate_pcibus()
|
| /openbsd/src/sys/arch/amd64/amd64/ |
| D | mpbios_intr_fixup.c | 194 pcireg_t bhlcr; in mpbios_intr_fixup() local 206 bhlcr = pci_conf_read(pc, icutag, PCI_BHLC_REG); in mpbios_intr_fixup() 207 if (PCI_HDRTYPE_MULTIFN(bhlcr) || (qd != NULL && in mpbios_intr_fixup()
|
| /openbsd/src/sys/arch/i386/i386/ |
| D | mpbios_intr_fixup.c | 194 pcireg_t bhlcr; in mpbios_intr_fixup() local 206 bhlcr = pci_conf_read(pc, icutag, PCI_BHLC_REG); in mpbios_intr_fixup() 207 if (PCI_HDRTYPE_MULTIFN(bhlcr) || (qd != NULL && in mpbios_intr_fixup()
|
| /openbsd/src/sys/arch/i386/pci/ |
| D | pcibios.c | 517 pcireg_t id, bhlcr; in pci_device_foreach() local 536 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in pci_device_foreach() 537 if (PCI_HDRTYPE_MULTIFN(bhlcr) || in pci_device_foreach()
|
| D | pci_intr_fixup.c | 781 pcireg_t bhlcr; in pci_intr_fixup() local 796 bhlcr = pci_conf_read(pc, icutag, PCI_BHLC_REG); in pci_intr_fixup() 797 if (PCI_HDRTYPE_MULTIFN(bhlcr) || (qd != NULL && in pci_intr_fixup()
|
| /openbsd/src/sys/arch/hppa/stand/libsa/ |
| D | cmd_hppa.c | 813 uint32_t id, bhlcr, class; in pci_bus_walk() local 827 bhlcr = (*conf_read)(memmap->hpa, dev, 0, PCI_BHLC_REG); in pci_bus_walk() 828 nfuncs = PCI_HDRTYPE_MULTIFN(bhlcr) ? 8 : 1; in pci_bus_walk()
|