Home
last modified time | relevance | path

Searched refs:bhlcr (Results 1 – 10 of 10) sorted by relevance

/netbsd/sys/dev/pci/
H A Dadv_pci.c170 u_int32_t bhlcr; in adv_pci_attach() local
172 bhlcr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); in adv_pci_attach()
176 bhlcr &= 0xFFFF00FFul; in adv_pci_attach()
178 PCI_BHLC_REG, bhlcr); in adv_pci_attach()
180 && (PCI_LATTIMER(bhlcr) < 0x20)) { in adv_pci_attach()
181 bhlcr &= 0xFFFF00FFul; in adv_pci_attach()
182 bhlcr |= 0x00002000ul; in adv_pci_attach()
184 PCI_BHLC_REG, bhlcr); in adv_pci_attach()
H A Dpuccn.c96 pcireg_t reg, bhlcr, subsys = 0; /* XXX */ in pucprobe_doit() local
116 bhlcr = pci_conf_read(pa.pa_pc, pa.pa_tag, PCI_BHLC_REG); in pucprobe_doit()
117 if (PCI_HDRTYPE_MULTIFN(bhlcr)) { in pucprobe_doit()
H A Dpcireg.h422 #define PCI_BIST(bhlcr) \ argument
423 (((bhlcr) >> PCI_BIST_SHIFT) & PCI_BIST_MASK)
427 #define PCI_HDRTYPE(bhlcr) \ argument
428 (((bhlcr) >> PCI_HDRTYPE_SHIFT) & PCI_HDRTYPE_MASK)
430 #define PCI_HDRTYPE_TYPE(bhlcr) \ argument
431 (PCI_HDRTYPE(bhlcr) & 0x7f)
432 #define PCI_HDRTYPE_MULTIFN(bhlcr) \ argument
433 ((PCI_HDRTYPE(bhlcr) & 0x80) != 0)
437 #define PCI_LATTIMER(bhlcr) \ argument
438 (((bhlcr) >> PCI_LATTIMER_SHIFT) & PCI_LATTIMER_MASK)
[all …]
H A Dpci.c299 pcireg_t id, /* csr, */ pciclass, intr, bhlcr, bar, endbar; in pci_probe_device() local
322 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in pci_probe_device()
323 if (PCI_HDRTYPE_TYPE(bhlcr) > 2) in pci_probe_device()
333 switch (PCI_HDRTYPE_TYPE(bhlcr)) { in pci_probe_device()
410 if (PCI_CACHELINE(bhlcr) == 0) { in pci_probe_device()
718 pcireg_t id, bhlcr; local
776 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG);
777 if (PCI_HDRTYPE_TYPE(bhlcr) > 2)
791 nfunctions = PCI_HDRTYPE_MULTIFN(bhlcr) ? 8 : 1;
H A Dpciconf.c323 pcireg_t id, bhlcr; in probe_bus() local
343 bhlcr = pci_conf_read(pb->pc, tag, PCI_BHLC_REG); in probe_bus()
344 nfunction = PCI_HDRTYPE_MULTIFN(bhlcr) ? 8 : 1; in probe_bus()
/netbsd/sys/arch/sandpoint/stand/altboot/
H A Dpci.c161 unsigned pciid, bhlcr; in _buswalk() local
169 bhlcr = cfgread(bus, device, 0, PCI_BHLC_REG); in _buswalk()
170 nfunctions = (PCI_HDRTYPE_MULTIFN(bhlcr)) ? 8 : 1; in _buswalk()
347 unsigned pciid, bhlcr, class; in _pcilookup() local
364 bhlcr = cfgread(bus, device, 0, PCI_BHLC_REG); in _pcilookup()
365 nfuncs = (PCI_HDRTYPE_MULTIFN(bhlcr)) ? 8 : 1; in _pcilookup()
/netbsd/usr.sbin/pcictl/
H A Dpcictl.c378 pcireg_t id, bhlcr; in scan_pci() local
398 PCI_BHLC_REG, &bhlcr) != 0) in scan_pci()
402 if (PCI_HDRTYPE_MULTIFN(bhlcr)) in scan_pci()
/netbsd/sys/arch/x86/pci/
H A Dpci_ranges.c304 pcireg_t bhlcr, limit, io; in io_range_infer() local
308 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in io_range_infer()
310 hdrtype = PCI_HDRTYPE_TYPE(bhlcr); in io_range_infer()
611 pcireg_t bcr, bhlcr, limit, mem, premem, hiprebase, hiprelimit; in mmio_range_infer() local
615 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in mmio_range_infer()
617 hdrtype = PCI_HDRTYPE_TYPE(bhlcr); in mmio_range_infer()
H A Dpci_machdep.c899 pcireg_t id, bhlcr; in pci_device_foreach_min() local
918 bhlcr = pci_conf_read(pc, tag, PCI_BHLC_REG); in pci_device_foreach_min()
919 if (PCI_HDRTYPE_MULTIFN(bhlcr) || in pci_device_foreach_min()
/netbsd/sys/arch/i386/pci/
H A Dpci_intr_fixup.c822 pcireg_t bhlcr; in pci_intr_fixup() local
837 bhlcr = pci_conf_read(pc, icutag, PCI_BHLC_REG); in pci_intr_fixup()
838 if (PCI_HDRTYPE_MULTIFN(bhlcr) || in pci_intr_fixup()