| /src/sys/arch/x86/pci/ |
| aapic.c | 61 reg = pci_conf_read(pa->pa_pc, pa->pa_tag, AMD8131_IOAPIC_CTL); 63 pci_conf_write(pa->pa_pc, pa->pa_tag, AMD8131_IOAPIC_CTL, reg); 65 pci_decompose_tag(pa->pa_pc, pa->pa_tag, &bus, &dev, &func); 67 tag = pci_make_tag(pa->pa_pc, bus, dev, func); 68 reg = pci_conf_read(pa->pa_pc, tag, AMD8131_PCIX_MISC); 70 pci_conf_write(pa->pa_pc, tag, AMD8131_PCIX_MISC, reg);
|
| pchb.c | 166 sc->sc_pc = pa->pa_pc; 181 pbnum = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x44) & 0xff; 239 bcreg = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x40); 262 bcreg = pci_conf_read(pa->pa_pc, pa->pa_tag, 270 pci_conf_write(pa->pa_pc, pa->pa_tag, 277 bcreg = pci_conf_read(pa->pa_pc, pa->pa_tag, 302 bcreg = pci_conf_read(pa->pa_pc, pa->pa_tag, 306 pci_conf_write(pa->pa_pc, pa->pa_tag, 335 tag = pci_make_tag(pa->pa_pc, 0, 16, 0); 336 bcreg = pci_conf_read(pa->pa_pc, tag, 0xd0) [all...] |
| /src/sys/arch/hpcmips/dev/ |
| plumvar.h | 46 plum_chipset_tag_t pa_pc; member in struct:plum_attach_args
|
| /src/sys/dev/pci/ |
| mpt_pci.c | 141 psc->sc_pc = pa->pa_pc; 150 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, MPT_PCI_MMBA); 173 reg = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 178 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, reg); 187 reg = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x68); 189 pci_conf_write(pa->pa_pc, pa->pa_tag, 0x68, reg); 195 reg = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM); 197 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM, reg); 206 intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); 207 psc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_BIO, mpt_intr [all...] |
| puccn.c | 107 pci_decompose_tag(pa.pa_pc, pa.pa_tag, &bus, &maxdev, NULL); 111 pa.pa_tag = pci_make_tag(pa.pa_pc, bus, dev, 0); 112 reg = pci_conf_read(pa.pa_pc, pa.pa_tag, PCI_ID_REG); 116 bhlcr = pci_conf_read(pa.pa_pc, pa.pa_tag, PCI_BHLC_REG); 124 pa.pa_tag = pci_make_tag(pa.pa_pc, bus, dev, func); 125 reg = pci_conf_read(pa.pa_pc, pa.pa_tag, 130 pa.pa_id = pci_conf_read(pa.pa_pc, pa.pa_tag, 132 subsys = pci_conf_read(pa.pa_pc, pa.pa_tag, 173 base = pci_conf_read(pa.pa_pc, pa.pa_tag, desc->ports[i].bar);
|
| adv_pci.c | 115 pci_chipset_tag_t pc = pa->pa_pc; 157 command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 162 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, 172 bhlcr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); 177 pci_conf_write(pa->pa_pc, pa->pa_tag, 183 pci_conf_write(pa->pa_pc, pa->pa_tag,
|
| if_an_pci.c | 128 psc->sc_pct = pa->pa_pc; 141 csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 142 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, 150 intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); 151 psc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_NET, an_intr, 165 pci_intr_disestablish(pa->pa_pc, psc->sc_ih);
|
| iha_pci.c | 120 command = pci_conf_read(pa->pa_pc,pa->pa_tag,PCI_COMMAND_STATUS_REG); 123 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command); 145 intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); 147 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_BIO, iha_intr,
|
| agp_amd64.c | 164 tag = AGP_AMD64_NVIDIA_PCITAG(pa->pa_pc); 166 reg = pci_conf_read(pa->pa_pc, tag, PCI_CLASS_REG); 171 reg = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG); 184 tag = AGP_AMD64_VIA_PCITAG(pa->pa_pc); 186 reg = pci_conf_read(pa->pa_pc, tag, PCI_CLASS_REG); 191 reg = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG); 219 maxdevs = pci_bus_maxdevs(pa->pa_pc, 0); 221 tag = pci_make_tag(pa->pa_pc, 0, i, 3); 222 id = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG); 243 pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP, &sc->as_capoff [all...] |
| if_hme_pci.c | 148 csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 149 type = pci_mapreg_type(pa->pa_pc, pa->pa_tag, PCI_HME_BASEADDR); 165 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, 231 ebus_pa.pa_tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device, 0); 233 ebus_cl = pci_conf_read(ebus_pa.pa_pc, ebus_pa.pa_tag, PCI_CLASS_REG); 234 ebus_id = pci_conf_read(ebus_pa.pa_pc, ebus_pa.pa_tag, PCI_ID_REG); 302 intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); 303 hsc->hsc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_NET, hme_intr,
|
| if_re_pci.c | 158 subid = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBSYS_ID_REG); 186 pci_chipset_tag_t pc = pa->pa_pc; 199 psc->sc_pc = pa->pa_pc; 201 command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 203 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command); 210 memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, RTK_PCI_LOMEM); 245 command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 247 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command); 255 command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 257 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command) [all...] |
| if_sf_pci.c | 136 subsysid = pci_conf_read(pa->pa_pc, pa->pa_tag, 190 if ((error = pci_activate(pa->pa_pc, pa->pa_tag, self, NULL)) && 199 reg = pci_mapreg_type(pa->pa_pc, pa->pa_tag, SF_PCI_MEMBA); 231 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, 232 pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) | 242 intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); 243 psc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_NET, sf_intr,
|
| mfi_pci.c | 205 psc->psc_pc = pa->pa_pc; 219 csr = pci_mapreg_type(pa->pa_pc, pa->pa_tag, regbar); 241 intrstr = pci_intr_string(pa->pa_pc, ih, intrbuf, sizeof(intrbuf)); 243 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_BIO, 246 sc->sc_ih = pci_intr_establish_xname(pa->pa_pc, ih, IPL_BIO, 258 subsysid = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_SUBSYS_ID_REG); 281 pci_intr_disestablish(pa->pa_pc, sc->sc_ih);
|
| dpt_pci.c | 96 pc = pa->pa_pc; 114 csr = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); 115 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
|
| /src/sys/arch/hppa/dev/ |
| ssio.c | 141 bhlc = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); 145 tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device, 1); 146 id = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG); 153 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_CLASS_REG, 202 intrstr = pci_intr_string(pa->pa_pc, ih, buf, sizeof(buf)); 203 sc->sc_ih = pci_intr_establish(pa->pa_pc, ih, IPL_TTY, ssio_intr, 228 reg = pci_conf_read(pa->pa_pc, pa->pa_tag, SSIO_PCI_DMA_RC2); 231 pci_conf_write(pa->pa_pc, pa->pa_tag, SSIO_PCI_DMA_RC2, reg); 237 pci_conf_write(pa->pa_pc, pa->pa_tag, SSIO_PCI_INT_TC2, reg); 241 pci_conf_write(pa->pa_pc, pa->pa_tag, SSIO_PCI_INT_RC4, reg) [all...] |
| sti_pci_machdep.c | 81 cf = pci_conf_read(paa->pa_pc, paa->pa_tag, bar); 83 rc = pci_mapreg_info(paa->pa_pc, paa->pa_tag, bar, 129 cf = pci_conf_read(pa->pa_pc, pa->pa_tag, bar); 131 rc = pci_mapreg_info(pa->pa_pc, pa->pa_tag, bar, PCI_MAPREG_TYPE(cf), 162 address = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM); 163 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM, 165 mask = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM); 167 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_MAPREG_ROM, address);
|
| /src/sys/arch/evbarm/iq80310/ |
| iq80310_pci.c | 85 struct i80312_softc *sc = pa->pa_pc->pc_intr_v; 129 struct i80312_softc *sc = pa->pa_pc->pc_intr_v; 166 tag = pci_make_tag(pa->pa_pc, sbus, 7, 0); 169 reg = pci_conf_read(pa->pa_pc, tag, PCI_ID_REG); 182 reg = pci_conf_read(pa->pa_pc, tag, PCI_CLASS_REG); 195 reg = pci_conf_read(pa->pa_pc, tag, PCI_BRIDGE_BUS_REG);
|
| /src/sys/arch/powerpc/pci/ |
| pcib.c | 119 v = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x40); 123 v = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x60); 159 v = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x44) & 0xffff0000; 160 pci_conf_write(pa->pa_pc, pa->pa_tag, 0x44, v); 172 v = pci_conf_read(pa->pa_pc, pa->pa_tag, 0x40) & 0x00ffffff; 174 pci_conf_write(pa->pa_pc, pa->pa_tag, 0x40, v);
|
| pchb.c | 83 reg1 = pci_conf_read(pa->pa_pc, pa->pa_tag, MPC105_PICR1); 84 reg2 = pci_conf_read(pa->pa_pc, pa->pa_tag, MPC105_PICR2); 126 reg1 = pci_conf_read(pa->pa_pc, pa->pa_tag, MPC106_PICR1); 127 reg2 = pci_conf_read(pa->pa_pc, pa->pa_tag, MPC106_PICR2); 188 reg1 = pci_conf_read(pa->pa_pc, pa->pa_tag, 216 reg1 = pci_conf_read(pa->pa_pc, pa->pa_tag, IBM_82660_OPTIONS_1); 224 reg1 = pci_conf_read(pa->pa_pc, pa->pa_tag, IBM_82660_OPTIONS_3); 285 if (pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP,
|
| /src/sys/arch/alpha/pci/ |
| pciide_machdep.c | 62 pci_chipset_tag_t pc = pa->pa_pc;
|
| /src/sys/arch/evbmips/alchemy/ |
| pciide_machdep.c | 59 pci_chipset_tag_t pc = pa->pa_pc;
|
| /src/sys/arch/mips/pci/ |
| pciide_machdep.c | 58 pci_chipset_tag_t pc = pa->pa_pc;
|
| /src/sys/external/bsd/drm2/pci/ |
| drmfb_pci.c | 92 if (!pci_mapreg_probe(pa->pa_pc, pa->pa_tag, PCI_BAR(i), 97 if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, PCI_BAR(i), type, 139 return pci_devioctl(pa->pa_pc, pa->pa_tag, cmd, data, flag, l); 143 return wsdisplayio_busid_pci(dev->dev, pa->pa_pc, pa->pa_tag,
|
| drm_pci.c | 97 pci_mapreg_type(pa->pa_pc, pa->pa_tag, reg); 115 if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, reg, type, 191 pci_intr_setattr(pa->pa_pc, &irq_cookie->intr_handles[0], 193 intrstr = pci_intr_string(pa->pa_pc, irq_cookie->intr_handles[0], 195 irq_cookie->ih_cookie = pci_intr_establish_xname(pa->pa_pc, 200 pci_intr_release(pa->pa_pc, irq_cookie->intr_handles, 1); 219 pci_intr_disestablish(pa->pa_pc, cookie->ih_cookie); 220 pci_intr_release(pa->pa_pc, cookie->intr_handles, 1);
|
| /src/sys/external/bsd/drm2/linux/ |
| linux_pci.c | 105 npa->pa_pc = pcisc->sc_pc; 110 pcireg_t id = pci_conf_read(npa->pa_pc, npa->pa_tag, PCI_ID_REG); 111 pcireg_t subid = pci_conf_read(npa->pa_pc, npa->pa_tag, 113 pcireg_t class = pci_conf_read(npa->pa_pc, npa->pa_tag, PCI_CLASS_REG); 120 pci_decompose_tag(npa->pa_pc, npa->pa_tag, &bus, &device, &function); 148 const uint32_t subsystem_id = pci_conf_read(pa->pa_pc, pa->pa_tag, 159 const int seg = pci_get_segment(pa->pa_pc); 169 pdev->bus->pb_pc = pa->pa_pc; 196 pdev->pd_resources[i].type = pci_mapreg_type(pa->pa_pc, 198 if (pci_mapreg_info(pa->pa_pc, pa->pa_tag, reg [all...] |