/openbsd/sys/dev/ic/ |
H A D | advlib.c | 688 AscStopChip(iot, ioh); in AscResetChipAndScsiBus() 701 AscStartChip(iot, ioh); in AscResetChipAndScsiBus() 841 AscSetBank(iot, ioh, 1); in AscGetChipScsiCtrl() 843 AscSetBank(iot, ioh, 0); in AscGetChipScsiCtrl() 856 AscStartChip(iot, ioh); in AscSetRunChipSynRegAtID() 870 AscSetBank(iot, ioh, 1); in AscSetChipSynRegAtID() 886 AscSetBank(iot, ioh, 1); in AscSetChipSynRegAtID() 888 AscSetBank(iot, ioh, 0); in AscSetChipSynRegAtID() 934 AscSetBank(iot, ioh, 1); in AscSetChipIH() 936 AscSetBank(iot, ioh, 0); in AscSetChipIH() [all …]
|
H A D | adwlib.c | 241 bus_space_tag_t iot = sc->sc_iot; in AdwInitFromEEPROM() local 738 ADW_WRITE_WORD_LRAM(iot, ioh, in AdwInitDriver() 743 ADW_WRITE_WORD_LRAM(iot, ioh, in AdwInitDriver() 748 ADW_WRITE_WORD_LRAM(iot, ioh, in AdwInitDriver() 753 ADW_WRITE_WORD_LRAM(iot, ioh, in AdwInitDriver() 1576 AdwWaitEEPCmd(iot, ioh); in AdwReadEEPWord() 1618 AdwWaitEEPCmd(iot, ioh); in AdwSetEEPROMConfig() 1629 AdwWaitEEPCmd(iot, ioh); in AdwSetEEPROMConfig() 1639 AdwWaitEEPCmd(iot, ioh); in AdwSetEEPROMConfig() 1650 AdwWaitEEPCmd(iot, ioh); in AdwSetEEPROMConfig() [all …]
|
H A D | iha.c | 164 bus_space_tag_t iot; in iha_intr() local 168 iot = sc->sc_iot; in iha_intr() 181 iha_main(sc, iot, ioh); in iha_intr() 328 bus_space_tag_t iot; in iha_init_tulip() local 331 iot = sc->sc_iot; in iha_init_tulip() 387 iha_reset_dma(iot, ioh); in iha_init_tulip() 820 iha_scsi(sc, iot, ioh); in iha_main() 896 iha_resel(sc, iot, ioh); in iha_scsi() 2409 bus_space_tag_t iot; in iha_exec_scb() local 2428 iot = sc->sc_iot; in iha_exec_scb() [all …]
|
H A D | advlib.h | 1270 #define ASC_GET_CHIP_IFC(iot, ioh) bus_space_read_1((iot), (ioh), ASC_IOP_REG_IFC) argument 1274 #define ASC_GET_CHIP_CONTROL(iot, ioh) bus_space_read_1((iot), (ioh), ASC_IOP_CTRL) argument 1279 #define ASC_GET_PC_ADDR(iot, ioh) bus_space_read_2((iot), (ioh), ASC_IOP_REG_PC) argument 1284 #define ASC_READ_CHIP_AX(iot, ioh) bus_space_read_2((iot), (ioh), ASC_IOP_REG_AX) argument 1286 #define ASC_READ_CHIP_IX(iot, ioh) bus_space_read_1((iot), (ioh), ASC_IOP_REG_IX) argument 1288 #define ASC_READ_CHIP_IH(iot, ioh) bus_space_read_2((iot), (ioh), ASC_IOP_REG_IH) argument 1290 #define ASC_READ_CHIP_QP(iot, ioh) bus_space_read_1((iot), (ioh), ASC_IOP_REG_QP) argument 1298 #define ASC_READ_CHIP_DA0(iot, ioh) bus_space_read_2((iot), (ioh), ASC_IOP_REG_DA0) argument 1300 #define ASC_READ_CHIP_DA1(iot, ioh) bus_space_read_2((iot), (ioh), ASC_IOP_REG_DA1) argument 1302 #define ASC_READ_CHIP_DC0(iot, ioh) bus_space_read_2((iot), (ioh), ASC_IOP_REG_DC0) argument [all …]
|
H A D | aic6360.c | 297 bus_space_tag_t iot = sc->sc_iot; in aic_reset() local 343 bus_space_tag_t iot = sc->sc_iot; in aic_scsi_reset() local 358 bus_space_tag_t iot = sc->sc_iot; in aic_init() local 534 bus_space_tag_t iot = sc->sc_iot; in aic_poll() local 564 bus_space_tag_t iot = sc->sc_iot; in aic_sched_msgout() local 579 bus_space_tag_t iot = sc->sc_iot; in aic_setsync() local 597 bus_space_tag_t iot = sc->sc_iot; in aic_select() local 697 bus_space_tag_t iot = sc->sc_iot; in aic_sched() local 847 bus_space_tag_t iot = sc->sc_iot; in aic_msgin() local 1126 bus_space_tag_t iot = sc->sc_iot; in aic_msgout() local [all …]
|
H A D | elink3.c | 180 bus_space_tag_t iot = sc->sc_iot; in ep_reset_cmd() local 184 ep_finish_reset(iot, ioh); in ep_reset_cmd() 223 ep_finish_reset(iot, ioh); in ep_discard_rxtop() 252 bus_space_tag_t iot = sc->sc_iot; in epconfig() local 453 bus_space_tag_t iot = sc->sc_iot; in ep_isa_probemedia() local 505 bus_space_tag_t iot = sc->sc_iot; in ep_vortex_probemedia() local 571 bus_space_tag_t iot = sc->sc_iot; in epinit() local 576 ep_finish_reset(iot, ioh); in epinit() 1327 ep_discard_rxtop(iot, ioh); in epread() 1406 ep_discard_rxtop(iot, ioh); in epget() [all …]
|
H A D | trm.c | 310 bus_space_tag_t iot; in trm_scsi_cmd() local 320 iot = sc->sc_iotag; in trm_scsi_cmd() 763 bus_space_tag_t iot; in trm_Interrupt() local 771 iot = sc->sc_iotag; in trm_Interrupt() 1258 bus_space_read_2(iot, in trm_DataIO_transfer() 2428 trm_wait_30us(iot, ioh); in trm_write_all() 2436 trm_wait_30us(iot, ioh); in trm_write_all() 2480 trm_wait_30us(iot, ioh); in trm_set_data() 2485 trm_wait_30us(iot, ioh); in trm_set_data() 2487 trm_wait_30us(iot, ioh); in trm_set_data() [all …]
|
H A D | tcic2var.h | 104 bus_space_tag_t iot; member 190 return (bus_space_read_1(h->sc->iot, h->sc->ioh, reg)); in tcic_read_1() 205 val = bus_space_read_2(h->sc->iot, h->sc->ioh, reg); in tcic_read_4() 289 mode = bus_space_read_1(iot, ioh, TCIC_R_MODE); in tcic_read_aux_1() 291 val = bus_space_read_1(iot, ioh, reg); in tcic_read_aux_1() 300 mode = bus_space_read_1(iot, ioh, TCIC_R_MODE); in tcic_read_aux_2() 302 val = bus_space_read_2(iot, ioh, TCIC_R_AUX); in tcic_read_aux_2() 312 mode = bus_space_read_1(iot, ioh, TCIC_R_MODE); in tcic_write_aux_1() 314 bus_space_write_1(iot, ioh, reg, val); in tcic_write_aux_1() 323 mode = bus_space_read_1(iot, ioh, TCIC_R_MODE); in tcic_write_aux_2() [all …]
|
/openbsd/sys/dev/isa/ |
H A D | if_le_isa.c | 113 bus_space_tag_t iot = lesc->sc_iot; in depca_isa_probe() local 126 lesc->sc_iot = iot; in depca_isa_probe() 133 bus_space_unmap(iot, ioh, iosize); in depca_isa_probe() 198 bus_space_unmap(iot, ioh, iosize); in depca_isa_probe() 215 bus_space_tag_t iot = lesc->sc_iot; in ne2100_isa_probe() local 222 lesc->sc_iot = iot; in ne2100_isa_probe() 229 bus_space_unmap(iot, ioh, iosize); in ne2100_isa_probe() 249 bus_space_tag_t iot = ia->ia_iot; in bicc_isa_probe() local 255 lesc->sc_iot = iot; in bicc_isa_probe() 302 bus_space_tag_t iot = ia->ia_iot; in le_isa_attach() local [all …]
|
H A D | uha_isa.c | 78 bus_space_tag_t iot = ia->ia_iot; in uha_isa_probe() local 85 rv = u14_find(iot, ioh, &sc); in uha_isa_probe() 87 bus_space_unmap(iot, ioh, UHA_ISA_IOSIZE); in uha_isa_probe() 110 bus_space_tag_t iot = ia->ia_iot; in uha_isa_attach() local 119 sc->sc_iot = iot; in uha_isa_attach() 121 if (!u14_find(iot, ioh, sc)) in uha_isa_attach() 210 if (bus_space_read_1(iot, ioh, U14_LINT)) in u14_find() 235 bus_space_tag_t iot = sc->sc_iot; in u14_start_mbox() local 266 bus_space_tag_t iot = sc->sc_iot; in u14_poll() local 291 bus_space_tag_t iot = sc->sc_iot; in u14_intr() local [all …]
|
H A D | lm78_isa.c | 70 bus_space_tag_t iot; in lm_wbsio_match() local 76 iot = ia->ia_iot; in lm_wbsio_match() 79 if (bus_space_map(iot, iobase, 8, 0, &ioh)) { in lm_wbsio_match() 92 bus_space_write_1(iot, ioh, LMC_DATA, 0); in lm_wbsio_match() 98 bus_space_unmap(iot, ioh, 8); in lm_wbsio_match() 117 bus_space_tag_t iot; in lm_isa_match() local 123 iot = ia->ia_iot; in lm_isa_match() 141 bus_space_write_1(iot, ioh, LMC_ADDR, 0x58); in lm_isa_match() 154 addr = bus_space_read_1(iot, ioh, LMC_DATA); in lm_isa_match() 169 bus_space_unmap(iot, ioh, 8); in lm_isa_match() [all …]
|
H A D | gus.c | 743 guspeek(iot, ioh2, in gus_dmaout_dointr() 751 guspeek(iot, ioh2, in gus_dmaout_dointr() 1359 guspoke(iot, ioh2, 0L, 0); in gus_stop_voice() 3152 bus_space_tag_t iot; in gus_subattach() local 3156 iot = sc->sc_iot; in gus_subattach() 3412 s1 = guspeek(iot, ioh2, 0L); in gus_test_iobase() 3413 s2 = guspeek(iot, ioh2, 1L); in gus_test_iobase() 3415 guspoke(iot, ioh2, 0L, 0xaa); in gus_test_iobase() 3416 guspoke(iot, ioh2, 1L, 0x55); in gus_test_iobase() 3421 guspoke(iot, ioh2, 0L, s1); in gus_test_iobase() [all …]
|
H A D | mpu401.c | 61 #define MPU_GETSTATUS(iot, ioh) (bus_space_read_1(iot, ioh, MPU_STATUS)) argument 85 if (MPU_GETSTATUS(sc->iot, sc->ioh) == 0xff) { in mpu_find() 113 bus_space_tag_t iot = sc->iot; in mpu_reset() local 122 bus_space_write_1(iot, ioh, MPU_COMMAND, MPU_RESET); in mpu_reset() 124 if (!(MPU_GETSTATUS(iot, ioh) & MPU_INPUT_EMPTY) && in mpu_reset() 170 bus_space_tag_t iot = sc->iot; in mpu_readinput() local 174 while(!(MPU_GETSTATUS(iot, ioh) & MPU_INPUT_EMPTY)) { in mpu_readinput() 175 data = bus_space_read_1(iot, ioh, MPU_DATA); in mpu_readinput() 194 if (MPU_GETSTATUS(sc->iot, sc->ioh) & MPU_OUTPUT_BUSY) in mpu_output() 196 if (MPU_GETSTATUS(sc->iot, sc->ioh) & MPU_OUTPUT_BUSY) in mpu_output() [all …]
|
H A D | fdc.c | 100 bus_space_tag_t iot; in fdcprobe() local 105 iot = ia->ia_iot; in fdcprobe() 116 bus_space_write_1(iot, ioh, fdout, 0); in fdcprobe() 123 out_fdc(iot, ioh, 0xdf); in fdcprobe() 124 out_fdc(iot, ioh, 2); in fdcprobe() 131 bus_space_unmap(iot, ioh, FDC_NPORT); in fdcprobe() 140 bus_space_tag_t iot; in fdcattach() local 145 iot = ia->ia_iot; in fdcattach() 153 fdc->sc_iot = iot; in fdcattach() 235 bus_space_tag_t iot = fdc->sc_iot; in fdcresult() local [all …]
|
H A D | pckbc_isa.c | 55 bus_space_tag_t iot = ia->ia_iot; in pckbc_isa_match() local 66 if (pckbc_is_console(iot, IO_KBD) == 0) { in pckbc_isa_match() 76 if (pckbc_send_cmd(iot, ioh_c, KBC_SELFTEST) == 0) in pckbc_isa_match() 83 bus_space_unmap(iot, ioh_c, 1); in pckbc_isa_match() 84 bus_space_unmap(iot, ioh_d, 1); in pckbc_isa_match() 97 bus_space_unmap(iot, ioh_c, 1); in pckbc_isa_match() 99 bus_space_unmap(iot, ioh_d, 1); in pckbc_isa_match() 132 bus_space_tag_t iot; in pckbc_isa_attach() local 137 iot = ia->ia_iot; in pckbc_isa_attach() 151 if (pckbc_is_console(iot, IO_KBD)) { in pckbc_isa_attach() [all …]
|
H A D | if_ef_isapnp.c | 147 bus_space_tag_t iot; in ef_isapnp_attach() local 153 sc->sc_iot = iot = ia->ia_iot; in ef_isapnp_attach() 225 bus_space_tag_t iot = sc->sc_iot; in efstart() local 288 bus_space_write_4(iot, ioh, in efstart() 370 bus_space_tag_t iot = sc->sc_iot; in efinit() local 452 bus_space_tag_t iot = sc->sc_iot; in efstop() local 479 bus_space_tag_t iot = sc->sc_iot; in efcompletecmd() local 491 bus_space_tag_t iot = sc->sc_iot; in efintr() local 536 bus_space_tag_t iot = sc->sc_iot; in eftxstat() local 614 bus_space_tag_t iot = sc->sc_iot; in efsetmulti() local [all …]
|
/openbsd/sys/dev/eisa/ |
H A D | uha_eisa.c | 78 bus_space_tag_t iot = ea->ea_iot; in uha_eisa_match() local 90 rv = u24_find(iot, ioh, NULL); in uha_eisa_match() 92 bus_space_unmap(iot, ioh, UHA_EISA_IOSIZE); in uha_eisa_match() 105 bus_space_tag_t iot = ea->ea_iot; in uha_eisa_attach() local 121 sc->sc_iot = iot; in uha_eisa_attach() 123 if (!u24_find(iot, ioh, sc)) in uha_eisa_attach() 190 if (bus_space_read_1(iot, ioh, U24_LINT)) in u24_find() 212 bus_space_tag_t iot = sc->sc_iot; in u24_start_mbox() local 239 bus_space_tag_t iot = sc->sc_iot; in u24_poll() local 265 bus_space_tag_t iot = sc->sc_iot; in u24_intr() local [all …]
|
/openbsd/sys/arch/luna88k/dev/ |
H A D | mb89352.c | 238 bus_space_tag_t iot = sc->sc_iot; in spc_reset() local 254 bus_space_write_1(iot, ioh, SCTL, in spc_reset() 258 bus_space_write_1(iot, ioh, SCTL, in spc_reset() 269 bus_space_tag_t iot = sc->sc_iot; in spc_scsi_reset() local 273 bus_space_write_1(iot, ioh, SCMD, bus_space_read_1(iot, ioh, SCMD) | SCMD_RST); in spc_scsi_reset() 275 bus_space_write_1(iot, ioh, SCMD, bus_space_read_1(iot, ioh, SCMD) & ~SCMD_RST); in spc_scsi_reset() 470 bus_space_tag_t iot = sc->sc_iot; in spc_poll() local 496 bus_space_tag_t iot = sc->sc_iot; in spc_sched_msgout() local 512 bus_space_tag_t iot = sc->sc_iot; in spc_setsync() local 534 bus_space_tag_t iot = sc->sc_iot; in spc_select() local [all …]
|
/openbsd/sys/arch/luna88k/cbus/ |
H A D | nec86hw.c | 129 bus_space_tag_t iot = sc->sc_iot; in nec86hw_attach() local 616 bus_space_tag_t iot = sc->sc_iot; in nec86hw_speaker_ctl() local 696 bus_space_tag_t iot = sc->sc_iot; in nec86hw_set_mode_playing() local 708 bus_space_tag_t iot = sc->sc_iot; in nec86hw_set_mode_recording() local 723 bus_space_tag_t iot = sc->sc_iot; in nec86hw_set_volume() local 737 bus_space_tag_t iot = sc->sc_iot; in nec86hw_start_fifo() local 750 bus_space_tag_t iot = sc->sc_iot; in nec86hw_stop_fifo() local 763 bus_space_tag_t iot = sc->sc_iot; in nec86hw_enable_fifointr() local 775 bus_space_tag_t iot = sc->sc_iot; in nec86hw_disable_fifointr() local 787 bus_space_tag_t iot = sc->sc_iot; in nec86hw_seeif_intrflg() local [all …]
|
/openbsd/sys/dev/pci/ |
H A D | fmsradio.c | 166 r->tea.iot = sc->sc_iot; in fmsradio_attach() 262 bus_space_write_2(iot, ioh, offset, d); in sf256pcs_init() 263 bus_space_write_2(iot, ioh, offset, d); in sf256pcs_init() 273 bus_space_write_2(iot, ioh, offset, d); in sf256pcs_rset() 274 bus_space_write_2(iot, ioh, offset, d); in sf256pcs_rset() 348 bus_space_write_2(iot, ioh, offset, d); in sf256pcpr_init() 349 bus_space_write_2(iot, ioh, offset, d); in sf256pcpr_init() 359 bus_space_write_2(iot, ioh, offset, d); in sf256pcpr_rset() 360 bus_space_write_2(iot, ioh, offset, d); in sf256pcpr_rset() 416 i = bus_space_read_1(iot, ioh, offset); in sf64pcr_hw_read() [all …]
|
H A D | auixp.c | 196 iot = sc->sc_iot; in auixp_commit_settings() 535 iot = sc->sc_iot; in auixp_program_dma_chain() 582 iot = sc->sc_iot; in auixp_update_busbusy() 778 iot = sc->sc_iot; in auixp_intr() 1049 iot = sc->sc_iot; in auixp_enable_interrupts() 1068 iot = sc->sc_iot; in auixp_disable_interrupts() 1134 iot = sc->sc_iot; in auixp_read_codec() 1183 iot = sc->sc_iot; in auixp_write_codec() 1223 iot = sc->sc_iot; in auixp_wait_for_codecs() 1249 iot = sc->sc_iot; in auixp_autodetect_codecs() [all …]
|
/openbsd/sys/arch/hppa/gsc/ |
H A D | gsckbc.c | 362 bus_space_tag_t iot; in gsckbc_attach() local 366 iot = ga->ga_ca.ca_iot; in gsckbc_attach() 395 t->t_iot = iot; in gsckbc_attach() 406 ident = probe_ident(iot, ioh); in gsckbc_attach() 428 pckbc_wait_output(iot, ioh) in pckbc_wait_output() argument 429 bus_space_tag_t iot; in pckbc_wait_output() 444 pckbc_send_cmd(iot, ioh, val) in pckbc_send_cmd() argument 445 bus_space_tag_t iot; in pckbc_send_cmd() 449 if (!pckbc_wait_output(iot, ioh)) 459 bus_space_tag_t iot; in pckbc_poll_data1() [all …]
|
/openbsd/sys/arch/i386/isa/ |
H A D | lms.c | 82 bus_space_tag_t iot = ia->ia_iot; in lmsprobe() local 99 bus_space_write_1(iot, ioh, LMS_SIGN, 0x0c); in lmsprobe() 116 bus_space_unmap(iot, ioh, LMS_NPORTS); in lmsprobe() 125 bus_space_tag_t iot = ia->ia_iot; in lmsattach() local 137 sc->sc_iot = iot; in lmsattach() 203 bus_space_tag_t iot = sc->sc_iot; in lmsintr() local 215 hi = bus_space_read_1(iot, ioh, LMS_DATA); in lmsintr() 217 lo = bus_space_read_1(iot, ioh, LMS_DATA); in lmsintr() 223 hi = bus_space_read_1(iot, ioh, LMS_DATA); in lmsintr() 225 lo = bus_space_read_1(iot, ioh, LMS_DATA); in lmsintr() [all …]
|
H A D | mms.c | 79 bus_space_tag_t iot = ia->ia_iot; in mmsprobe() local 98 bus_space_write_1(iot, ioh, MMS_ADDR, 0x87); in mmsprobe() 105 bus_space_unmap(iot, ioh, MMS_NPORTS); in mmsprobe() 114 bus_space_tag_t iot = ia->ia_iot; in mmsattach() local 126 sc->sc_iot = iot; in mmsattach() 192 bus_space_tag_t iot = sc->sc_iot; in mmsintr() local 204 bus_space_write_1(iot, ioh, MMS_ADDR, 0x07); in mmsintr() 211 bus_space_write_1(iot, ioh, MMS_ADDR, 1); in mmsintr() 212 dx = bus_space_read_1(iot, ioh, MMS_DATA); in mmsintr() 216 bus_space_write_1(iot, ioh, MMS_ADDR, 2); in mmsintr() [all …]
|
/openbsd/sys/dev/fdt/ |
H A D | xhci_fdt.c | 115 sc->sc.iot = faa->fa_iot; in xhci_fdt_attach() 119 if (bus_space_map(sc->sc.iot, faa->fa_reg[idx].addr, in xhci_fdt_attach() 172 bus_space_unmap(sc->sc.iot, sc->sc.ioh, sc->sc.sc_size); in xhci_fdt_attach() 218 if (bus_space_map(sc->sc.iot, sc->sc_otg_base, in xhci_cdns_attach() 226 bus_space_write_4(sc->sc.iot, sc->sc_otg_ioh, OTG_CMD, in xhci_cdns_attach() 310 reg = bus_space_read_4(sc->sc.iot, sc->sc.ioh, USB3_GCTL); in xhci_snps_init() 313 bus_space_write_4(sc->sc.iot, sc->sc.ioh, USB3_GCTL, reg); in xhci_snps_init() 487 if (bus_space_map(sc->sc.iot, phy_reg[0], in exynos5_usbdrd_init() 515 bus_space_write_4(sc->sc.iot, sc->ph_ioh, EXYNOS5_PHYUTMI, in exynos5_usbdrd_init() 563 if (bus_space_map(sc->sc.iot, phy_reg[0], in imx8mp_usb_init() [all …]
|