/freebsd/sys/dev/acpica/ |
H A D | acpi_pcib.c | 48 ACPI_SERIAL_DECL(pcib, "ACPI PCI bus methods"); 92 device_t child, pcib; in prt_attach_devices() local 107 pcib = (device_t)arg; in prt_attach_devices() 117 device_printf(pcib, "failed to force attach of %s\n", in prt_attach_devices() 123 acpi_pci_link_add_reference(child, entry->SourceIndex, pcib, in prt_attach_devices() 179 acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin, in acpi_pcib_route_interrupt() argument 195 ACPI_SERIAL_BEGIN(pcib); in acpi_pcib_route_interrupt() 203 device_printf(pcib, "no PRT entry for %d.%d.INT%c\n", pci_get_bus(dev), in acpi_pcib_route_interrupt() 210 device_printf(pcib, "matched entry for %d.%d.INT%c", in acpi_pcib_route_interrupt() 226 device_printf(pcib, "slot %d INT%c hardwired to IRQ %d\n", in acpi_pcib_route_interrupt() [all …]
|
H A D | acpi_pcib_pci.c | 70 static int acpi_pcib_pci_route_interrupt(device_t pcib, 90 DEFINE_CLASS_1(pcib, acpi_pcib_pci_driver, acpi_pcib_pci_methods, 156 acpi_pcib_pci_route_interrupt(device_t pcib, device_t dev, int pin) in acpi_pcib_pci_route_interrupt() argument 160 sc = device_get_softc(pcib); in acpi_pcib_pci_route_interrupt() 167 return (pcib_route_interrupt(pcib, dev, pin)); in acpi_pcib_pci_route_interrupt() 169 return (acpi_pcib_route_interrupt(pcib, dev, pin, &sc->ap_prt)); in acpi_pcib_pci_route_interrupt()
|
H A D | acpi_pcibvar.h | 33 void acpi_pci_link_add_reference(device_t dev, int index, device_t pcib, 37 int acpi_pcib_get_cpus(device_t pcib, device_t dev, enum cpu_sets op, 39 int acpi_pcib_route_interrupt(device_t pcib, device_t dev, int pin, 41 int acpi_pcib_power_for_sleep(device_t pcib, device_t dev,
|
H A D | acpi_pcib_acpi.c | 84 static int acpi_pcib_acpi_route_interrupt(device_t pcib, 86 static int acpi_pcib_alloc_msi(device_t pcib, device_t dev, 88 static int acpi_pcib_map_msi(device_t pcib, device_t dev, 90 static int acpi_pcib_alloc_msix(device_t pcib, device_t dev, 105 static int acpi_pcib_request_feature(device_t pcib, device_t dev, 146 DEFINE_CLASS_0(pcib, acpi_pcib_acpi_driver, acpi_pcib_acpi_methods, 611 acpi_pcib_acpi_route_interrupt(device_t pcib, device_t dev, int pin) in acpi_pcib_acpi_route_interrupt() argument 613 struct acpi_hpcib_softc *sc = device_get_softc(pcib); in acpi_pcib_acpi_route_interrupt() 615 return (acpi_pcib_route_interrupt(pcib, dev, pin, &sc->ap_prt)); in acpi_pcib_acpi_route_interrupt() 619 acpi_pcib_alloc_msi(device_t pcib, device_t dev, int count, int maxcount, in acpi_pcib_alloc_msi() argument [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pcib_private.h | 48 int pcib_host_res_init(device_t pcib, 50 int pcib_host_res_free(device_t pcib, 167 int pcib_route_interrupt(device_t pcib, device_t dev, int pin); 168 int pcib_alloc_msi(device_t pcib, device_t dev, int count, int maxcount, int *irqs); 169 int pcib_release_msi(device_t pcib, device_t dev, int count, int *irqs); 170 int pcib_alloc_msix(device_t pcib, device_t dev, int *irq); 171 int pcib_release_msix(device_t pcib, device_t dev, int irq); 172 int pcib_map_msi(device_t pcib, device_t dev, int irq, uint64_t *addr, uint32_t *data); 173 int pcib_get_id(device_t pcib, device_t dev, enum pci_id_type type, 175 void pcib_decode_rid(device_t pcib, uint16_t rid, int *bus, [all …]
|
H A D | pcib_if.m | 33 INTERFACE pcib; 37 null_route_interrupt(device_t pcib, device_t dev, int pin) 43 pcib_null_ari_enabled(device_t pcib) 107 device_t pcib; 120 device_t pcib; 132 device_t pcib; 142 device_t pcib; 151 device_t pcib; 161 device_t pcib; 173 device_t pcib; [all …]
|
H A D | pci_pci.c | 73 static int pcib_power_for_sleep(device_t pcib, device_t dev, 75 static int pcib_ari_get_id(device_t pcib, device_t dev, 83 static int pcib_try_enable_ari(device_t pcib, device_t dev); 84 static int pcib_ari_enabled(device_t pcib); 85 static void pcib_ari_decode_rid(device_t pcib, uint16_t rid, 92 static int pcib_request_feature_default(device_t pcib, device_t dev, 119 /* pcib interface */ 140 DEFINE_CLASS_0(pcib, pcib_driver, pcib_methods, sizeof(struct pcib_softc)); 141 EARLY_DRIVER_MODULE(pcib, pci, pcib_driver, NULL, NULL, BUS_PASS_BUS); 2311 pcib_xlate_ari(device_t pcib, in argument 2391 pcib_ari_decode_rid(device_t pcib,uint16_t rid,int * bus,int * slot,int * func) pcib_ari_decode_rid() argument 2453 pcib_route_interrupt(device_t pcib,device_t dev,int pin) pcib_route_interrupt() argument 2487 pcib_alloc_msi(device_t pcib,device_t dev,int count,int maxcount,int * irqs) pcib_alloc_msi() argument 2501 pcib_release_msi(device_t pcib,device_t dev,int count,int * irqs) pcib_release_msi() argument 2511 pcib_alloc_msix(device_t pcib,device_t dev,int * irq) pcib_alloc_msix() argument 2524 pcib_release_msix(device_t pcib,device_t dev,int irq) pcib_release_msix() argument 2534 pcib_map_msi(device_t pcib,device_t dev,int irq,uint64_t * addr,uint32_t * data) pcib_map_msi() argument 2551 pcib_power_for_sleep(device_t pcib,device_t dev,int * pstate) pcib_power_for_sleep() argument 2560 pcib_ari_enabled(device_t pcib) pcib_ari_enabled() argument 2570 pcib_ari_get_id(device_t pcib,device_t dev,enum pci_id_type type,uintptr_t * id) pcib_ari_get_id() argument 2605 pcib_try_enable_ari(device_t pcib,device_t dev) pcib_try_enable_ari() argument 2658 pcib_request_feature_allow(device_t pcib,device_t dev,enum pci_feature feature) pcib_request_feature_allow() argument 2695 pcib_request_feature_default(device_t pcib,device_t dev,enum pci_feature feature) pcib_request_feature_default() argument [all...] |
H A D | pcib_support.c | 56 pcib_get_id(device_t pcib, device_t dev, enum pci_id_type type, uintptr_t *id) in pcib_get_id() argument 61 return (PCI_GET_ID(device_get_parent(pcib), dev, type, id)); in pcib_get_id() 75 pcib_decode_rid(device_t pcib, uint16_t rid, int *bus, int *slot, in pcib_decode_rid() argument
|
H A D | vga_pci.c | 83 device_t pcib; in vga_pci_is_boot_display() local 113 pcib = device_get_parent(device_get_parent(dev)); in vga_pci_is_boot_display() 114 if (device_get_devclass(device_get_parent(pcib)) == in vga_pci_is_boot_display() 120 config = pci_read_config(pcib, PCIR_BRIDGECTL_1, 2); in vga_pci_is_boot_display() 166 device_t pcib; in vga_pci_map_bios() local 188 pcib = device_get_parent(device_get_parent(dev)); in vga_pci_map_bios() 189 if (device_get_devclass(device_get_parent(pcib)) == in vga_pci_map_bios() 195 config = pci_read_config(pcib, PCIR_BRIDGECTL_1, 2); in vga_pci_map_bios() 198 pci_write_config(pcib, PCIR_BRIDGECTL_1, config, 2); in vga_pci_map_bios()
|
H A D | pci.c | 121 static void pci_hdrtypedata(device_t pcib, int b, int s, int f, 123 static void pci_read_cap(device_t pcib, pcicfgregs *cfg); 124 static int pci_read_vpd_reg(device_t pcib, pcicfgregs *cfg, 127 static int pci_write_vpd_reg(device_t pcib, pcicfgregs *cfg, 130 static void pci_read_vpd(device_t pcib, pcicfgregs *cfg); 137 static struct pci_devinfo * pci_fill_devinfo(device_t pcib, device_t bus, int d, 227 EARLY_DRIVER_MODULE(pci, pcib, pci_driver, pci_modevent, NULL, BUS_PASS_BUS); 644 pci_hdrtypedata(device_t pcib, int b, int s, int f, pcicfgregs *cfg) in pci_hdrtypedata() argument 646 #define REG(n, w) PCIB_READ_CONFIG(pcib, b, s, f, n, w) in pci_hdrtypedata() 679 pci_read_device(device_t pcib, device_t bus, int d, int b, int s, int f) in pci_read_device() argument [all …]
|
H A D | pci_subr.c | 163 pcib_host_res_init(device_t pcib, struct pcib_host_resources *hr) in pcib_host_res_init() argument 166 hr->hr_pcib = pcib; in pcib_host_res_init() 172 pcib_host_res_free(device_t pcib, struct pcib_host_resources *hr) in pcib_host_res_free() argument
|
/freebsd/sys/powerpc/ofw/ |
H A D | ofw_pcibus.c | 102 EARLY_DRIVER_MODULE(ofw_pcibus, pcib, ofw_pcibus_driver, 0, 0, BUS_PASS_BUS); 163 device_t pcib; in ofw_pcibus_enum_devtree() local 170 pcib = device_get_parent(dev); in ofw_pcibus_enum_devtree() 193 PCIB_WRITE_CONFIG(pcib, busno, slot, func, PCIR_INTLINE, in ofw_pcibus_enum_devtree() 201 dinfo = (struct ofw_pcibus_devinfo *)pci_read_device(pcib, dev, in ofw_pcibus_enum_devtree() 236 device_t pcib; in ofw_pcibus_enum_bus() local 242 pcib = device_get_parent(dev); in ofw_pcibus_enum_bus() 244 maxslots = PCIB_MAXSLOTS(pcib); in ofw_pcibus_enum_bus() 249 hdrtype = PCIB_READ_CONFIG(pcib, busno, s, f, PCIR_HDRTYPE, 1); in ofw_pcibus_enum_bus() 260 pcib, dev, domain, busno, s, f); in ofw_pcibus_enum_bus() [all …]
|
/freebsd/sys/x86/pci/ |
H A D | pci_bus.c | 81 legacy_pcib_route_interrupt(device_t pcib, device_t dev, int pin) in legacy_pcib_route_interrupt() argument 96 legacy_pcib_alloc_msi(device_t pcib, device_t dev, int count, int maxcount, in legacy_pcib_alloc_msi() argument 101 bus = device_get_parent(pcib); in legacy_pcib_alloc_msi() 107 legacy_pcib_alloc_msix(device_t pcib, device_t dev, int *irq) in legacy_pcib_alloc_msix() argument 111 bus = device_get_parent(pcib); in legacy_pcib_alloc_msix() 116 legacy_pcib_map_msi(device_t pcib, device_t dev, int irq, uint64_t *addr, in legacy_pcib_map_msi() argument 122 bus = device_get_parent(pcib); in legacy_pcib_map_msi() 127 slot = legacy_get_pcislot(pcib); in legacy_pcib_map_msi() 128 func = legacy_get_pcifunc(pcib); in legacy_pcib_map_msi() 677 DEFINE_CLASS_0(pcib, legacy_pcib_driver, legacy_pcib_methods, 1); [all …]
|
H A D | qpi.c | 97 * add a pcib device and return 0. Otherwise, return an error code. 135 child = BUS_ADD_CHILD(dev, 0, "pcib", DEVICE_UNIT_ANY); in qpi_probe_pcib() 262 qpi_pcib_map_msi(device_t pcib, device_t dev, int irq, uint64_t *addr, in qpi_pcib_map_msi() argument 267 bus = device_get_parent(pcib); in qpi_pcib_map_msi() 289 /* pcib interface */ 302 DEFINE_CLASS_0(pcib, qpi_pcib_driver, qpi_pcib_methods, 0); 303 DRIVER_MODULE(pcib, qpi, qpi_pcib_driver, 0, 0);
|
/freebsd/sys/dev/hyperv/pcib/ |
H A D | vmbus_pcib.c | 409 device_t pcib; member 555 device_printf(hbus->pcib, in wait_for_response() 1074 device_printf(hbus->pcib, in hv_pci_protocol_negotiation() 1082 device_printf(hbus->pcib, in hv_pci_protocol_negotiation() 1090 device_printf(hbus->pcib, in hv_pci_protocol_negotiation() 1099 device_printf(hbus->pcib, in hv_pci_protocol_negotiation() 1156 device_printf(hbus->pcib, "vmbus_pcib failed to enable D0\n"); in hv_pci_enter_d0() 1227 device_printf(hbus->pcib, in hv_send_resources_allocated() 1497 hbus->pcib = dev; in vmbus_pcib_attach() 1764 vmbus_pcib_get_cpus(device_t pcib, device_ argument 1808 vmbus_pcib_route_intr(device_t pcib,device_t dev,int pin) vmbus_pcib_route_intr() argument 1815 vmbus_pcib_alloc_msi(device_t pcib,device_t dev,int count,int maxcount,int * irqs) vmbus_pcib_alloc_msi() argument 1829 vmbus_pcib_release_msi(device_t pcib,device_t dev,int count,int * irqs) vmbus_pcib_release_msi() argument 1840 vmbus_pcib_alloc_msix(device_t pcib,device_t dev,int * irq) vmbus_pcib_alloc_msix() argument 1856 vmbus_pcib_release_msix(device_t pcib,device_t dev,int irq) vmbus_pcib_release_msix() argument 1876 vmbus_pcib_map_msi(device_t pcib,device_t child,int irq,uint64_t * addr,uint32_t * data) vmbus_pcib_map_msi() argument [all...] |
/freebsd/sys/dev/vnic/ |
H A D | thunder_bgx_fdt.c | 289 device_t pcib, bus; in bgx_find_root_pcib() local 304 pcib = device_get_parent(bus); in bgx_find_root_pcib() 305 KASSERT(pcib != NULL, ("%s: null bridge of %s", __func__, in bgx_find_root_pcib() 312 if (device_get_devclass(device_get_parent(pcib)) != pci_class) in bgx_find_root_pcib() 313 return (pcib); in bgx_find_root_pcib() 315 dev = pcib; in bgx_find_root_pcib()
|
/freebsd/sys/x86/include/ |
H A D | legacyvar.h | 69 int legacy_pcib_alloc_msi(device_t pcib, device_t dev, int count, 71 int legacy_pcib_alloc_msix(device_t pcib, device_t dev, int *irq); 72 int legacy_pcib_map_msi(device_t pcib, device_t dev, int irq,
|
H A D | mptable.h | 196 void mptable_pci_host_res_init(device_t pcib); 198 int mptable_pci_route_interrupt(device_t pcib, device_t dev, int pin);
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_subr.c | 89 int pci, pcib, res; in ofw_reg_to_paddr() local 132 get_addr_props(parent, &nbridge, NULL, &pcib); in ofw_reg_to_paddr() 139 if (pcib && pci_hi == OFW_PADDR_NOT_PCI) { in ofw_reg_to_paddr() 155 rspc = (pcib) in ofw_reg_to_paddr()
|
/freebsd/sys/modules/hyperv/pcib/ |
H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/hyperv/pcib \ 8 CFLAGS+= -I${SRCTOP}/sys/dev/hyperv/pcib
|
/freebsd/sys/powerpc/powermac/ |
H A D | cpcht.c | 138 DEFINE_CLASS_1(pcib, cpcht_driver, cpcht_methods, sizeof(struct cpcht_softc), 482 device_t pcib; in cpcht_map_msi() local 486 for (pcib = child; pcib != dev; pcib = in cpcht_map_msi() 487 device_get_parent(device_get_parent(pcib))) { in cpcht_map_msi() 488 dinfo = device_get_ivars(pcib); in cpcht_map_msi()
|
/freebsd/sys/x86/x86/ |
H A D | mptable.c | 1140 mptable_pci_route_interrupt(device_t pcib, device_t dev, int pin) in mptable_pci_route_interrupt() argument 1161 device_printf(pcib, "unable to route slot %d INT%c\n", slot, in mptable_pci_route_interrupt() 1166 device_printf(pcib, "slot %d INT%c routed to irq %d\n", slot, in mptable_pci_route_interrupt() 1286 mptable_pci_host_res_init(device_t pcib) in mptable_pci_host_res_init() argument 1291 args.bus = legacy_get_pcibus(pcib) + pci0; in mptable_pci_host_res_init() 1292 args.dev = pcib; in mptable_pci_host_res_init() 1293 args.sc = device_get_softc(pcib); in mptable_pci_host_res_init() 1294 if (pcib_host_res_init(pcib, &args.sc->sc_host_res) != 0) in mptable_pci_host_res_init()
|
H A D | nexus.c | 588 nexus_alloc_msix(device_t pcib, device_t dev, int *irq) in nexus_alloc_msix() argument 595 nexus_release_msix(device_t pcib, device_t dev, int irq) in nexus_release_msix() argument 602 nexus_alloc_msi(device_t pcib, device_t dev, int count, int maxcount, int *irqs) in nexus_alloc_msi() argument 609 nexus_release_msi(device_t pcib, device_t dev, int count, int *irqs) in nexus_release_msi() argument 616 nexus_map_msi(device_t pcib, device_t dev, int irq, uint64_t *addr, uint32_t *data) in nexus_map_msi() argument
|
H A D | mptable_pci.c | 167 /* pcib interface */ 181 DEFINE_CLASS_0(pcib, mptable_hostb_driver, mptable_hostb_methods, 208 /* pcib interface */ 213 DEFINE_CLASS_1(pcib, mptable_pcib_driver, mptable_pcib_pci_methods,
|
/freebsd/sys/dev/iommu/ |
H A D | busdma_iommu.c | 121 device_t l, pci, pcib, pcip, pcibp, requester; in iommu_get_requester() local 151 pcib = device_get_parent(pci); in iommu_get_requester() 152 KASSERT(pcib != NULL, ("iommu_get_requester(%s): NULL bridge " in iommu_get_requester() 161 pcip = device_get_parent(pcib); in iommu_get_requester() 173 l = pcib; in iommu_get_requester() 180 bridge_is_pcie = pci_find_cap(pcib, PCIY_EXPRESS, in iommu_get_requester() 182 requester = pcib; in iommu_get_requester() 227 *rid = pci_get_rid(pcib); in iommu_get_requester() 228 l = pcib; in iommu_get_requester()
|