| /freebsd-12.1/sys/arm/annapurna/alpine/ |
| H A D | alpine_pci.c | 124 uint8_t hdrtype; in al_pcib_fixup() local 132 hdrtype = PCIB_READ_CONFIG(dev, bus, slot, func, in al_pcib_fixup() 135 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in al_pcib_fixup() 138 if (func == 0 && (hdrtype & PCIM_MFDEV) != 0) in al_pcib_fixup()
|
| /freebsd-12.1/sys/powerpc/ofw/ |
| H A D | ofw_pcibus.c | 241 uint8_t hdrtype; in ofw_pcibus_enum_bus() local 250 hdrtype = PCIB_READ_CONFIG(pcib, busno, s, f, PCIR_HDRTYPE, 1); in ofw_pcibus_enum_bus() 251 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in ofw_pcibus_enum_bus() 253 if (hdrtype & PCIM_MFDEV) in ofw_pcibus_enum_bus()
|
| /freebsd-12.1/sys/mips/cavium/ |
| H A D | octopci.c | 558 uint8_t hdrtype; in octopci_init_device() local 561 hdrtype = octopci_read_config(dev, b, s, f, PCIR_HDRTYPE, 1); in octopci_init_device() 573 switch (hdrtype & PCIM_HDRTYPE) { in octopci_init_device() 585 b, s, f, hdrtype); in octopci_init_device() 714 uint8_t hdrtype; in octopci_init_bus() local 721 hdrtype = octopci_read_config(dev, b, s, f, PCIR_HDRTYPE, 1); in octopci_init_bus() 723 if (hdrtype == 0xff) { in octopci_init_bus() 731 if (f == 0 && (hdrtype & PCIM_MFDEV) == 0) in octopci_init_bus()
|
| /freebsd-12.1/sys/x86/pci/ |
| H A D | pci_bus.c | 381 uint8_t hdrtype; in legacy_pcib_identify() local 405 hdrtype = legacy_pcib_read_config(0, bus, slot, func, in legacy_pcib_identify() 413 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in legacy_pcib_identify() 415 if ((hdrtype & PCIM_MFDEV) && in legacy_pcib_identify() 416 (!found_orion || hdrtype != 0xff)) in legacy_pcib_identify()
|
| /freebsd-12.1/sys/mips/nlm/ |
| H A D | xlp_pci.c | 89 uint8_t hdrtype; in xlp_pci_attach() local 101 hdrtype = PCIB_READ_CONFIG(pcib, busno, s, f, PCIR_HDRTYPE, 1); in xlp_pci_attach() 102 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in xlp_pci_attach() 104 if (hdrtype & PCIM_MFDEV) in xlp_pci_attach()
|
| /freebsd-12.1/sys/powerpc/mpc85xx/ |
| H A D | pci_mpc85xx.c | 565 uint8_t command, hdrtype, subclass; in fsl_pcib_init() local 571 hdrtype = fsl_pcib_read_config(sc->sc_dev, bus, slot, in fsl_pcib_init() 574 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in fsl_pcib_init() 577 if (func == 0 && (hdrtype & PCIM_MFDEV)) in fsl_pcib_init() 606 if (hdrtype != PCIM_HDRTYPE_BRIDGE) in fsl_pcib_init()
|
| /freebsd-12.1/sys/arm/mv/ |
| H A D | mv_pci.c | 812 uint8_t hdrtype, command, class, subclass; in mv_pcib_init() local 817 hdrtype = mv_pcib_read_config(sc->sc_dev, bus, slot, in mv_pcib_init() 820 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in mv_pcib_init() 823 if (func == 0 && (hdrtype & PCIM_MFDEV)) in mv_pcib_init() 833 hdrtype); in mv_pcib_init() 865 int func, int hdrtype) in mv_pcib_init_all_bars() argument 869 maxbar = (hdrtype & PCIM_HDRTYPE) ? 0 : 6; in mv_pcib_init_all_bars()
|
| /freebsd-12.1/sys/dev/pci/ |
| H A D | pci.c | 606 cfg->hdrtype = PCIM_HDRTYPE_BRIDGE; in pci_fixancient() 615 switch (cfg->hdrtype & PCIM_HDRTYPE) { in pci_hdrtypedata() 691 cfg->hdrtype = REG(PCIR_HDRTYPE, 1); in pci_fill_devinfo() 698 cfg->hdrtype &= ~PCIM_MFDEV; in pci_fill_devinfo() 820 switch (cfg->hdrtype & PCIM_HDRTYPE) { in pci_read_cap() 4064 uint8_t hdrtype; in pci_add_children() local 4088 hdrtype = REG(PCIR_HDRTYPE, 1); in pci_add_children() 4091 if (hdrtype & PCIM_MFDEV) in pci_add_children() 4107 uint8_t hdrtype; in pci_rescan_method() local 4132 hdrtype = REG(PCIR_HDRTYPE, 1); in pci_rescan_method() [all …]
|
| H A D | pcivar.h | 197 uint8_t hdrtype; /* chip config header type */ member
|
| /freebsd-12.1/sys/dev/hyperv/pcib/ |
| H A D | vmbus_pcib.c | 614 uint8_t hdrtype; in pci_rescan() local 640 hdrtype = REG(PCIR_HDRTYPE, 1); in pci_rescan() 641 if ((hdrtype & PCIM_HDRTYPE) > PCI_MAXHDRTYPE) in pci_rescan() 643 if (hdrtype & PCIM_MFDEV) in pci_rescan()
|
| /freebsd-12.1/sys/amd64/vmm/io/ |
| H A D | ppt.c | 140 if ((dinfo->cfg.hdrtype & PCIM_HDRTYPE) != PCIM_HDRTYPE_NORMAL) in ppt_probe()
|
| /freebsd-12.1/cddl/contrib/opensolaris/lib/libzfs/common/ |
| H A D | libzfs_sendrecv.c | 3707 int hdrtype; in zfs_receive_impl() local 3767 hdrtype = DMU_GET_STREAM_HDRTYPE(drrb->drr_versioninfo); in zfs_receive_impl() 3770 (hdrtype != DMU_SUBSTREAM && hdrtype != DMU_COMPOUNDSTREAM)) { in zfs_receive_impl()
|
| /freebsd-12.1/sys/dev/cxgb/ |
| H A D | cxgb_main.c | 1163 switch (cfg->hdrtype & PCIM_HDRTYPE) { in t3_os_find_pci_capability()
|