Home
last modified time | relevance | path

Searched refs:PCIR_BAR (Results 1 – 25 of 182) sorted by relevance

12345678

/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_pci_hwdata.c86 { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
99 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
119 { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
132 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
147 .res = { SYS_RES_MEMORY, PCIR_BAR(0) }
285 { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
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) }
[all …]
/freebsd/sys/dev/mpt/
H A Dmpt_pci.c416 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);
736 mpt->pci_cfg.Mem0_BAR[1] = pci_read_config(mpt->dev, PCIR_BAR(2), 4);
737 mpt->pci_cfg.Mem1_BAR[0] = pci_read_config(mpt->dev, PCIR_BAR(3), 4);
738 mpt->pci_cfg.Mem1_BAR[1] = pci_read_config(mpt->dev, PCIR_BAR(4), 4);
761 MPT_CHECK(IO_BAR, PCIR_BAR(0), 4);
762 MPT_CHECK(Mem0_BAR[0], PCIR_BAR(1), 4);
[all …]
/freebsd/sys/dev/oce/
H A Doce_hw.c162 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/sys/dev/ipmi/
H A Dipmi_pci.c128 sc->ipmi_io_rid = PCIR_BAR(0); in ipmi_pci_attach()
225 sc->ipmi_io_rid = PCIR_BAR(0); in ipmi2_pci_attach()
226 if (PCI_BAR_IO(pci_read_config(dev, PCIR_BAR(0), 4))) in ipmi2_pci_attach()
/freebsd/sys/dev/pst/
H A Dpst-pci.c76 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/sys/dev/sound/pci/
H A Dsolo.c828 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 Dcsa.c238 resp->io_rid = PCIR_BAR(0); in csa_attach()
243 resp->mem_rid = PCIR_BAR(1); in csa_attach()
373 case PCIR_BAR(0): in csa_alloc_resource()
376 case PCIR_BAR(1): in csa_alloc_resource()
/freebsd/sys/dev/liquidio/
H A Dlio_main.h74 PCIR_BAR(baridx * 2), in lio_unmap_pci_barx()
88 int rid = PCIR_BAR(baridx * 2); in lio_map_pci_barx()
/freebsd/sys/dev/ips/
H A Dips_pci.c94 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/sys/dev/ata/
H A Data-pci.c89 if (ctlr->legacy || pci_read_config(dev, PCIR_BAR(2), 4) & IOMASK) in ata_pci_attach()
235 myrid = PCIR_BAR(0) + (unit << 3); in ata_pci_alloc_resource()
247 myrid = PCIR_BAR(1) + (unit << 3); in ata_pci_alloc_resource()
775 (!pci_read_config(dev, PCIR_BAR(0), 4) && in ata_legacy()
776 !pci_read_config(dev, PCIR_BAR(1), 4) && in ata_legacy()
777 !pci_read_config(dev, PCIR_BAR(2), 4) && in ata_legacy()
778 !pci_read_config(dev, PCIR_BAR(3), 4) && in ata_legacy()
779 !pci_read_config(dev, PCIR_BAR(5), 4))); in ata_legacy()
/freebsd/sys/dev/pms/freebsd/driver/common/
H A Dlxcommon.h228 #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/sys/dev/ntb/ntb_hw/
H A Dntb_hw_plx.c184 PNTX_WRITE(sc, PCIR_BAR(0), val64); in ntb_plx_init()
185 PNTX_WRITE(sc, PCIR_BAR(0) + 4, val64 >> 32); in ntb_plx_init()
189 PNTX_WRITE(sc, PCIR_BAR(0), val); in ntb_plx_init()
334 sc->conf_rid = PCIR_BAR(0); in ntb_plx_attach()
363 mw->mw_rid = PCIR_BAR(mw->mw_bar); in ntb_plx_attach()
376 val = pci_read_config(dev, PCIR_BAR(mw->mw_bar), 4); in ntb_plx_attach()
747 PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64); in ntb_plx_mw_set_trans_internal()
748 PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar) + 4, val64 >> 32); in ntb_plx_mw_set_trans_internal()
756 PNTX_WRITE(sc, PCIR_BAR(mw->mw_bar), val64); in ntb_plx_mw_set_trans_internal()
/freebsd/sys/dev/ahci/
H A Dahci_pci.c482 *table_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in ahci_pci_read_msix_bars()
485 *pba_bar = PCIR_BAR(val & PCIM_MSIX_BIR_MASK); in ahci_pci_read_msix_bars()
535 ctlr->r_rid = PCIR_BAR(0); in ahci_pci_attach()
537 ctlr->r_rid = PCIR_BAR(5); in ahci_pci_attach()
/freebsd/sys/dev/aacraid/
H A Daacraid_pci.c204 sc->aac_regs_rid0 = PCIR_BAR(0); in aacraid_pci_attach()
214 sc->aac_regs_rid1 = PCIR_BAR(2); in aacraid_pci_attach()
/freebsd/sys/dev/ata/chipsets/
H A Data-acerlabs.c122 rid = PCIR_BAR(i); in ata_ali_chipinit()
129 PCIR_BAR(i), res->bars[i]); in ata_ali_chipinit()
182 PCIR_BAR(i), res->bars[i]); in ata_ali_chipdeinit()
H A Data-via.c163 ctlr->r_rid2 = PCIR_BAR(5); in ata_via_chipinit()
219 rid = PCIR_BAR(ch->unit); in ata_via_ch_attach()
273 rid = PCIR_BAR(ch->unit); in ata_via_ch_detach()
/freebsd/sys/dev/ida/
H A Dida_pci.c55 #define IDA_PCI_MEMADDR PCIR_BAR(1) /* Mem I/O Address */
250 ida->regs_res_id = PCIR_BAR(0); in ida_pci_attach()
/freebsd/sys/dev/hifn/
H A Dhifn7751reg.h53 #define HIFN_BAR0 PCIR_BAR(0) /* PUC register map */
54 #define HIFN_BAR1 PCIR_BAR(1) /* DMA register map */
/freebsd/sys/dev/vmware/vmci/
H A Dvmci.c308 rid = PCIR_BAR(0); in vmci_map_bars()
321 rid = PCIR_BAR(1); in vmci_map_bars()
357 rid = PCIR_BAR(0); in vmci_unmap_bars()
364 rid = PCIR_BAR(1); in vmci_unmap_bars()
/freebsd/sys/dev/mfi/
H A Dmfi_pci.c220 sc->mfi_regs_rid = PCIR_BAR(0); in mfi_pci_attach()
226 sc->mfi_regs_rid = PCIR_BAR(1); in mfi_pci_attach()
/freebsd/sys/dev/malo/
H A Dif_malo_pci.c111 { SYS_RES_MEMORY, PCIR_BAR(0), RF_ACTIVE },
112 { SYS_RES_MEMORY, PCIR_BAR(1), RF_ACTIVE },
/freebsd/sys/dev/nvme/
H A Dnvme_pci.c155 ctrlr->resource_id = PCIR_BAR(0); in nvme_ctrlr_allocate_bar()
176 ctrlr->bar4_resource_id = PCIR_BAR(4); in nvme_ctrlr_allocate_bar()
/freebsd/sys/dev/aac/
H A Daac_pci.c396 rid = PCIR_BAR(0); in aac_pci_attach()
406 rid = PCIR_BAR(1); in aac_pci_attach()
/freebsd/sys/dev/netmap/
H A Dnetmap_freebsd.c814 rid = PCIR_BAR(PTNETMAP_MEM_PCI_BAR); in nm_os_pt_memdev_iomap()
853 PCIR_BAR(PTNETMAP_MEM_PCI_BAR), ptn_dev->pci_mem); in nm_os_pt_memdev_iounmap()
886 rid = PCIR_BAR(PTNETMAP_IO_PCI_BAR); in ptn_memdev_attach()
925 PCIR_BAR(PTNETMAP_MEM_PCI_BAR), ptn_dev->pci_mem); in ptn_memdev_detach()
930 PCIR_BAR(PTNETMAP_IO_PCI_BAR), ptn_dev->pci_io); in ptn_memdev_detach()
/freebsd/sys/dev/intel/
H A Dspi_pci.c89 sc->sc_mem_rid = PCIR_BAR(0); in intelspi_pci_attach()

12345678