| /freebsd-14.2/sys/dev/bhnd/bhndb/ |
| H A D | bhndb_pci_hwdata.c | 99 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 132 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 147 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 298 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 306 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 327 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 343 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 380 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 388 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } 403 .res = { SYS_RES_MEMORY, PCIR_BAR(0) } [all …]
|
| /freebsd-14.2/sys/dev/mpt/ |
| H A D | mpt_pci.c | 416 val = pci_read_config(dev, PCIR_BAR(0), 4); in mpt_pci_attach() 432 mpt_io_bar = PCIR_BAR(mpt_io_bar); in mpt_pci_attach() 445 mpt_mem_bar = PCIR_BAR(mpt_mem_bar); in mpt_pci_attach() 734 mpt->pci_cfg.IO_BAR = pci_read_config(mpt->dev, PCIR_BAR(0), 4); 735 mpt->pci_cfg.Mem0_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(1), 4); 761 MPT_CHECK(IO_BAR, PCIR_BAR(0), 4); 762 MPT_CHECK(Mem0_BAR[0], PCIR_BAR(1), 4); 763 MPT_CHECK(Mem0_BAR[1], PCIR_BAR(2), 4); 764 MPT_CHECK(Mem1_BAR[0], PCIR_BAR(3), 4); 765 MPT_CHECK(Mem1_BAR[1], PCIR_BAR(4), 4); [all …]
|
| /freebsd-14.2/sys/dev/oce/ |
| H A D | oce_hw.c | 162 PCIR_BAR(pci_cfg_barnum), sc->devcfg_res); in oce_hw_pci_free() 172 PCIR_BAR(OCE_PCI_CSR_BAR), sc->csr_res); in oce_hw_pci_free() 182 PCIR_BAR(OCE_PCI_DB_BAR), sc->db_res); in oce_hw_pci_free() 252 rr = PCIR_BAR(pci_cfg_barnum); in oce_hw_pci_alloc() 295 rr = PCIR_BAR(OCE_PCI_CSR_BAR); in oce_hw_pci_alloc() 305 rr = PCIR_BAR(OCE_PCI_DB_BAR); in oce_hw_pci_alloc()
|
| /freebsd-14.2/sys/dev/ata/ |
| H A D | ata-pci.c | 90 if (ctlr->legacy || pci_read_config(dev, PCIR_BAR(2), 4) & IOMASK) in ata_pci_attach() 233 myrid = PCIR_BAR(0) + (unit << 3); in ata_pci_alloc_resource() 245 myrid = PCIR_BAR(1) + (unit << 3); in ata_pci_alloc_resource() 288 PCIR_BAR(0) + (unit << 3), r); in ata_pci_release_resource() 292 PCIR_BAR(1) + (unit << 3), r); in ata_pci_release_resource() 777 (!pci_read_config(dev, PCIR_BAR(0), 4) && in ata_legacy() 778 !pci_read_config(dev, PCIR_BAR(1), 4) && in ata_legacy() 779 !pci_read_config(dev, PCIR_BAR(2), 4) && in ata_legacy() 780 !pci_read_config(dev, PCIR_BAR(3), 4) && in ata_legacy() 781 !pci_read_config(dev, PCIR_BAR(5), 4))); in ata_legacy()
|
| /freebsd-14.2/sys/dev/pst/ |
| H A D | pst-pci.c | 77 rid = PCIR_BAR(0); in iop_pci_attach() 112 bus_release_resource(dev, SYS_RES_MEMORY, PCIR_BAR(0), sc->r_mem); in iop_pci_detach()
|
| /freebsd-14.2/sys/dev/ipmi/ |
| H A D | ipmi_pci.c | 129 sc->ipmi_io_rid = PCIR_BAR(0); in ipmi_pci_attach() 226 sc->ipmi_io_rid = PCIR_BAR(0); in ipmi2_pci_attach() 227 if (PCI_BAR_IO(pci_read_config(dev, PCIR_BAR(0), 4))) in ipmi2_pci_attach()
|
| /freebsd-14.2/sys/dev/liquidio/ |
| H A D | lio_main.h | 74 PCIR_BAR(baridx * 2), in lio_unmap_pci_barx() 88 int rid = PCIR_BAR(baridx * 2); in lio_map_pci_barx()
|
| /freebsd-14.2/sys/dev/sound/pci/ |
| H A D | solo.c | 828 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(0), sc->io); in ess_release_resources() 833 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(1), sc->sb); in ess_release_resources() 838 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(2), sc->vc); in ess_release_resources() 843 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(3), sc->mpu); in ess_release_resources() 848 bus_release_resource(dev, SYS_RES_IOPORT, PCIR_BAR(4), sc->gp); in ess_release_resources() 870 rid = PCIR_BAR(0); in ess_alloc_resources() 873 rid = PCIR_BAR(1); in ess_alloc_resources() 876 rid = PCIR_BAR(2); in ess_alloc_resources() 879 rid = PCIR_BAR(3); in ess_alloc_resources() 882 rid = PCIR_BAR(4); in ess_alloc_resources()
|
| H A D | csa.c | 260 resp->io_rid = PCIR_BAR(0); in csa_attach() 265 resp->mem_rid = PCIR_BAR(1); in csa_attach() 414 case PCIR_BAR(0): in csa_alloc_resource() 417 case PCIR_BAR(1): in csa_alloc_resource()
|
| /freebsd-14.2/sys/dev/ips/ |
| H A D | ips_pci.c | 94 sc->rid = PCIR_BAR(1); in ips_pci_attach() 96 sc->rid = PCIR_BAR(0); in ips_pci_attach() 102 sc->rid = PCIR_BAR(0); in ips_pci_attach()
|
| /freebsd-14.2/sys/dev/pms/freebsd/driver/common/ |
| H A D | lxcommon.h | 228 #define PCI_BASE_ADDRESS_0 PCIR_BAR(0) 229 #define PCI_BASE_ADDRESS_1 PCIR_BAR(1) 230 #define PCI_BASE_ADDRESS_2 PCIR_BAR(2) 231 #define PCI_BASE_ADDRESS_3 PCIR_BAR(3) 232 #define PCI_BASE_ADDRESS_4 PCIR_BAR(4)
|
| /freebsd-14.2/sys/dev/ahci/ |
| H A D | ahci_pci.c | 480 *table_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in ahci_pci_read_msix_bars() 483 *pba_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in ahci_pci_read_msix_bars() 533 ctlr->r_rid = PCIR_BAR(0); in ahci_pci_attach() 535 ctlr->r_rid = PCIR_BAR(5); in ahci_pci_attach()
|
| /freebsd-14.2/sys/dev/ntb/ntb_hw/ |
| H A D | ntb_hw_plx.c | 185 PNTX_WRITE(sc, PCIR_BAR(0), val64); in ntb_plx_init() 186 PNTX_WRITE(sc, PCIR_BAR(0) + 4, val64 >> 32); in ntb_plx_init() 190 PNTX_WRITE(sc, PCIR_BAR(0), val); in ntb_plx_init() 335 sc->conf_rid = PCIR_BAR(0); in ntb_plx_attach() 364 mw->mw_rid = PCIR_BAR(mw->mw_bar); in ntb_plx_attach() 377 val = pci_read_config(dev, PCIR_BAR(mw->mw_bar), 4); in ntb_plx_attach() 748 PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64); in ntb_plx_mw_set_trans_internal() 749 PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar) + 4, val64 >> 32); in ntb_plx_mw_set_trans_internal() 757 PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64); in ntb_plx_mw_set_trans_internal()
|
| /freebsd-14.2/sys/dev/aacraid/ |
| H A D | aacraid_pci.c | 204 sc->aac_regs_rid0 = PCIR_BAR(0); in aacraid_pci_attach() 214 sc->aac_regs_rid1 = PCIR_BAR(2); in aacraid_pci_attach()
|
| /freebsd-14.2/sys/dev/ata/chipsets/ |
| H A D | ata-acerlabs.c | 123 rid = PCIR_BAR(i); in ata_ali_chipinit() 130 PCIR_BAR(i), res->bars[i]); in ata_ali_chipinit() 183 PCIR_BAR(i), res->bars[i]); in ata_ali_chipdeinit()
|
| H A D | ata-via.c | 164 ctlr->r_rid2 = PCIR_BAR(5); in ata_via_chipinit() 220 rid = PCIR_BAR(ch->unit); in ata_via_ch_attach() 274 rid = PCIR_BAR(ch->unit); in ata_via_ch_detach()
|
| /freebsd-14.2/sys/dev/hifn/ |
| H A D | hifn7751reg.h | 53 #define HIFN_BAR0 PCIR_BAR(0) /* PUC register map */ 54 #define HIFN_BAR1 PCIR_BAR(1) /* DMA register map */
|
| /freebsd-14.2/sys/dev/ida/ |
| H A D | ida_pci.c | 56 #define IDA_PCI_MEMADDR PCIR_BAR(1) /* Mem I/O Address */ 251 ida->regs_res_id = PCIR_BAR(0); in ida_pci_attach()
|
| /freebsd-14.2/sys/dev/vmware/vmci/ |
| H A D | vmci.c | 309 rid = PCIR_BAR(0); in vmci_map_bars() 322 rid = PCIR_BAR(1); in vmci_map_bars() 358 rid = PCIR_BAR(0); in vmci_unmap_bars() 365 rid = PCIR_BAR(1); in vmci_unmap_bars()
|
| /freebsd-14.2/sys/dev/virtio/pci/ |
| H A D | virtio_pci_legacy.c | 540 if (rid != PCIR_BAR(0)) { in vtpci_legacy_setup_msix() 548 if (rid != table_rid && rid != PCIR_BAR(0)) { in vtpci_legacy_setup_msix() 593 rid = PCIR_BAR(0); in vtpci_legacy_alloc_resources() 614 bus_release_resource(dev, sc->vtpci_res_type, PCIR_BAR(0), in vtpci_legacy_free_resources()
|
| /freebsd-14.2/sys/dev/malo/ |
| H A D | if_malo_pci.c | 115 { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE }, 116 { SYS_RES_MEMORY, PCIR_BAR(1), RF_ACTIVE },
|
| /freebsd-14.2/sys/dev/mfi/ |
| H A D | mfi_pci.c | 220 sc->mfi_regs_rid = PCIR_BAR(0); in mfi_pci_attach() 226 sc->mfi_regs_rid = PCIR_BAR(1); in mfi_pci_attach()
|
| /freebsd-14.2/sys/dev/nvme/ |
| H A D | nvme_pci.c | 156 ctrlr->resource_id = PCIR_BAR(0); in nvme_ctrlr_allocate_bar() 177 ctrlr->bar4_resource_id = PCIR_BAR(4); in nvme_ctrlr_allocate_bar()
|
| /freebsd-14.2/sys/dev/aac/ |
| H A D | aac_pci.c | 396 rid = PCIR_BAR(0); in aac_pci_attach() 406 rid = PCIR_BAR(1); in aac_pci_attach()
|
| /freebsd-14.2/sys/dev/proto/ |
| H A D | proto_bus_pci.c | 88 rid = PCIR_BAR(bar); in proto_pci_attach()
|