| /netbsd/src/sys/arch/sparc/sparc/ |
| D | pci_fixup.c | 166 saved = pci_conf_read(NULL, tag, PCI_BAR(i)); in mspcic_pci_scan() 167 pci_conf_write(NULL, tag, PCI_BAR(i), (pcireg_t) ~0x0); in mspcic_pci_scan() 168 val = pci_conf_read(NULL, tag, PCI_BAR(i)); in mspcic_pci_scan() 169 pci_conf_write(NULL, tag, PCI_BAR(i), saved); in mspcic_pci_scan() 175 PCI_BAR(i), saved, val); in mspcic_pci_scan() 394 pci_conf_write(NULL, tag, PCI_BAR(j), in mspcic_pci_fixup() 396 val = pci_conf_read(NULL, tag, PCI_BAR(j)); in mspcic_pci_fixup() 405 pci_conf_write(NULL, tag, PCI_BAR(j), in mspcic_pci_fixup() 409 "mask %08x (io)\n", PCI_BAR(j), in mspcic_pci_fixup() 423 pci_conf_write(NULL, tag, PCI_BAR(j), in mspcic_pci_fixup() [all …]
|
| /netbsd/src/sys/external/bsd/drm2/pci/ |
| D | drmfb_pci.c | 85 for (i = 0; PCI_BAR(i) <= PCI_MAPREG_ROM; i++) { in drmfb_pci_mmap() 92 if (!pci_mapreg_probe(pa->pa_pc, pa->pa_tag, PCI_BAR(i), in drmfb_pci_mmap() 97 if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, PCI_BAR(i), type, in drmfb_pci_mmap()
|
| D | drm_pci.c | 95 const int reg = PCI_BAR(unit); in drm_pci_attach()
|
| /netbsd/src/sys/dev/pci/ |
| D | if_wi_pci.c | 69 #define WI_PCI_CBMA PCI_BAR(0) /* Configuration Base Memory Address */ 71 #define WI_PCI_PLX_LOIO PCI_BAR(1) /* PLX chip iobase */ 72 #define WI_PCI_LOMEM PCI_BAR(2) /* ISA membase */ 73 #define WI_PCI_LOIO PCI_BAR(3) /* ISA iobase */
|
| D | if_mtd_pci.c | 57 #define PCI_IO_MAP_REG PCI_BAR(0) 58 #define PCI_MEM_MAP_REG PCI_BAR(1)
|
| D | if_epic_pci.c | 70 #define EPIC_PCI_IOBA PCI_BAR(0) /* i/o mapped base */ 71 #define EPIC_PCI_MMBA PCI_BAR(1) /* memory mapped base */
|
| D | if_atw_pci.c | 77 #define ATW_PCI_IOBA PCI_BAR(0) /* i/o mapped base */ 78 #define ATW_PCI_MMBA PCI_BAR(1) /* memory mapped base */
|
| D | if_rtw_pci.c | 104 #define RTW_PCI_IOBA PCI_BAR(0) /* i/o mapped base */ 105 #define RTW_PCI_MMBA PCI_BAR(1) /* memory mapped base */
|
| D | cx23885reg.h | 34 #define CX23885_MMBASE PCI_BAR(0)
|
| D | if_ex_pci.c | 84 #define PCI_CBIO PCI_BAR(0) /* Configuration Base IO Address */ 86 #define PCI_FUNCMEM PCI_BAR(2)
|
| D | puc.c | 188 bar = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BAR(i)); in puc_attach() 206 PCI_BAR(i), type, 0, in puc_attach()
|
| D | pci_resource.c | 769 PCI_BAR(pi->pi_bar), 0); in pci_resource_init_device() 1052 PCI_BAR(pi->pi_bar), in pci_resource_alloc_device() 1057 PCI_BAR(pi->pi_bar)); in pci_resource_alloc_device() 1061 PCI_BAR(pi->pi_bar), base); in pci_resource_alloc_device() 1066 PCI_BAR(pi->pi_bar + 1), base); in pci_resource_alloc_device()
|
| D | if_ep_pci.c | 98 #define PCI_CBIO PCI_BAR(0) /* Configuration Base IO Address */
|
| D | if_an_pci.c | 72 #define AN_PCI_IOBA PCI_BAR(2) /* i/o base */
|
| D | if_enavar.h | 68 #define ENA_REG_BAR PCI_BAR(0) 69 #define ENA_MEM_BAR PCI_BAR(2)
|
| D | if_ntwoc_pci.c | 99 #define PCI_CBMA_ASIC PCI_BAR(0) /* Configuration Base Memory Address */ 100 #define PCI_CBMA_SCA PCI_BAR(2)
|
| D | if_ne_pci.c | 154 #define PCI_CBIO PCI_BAR(0) /* Configuration Base IO Address */
|
| D | if_ral_pci.c | 95 #define RAL_PCI_BAR0 PCI_BAR(0)
|
| D | if_bwi_pci.c | 56 #define BWI_PCI_BAR0 PCI_BAR(0)
|
| D | if_ath_pci.c | 91 #define ATH_PCI_MMBA PCI_BAR(0) /* memory mapped base */
|
| /netbsd/src/sys/arch/x86/pci/ |
| D | pci_ranges.c | 351 basebar = pci_conf_read(pc, tag, PCI_BAR(bar)); in io_range_infer() 352 pci_conf_write(pc, tag, PCI_BAR(bar), 0xffffffff); in io_range_infer() 353 sizebar = pci_conf_read(pc, tag, PCI_BAR(bar)); in io_range_infer() 354 pci_conf_write(pc, tag, PCI_BAR(bar), basebar); in io_range_infer() 362 PCI_BAR(bar), basebar, sizebar); in io_range_infer() 674 basebar = pci_conf_read(pc, tag, PCI_BAR(bar)); in mmio_range_infer() 675 pci_conf_write(pc, tag, PCI_BAR(bar), 0xffffffff); in mmio_range_infer() 676 sizebar = pci_conf_read(pc, tag, PCI_BAR(bar)); in mmio_range_infer() 677 pci_conf_write(pc, tag, PCI_BAR(bar), basebar); in mmio_range_infer() 685 PCI_BAR(bar), basebar, sizebar); in mmio_range_infer()
|
| /netbsd/src/sys/dev/cardbus/ |
| D | if_atw_cardbus.c | 87 #define ATW_PCI_IOBA PCI_BAR(0) /* i/o mapped base */ 88 #define ATW_PCI_MMBA PCI_BAR(1) /* memory mapped base */
|
| D | if_rtw_cardbus.c | 107 #define RTW_PCI_IOBA PCI_BAR(0) /* i/o mapped base */ 108 #define RTW_PCI_MMBA PCI_BAR(1) /* memory mapped base */
|
| D | if_tlp_cardbus.c | 84 #define TULIP_PCI_IOBA PCI_BAR(0) /* i/o mapped base */ 85 #define TULIP_PCI_MMBA PCI_BAR(1) /* memory mapped base */
|
| D | if_ath_cardbus.c | 83 #define ATH_PCI_MMBA PCI_BAR(0) /* memory mapped base */
|