/openbsd-current/sys/arch/hppa/gsc/ |
H A D | fdc_gsc.c | 58 bus_space_handle_t ioh; local 66 if (bus_space_map(ca->ca_iot, ca->ca_hpa, IOMOD_HPASIZE, 0, &ioh)) 69 rv = fdcprobe1(ca->ca_iot, ioh | IOMOD_DEVOFFSET); 70 bus_space_unmap(ca->ca_iot, ioh, IOMOD_HPASIZE); 80 bus_space_handle_t ioh; local 84 if (bus_space_map(ca->ca_iot, ca->ca_hpa, IOMOD_HPASIZE, 0, &ioh)) 87 ioh |= IOMOD_DEVOFFSET; 89 sc->sc_ioh = ioh; 90 sc->sc_ioh_ctl = ioh + FDCTL_OFFSET;
|
H A D | lpt_gsc.c | 105 bus_space_handle_t ioh; local 123 bus_space_unmap(ga->ga_iot, ioh, LPT_NPORTS); \ 129 if (bus_space_map(ga->ga_iot, base, LPT_NPORTS, 0, &ioh)) { 138 if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask)) 142 if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask)) 147 if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask)) 153 if (!lpt_port_test(ga->ga_iot, ioh, base, lpt_data, data, mask)) 157 bus_space_write_1(ga->ga_iot, ioh, lpt_data, 0); 158 bus_space_write_1(ga->ga_iot, ioh, lpt_control, 0); 159 bus_space_unmap(ga->ga_iot, ioh, LPT_NPORT [all...] |
/openbsd-current/sys/dev/eisa/ |
H A D | uha_eisa.c | 79 bus_space_handle_t ioh; local 87 UHA_EISA_SLOT_OFFSET, UHA_EISA_IOSIZE, 0, &ioh)) 90 rv = u24_find(iot, ioh, NULL); 92 bus_space_unmap(iot, ioh, UHA_EISA_IOSIZE); 106 bus_space_handle_t ioh; local 118 UHA_EISA_SLOT_OFFSET, UHA_EISA_IOSIZE, 0, &ioh)) 122 sc->sc_ioh = ioh; 123 if (!u24_find(iot, ioh, sc)) 153 u24_find(bus_space_tag_t iot, bus_space_handle_t ioh, struct uha_softc *sc) argument 159 config0 = bus_space_read_1(iot, ioh, U24_CONFI 213 bus_space_handle_t ioh = sc->sc_ioh; local 240 bus_space_handle_t ioh = sc->sc_ioh; local 266 bus_space_handle_t ioh = sc->sc_ioh; local 313 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
/openbsd-current/sys/dev/ic/ |
H A D | adwlib.c | 242 bus_space_handle_t ioh = sc->sc_ioh; local 259 if (AdwGetEEPROMConfig(iot, ioh, &eep_config) != eep_config.check_sum) { 308 ADW_WRITE_BYTE_REGISTER(iot, ioh, 310 if (ADW_READ_BYTE_REGISTER(iot, ioh, 332 AdwReadEEPWord(iot, ioh, ADW_EEP_DVC_CFG_END - j); 335 AdwSetEEPROMConfig(iot, ioh, &eep_config); 528 bus_space_handle_t ioh = sc->sc_ioh; local 550 ADW_READ_WORD_LRAM(iot, ioh, ADW_MC_BIOSMEM+(2*i), bios_mem[i]); 571 ADW_READ_WORD_LRAM(iot, ioh, 0x120, wdtr_able); 573 ADW_READ_WORD_LRAM(iot, ioh, ADW_MC_WDTR_ABL 928 AdwRamSelfTest(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t chip_type) argument 1014 AdwLoadMCode(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t *bios_mem, u_int8_t chip_type) argument 1161 AdwASC3550Cabling(bus_space_tag_t iot, bus_space_handle_t ioh, ADW_DVC_CFG *cfg) argument 1283 AdwASC38C0800Cabling(bus_space_tag_t iot, bus_space_handle_t ioh, ADW_DVC_CFG *cfg) argument 1410 AdwASC38C1600Cabling(bus_space_tag_t iot, bus_space_handle_t ioh, ADW_DVC_CFG *cfg) argument 1537 AdwGetEEPROMConfig(bus_space_tag_t iot, bus_space_handle_t ioh, ADW_EEPROM *cfg_buf) argument 1572 AdwReadEEPWord(bus_space_tag_t iot, bus_space_handle_t ioh, int eep_word_addr) argument 1586 AdwWaitEEPCmd(bus_space_tag_t iot, bus_space_handle_t ioh) argument 1607 AdwSetEEPROMConfig(bus_space_tag_t iot, bus_space_handle_t ioh, ADW_EEPROM *cfg_buf) argument 1682 bus_space_handle_t ioh = sc->sc_ioh; local 1794 AdwResetChip(bus_space_tag_t iot, bus_space_handle_t ioh) argument 1865 bus_space_handle_t ioh = sc->sc_ioh; local 1955 bus_space_handle_t ioh = sc->sc_ioh; local 2113 bus_space_handle_t ioh = sc->sc_ioh; local 2179 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
H A D | advlib.c | 248 bus_space_handle_t ioh = sc->sc_ioh; local 252 ASC_SET_CHIP_CONTROL(iot, ioh, ASC_CC_HALT); 253 ASC_SET_CHIP_STATUS(iot, ioh, 0); 278 chip_version = AscGetChipVersion(iot, ioh, sc->bus_type); 301 ASC_SET_EXTRA_CONTROL(iot, ioh, 304 ASC_SET_EXTRA_CONTROL(iot, ioh, 319 ASC_SET_EXTRA_CONTROL(iot, ioh, 323 if (AscGetChipBusType(iot, ioh) == ASC_IS_ISAPNP) { 324 ASC_SET_CHIP_IFC(iot, ioh, ASC_IFC_INIT_DEFAULT); 328 sc->isa_dma_channel = AscGetIsaDmaChannel(iot, ioh); 346 bus_space_handle_t ioh = sc->sc_ioh; local 514 bus_space_handle_t ioh = sc->sc_ioh; local 574 bus_space_handle_t ioh = sc->sc_ioh; local 598 AscFindSignature(bus_space_tag_t iot, bus_space_handle_t ioh) argument 616 bus_space_handle_t ioh = sc->sc_ioh; local 660 bus_space_handle_t ioh = sc->sc_ioh; local 684 AscResetChipAndScsiBus(bus_space_tag_t iot, bus_space_handle_t ioh) argument 710 AscGetChipBusType(bus_space_tag_t iot, bus_space_handle_t ioh) argument 743 AscSetBank(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t bank) argument 776 AscStartChip(bus_space_tag_t iot, bus_space_handle_t ioh) argument 787 AscStopChip(bus_space_tag_t iot, bus_space_handle_t ioh) argument 804 AscGetChipVersion(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t bus_type) argument 821 AscSetChipScsiID(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t new_id) argument 837 AscGetChipScsiCtrl(bus_space_tag_t iot, bus_space_handle_t ioh) argument 849 AscSetRunChipSynRegAtID(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t tid_no, u_int8_t sdtr_data) argument 863 AscSetChipSynRegAtID(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t id, u_int8_t sdtr_data) argument 894 AscHostReqRiscHalt(bus_space_tag_t iot, bus_space_handle_t ioh) argument 921 AscIsChipHalted(bus_space_tag_t iot, bus_space_handle_t ioh) argument 932 AscSetChipIH(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t ins_code) argument 948 AscReadLramByte(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr) argument 969 AscWriteLramByte(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr, u_int8_t data) argument 991 AscReadLramWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr) argument 999 AscWriteLramWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr, u_int16_t data) argument 1008 AscReadLramDWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr) argument 1021 AscWriteLramDWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr, u_int32_t data) argument 1031 AscMemWordSetLram(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t s_addr, u_int16_t s_words, int count) argument 1043 AscMemWordCopyToLram(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t s_addr, u_int16_t *s_buffer, int words) argument 1055 AscMemWordCopyFromLram(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t s_addr, u_int16_t *s_buffer, int words) argument 1067 AscMemDWordCopyToLram(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t s_addr, u_int32_t *s_buffer, int dwords) argument 1085 AscMemSumLramWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t s_addr, int words) argument 1099 AscTestExternalLram(bus_space_tag_t iot, bus_space_handle_t ioh) argument 1130 bus_space_handle_t ioh = sc->sc_ioh; local 1168 AscLoadMicroCode(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t s_addr, u_int16_t *mcode_buf, u_int16_t mcode_size) argument 1228 AscWriteEEPCmdReg(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t cmd_reg) argument 1249 AscWriteEEPDataReg(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t data_reg) argument 1284 AscReadEEPWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t addr) argument 1302 AscWriteEEPWord(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t addr, u_int16_t word_val) argument 1324 AscGetEEPConfig(bus_space_tag_t iot, bus_space_handle_t ioh, ASCEEP_CONFIG *cfg_buf, u_int16_t bus_type) argument 1366 AscSetEEPConfig(bus_space_tag_t iot, bus_space_handle_t ioh, ASCEEP_CONFIG *cfg_buf, u_int16_t bus_type) argument 1386 AscSetEEPConfigOnce(bus_space_tag_t iot, bus_space_handle_t ioh, ASCEEP_CONFIG *cfg_buf, u_int16_t bus_type) argument 1489 bus_space_handle_t ioh = sc->sc_ioh; local 1569 bus_space_handle_t ioh = sc->sc_ioh; local 1677 bus_space_handle_t ioh = sc->sc_ioh; local 1840 _AscCopyLramScsiDoneQ(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t q_addr, ASC_QDONE_INFO *scsiq, u_int32_t max_dma_count) argument 1866 AscGetQDoneInfo(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr, ASC_QDONE_INFO *scsiq) argument 1893 AscToggleIRQAct(bus_space_tag_t iot, bus_space_handle_t ioh) argument 1901 AscDisableInterrupt(bus_space_tag_t iot, bus_space_handle_t ioh) argument 1911 AscEnableInterrupt(bus_space_tag_t iot, bus_space_handle_t ioh) argument 1921 AscGetChipIRQ(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t bus_type) argument 1952 AscSetChipIRQ(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t irq_no, u_int16_t bus_type) argument 1991 AscAckInterrupt(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2033 AscGetIsaDmaChannel(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2047 AscSetIsaDmaChannel(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t dma_channel) argument 2068 AscGetIsaDmaSpeed(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2081 AscSetIsaDmaSpeed(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t speed_value) argument 2102 bus_space_handle_t ioh = sc->sc_ioh; local 2187 bus_space_handle_t ioh = sc->sc_ioh; local 2217 AscSetChipSDTR(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t sdtr_data, u_int8_t tid_no) argument 2274 bus_space_handle_t ioh = sc->sc_ioh; local 2422 bus_space_handle_t ioh = sc->sc_ioh; local 2456 bus_space_handle_t ioh = sc->sc_ioh; local 2540 bus_space_handle_t ioh = sc->sc_ioh; local 2578 AscPutSCSIQ(bus_space_tag_t iot, bus_space_handle_t ioh, u_int16_t addr, ASC_SCSI_Q *scsiq) argument 2659 AscAllocFreeQueue(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t free_q_head) argument 2677 AscAllocMultipleFreeQueue(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t free_q_head, u_int8_t n_free_q) argument 2693 AscStopQueueExe(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2712 AscStartQueueExe(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2720 AscCleanUpBusyQueue(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2739 _AscWaitQDone(bus_space_tag_t iot, bus_space_handle_t ioh, ASC_SCSI_Q *scsiq) argument 2761 AscCleanUpDiscQueue(bus_space_tag_t iot, bus_space_handle_t ioh) argument 2790 bus_space_handle_t ioh = sc->sc_ioh; local 2818 bus_space_handle_t ioh = sc->sc_ioh; local 2860 bus_space_handle_t ioh = sc->sc_ioh; local 2901 bus_space_handle_t ioh = sc->sc_ioh; local 2969 bus_space_handle_t ioh = sc->sc_ioh; local 3030 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
H A D | advlib.h | 1233 #define ASC_GET_QDONE_IN_PROGRESS(iot, ioh) AscReadLramByte((iot), (ioh), ASCV_Q_DONE_IN_PROGRESS_B) 1234 #define ASC_PUT_QDONE_IN_PROGRESS(iot, ioh, val) AscWriteLramByte((iot), (ioh), ASCV_Q_DONE_IN_PROGRESS_B, val) 1235 #define ASC_GET_VAR_FREE_QHEAD(iot, ioh) AscReadLramWord((iot), (ioh), ASCV_FREE_Q_HEAD_W) 1236 #define ASC_GET_VAR_DONE_QTAIL(iot, ioh) AscReadLramWord((iot), (ioh), ASCV_DONE_Q_TAIL_W) 1237 #define ASC_PUT_VAR_FREE_QHEAD(iot, ioh, val) AscWriteLramWord((iot), (ioh), ASCV_FREE_Q_HEAD_ [all...] |
H A D | iha.c | 162 bus_space_handle_t ioh; local 169 ioh = sc->sc_ioh; 171 if ((bus_space_read_1(iot, ioh, TUL_STAT0) & INTPD) == 0) 178 bus_space_write_1(iot, ioh, TUL_IMSK, MASK_ALL); 181 iha_main(sc, iot, ioh); 184 bus_space_write_1(iot, ioh, TUL_IMSK, (MASK_ALL & ~MSCMP)); 326 bus_space_handle_t ioh; local 332 ioh = sc->sc_ioh; 334 iha_read_eeprom(iot, ioh, &iha_nvram); 384 bus_space_write_1(iot, ioh, TUL_IMS 430 iha_reset_dma(bus_space_tag_t iot, bus_space_handle_t ioh) argument 814 iha_main(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 873 iha_scsi(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1038 iha_next_state(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1110 iha_state_1(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1168 iha_state_2(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1192 iha_state_3(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1248 iha_state_4(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1308 iha_state_5(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1406 iha_state_6(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1446 iha_state_8(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1493 iha_xfer_data(struct iha_scb *pScb, bus_space_tag_t iot, bus_space_handle_t ioh, int direction) argument 1531 iha_xpad_in(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1560 iha_xpad_out(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1592 iha_status_msg(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1663 iha_busfree(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1719 iha_resel(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1805 iha_msgin(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1870 iha_msgin_ignore_wid_resid(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 1893 iha_msgin_extended(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2020 iha_msgout(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t msg) argument 2029 iha_msgout_abort(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t aborttype) argument 2051 iha_msgout_reject(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2063 iha_msgout_extended(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2082 iha_msgout_wdtr(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2095 iha_msgout_sdtr(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2114 iha_wide_done(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2132 iha_sync_done(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2158 iha_reset_chip(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh) argument 2183 iha_select(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh, struct iha_scb *pScb, u_int8_t select_type) argument 2238 iha_wait(struct iha_softc *sc, bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t cmd) argument 2408 bus_space_handle_t ioh; local 2451 iha_set_ssig(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t offsigs, u_int8_t onsigs) argument 2524 iha_read_eeprom(bus_space_tag_t iot, bus_space_handle_t ioh, struct iha_nvram *nvram) argument 2563 iha_se2_rd(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t addr) argument 2597 iha_se2_instr(bus_space_tag_t iot, bus_space_handle_t ioh, u_int8_t instr) argument [all...] |
H A D | elink3.c | 181 bus_space_handle_t ioh = sc->sc_ioh; local 183 bus_space_write_2(iot, ioh, cmd, arg); 184 ep_finish_reset(iot, ioh); 191 ep_finish_reset(bus_space_tag_t iot, bus_space_handle_t ioh) argument 196 if ((bus_space_read_2(iot, ioh, EP_STATUS) & 204 ep_discard_rxtop(bus_space_tag_t iot, bus_space_handle_t ioh) argument 208 bus_space_write_2(iot, ioh, EP_COMMAND, RX_DISCARD_TOP_PACK); 217 if ((bus_space_read_2(iot, ioh, EP_STATUS) & 223 ep_finish_reset(iot, ioh); 253 bus_space_handle_t ioh local 454 bus_space_handle_t ioh = sc->sc_ioh; local 506 bus_space_handle_t ioh = sc->sc_ioh; local 572 bus_space_handle_t ioh = sc->sc_ioh; local 700 bus_space_handle_t ioh = sc->sc_ioh; local 726 bus_space_handle_t ioh = sc->sc_ioh; local 874 bus_space_handle_t ioh = sc->sc_ioh; local 942 bus_space_handle_t ioh = sc->sc_ioh; local 1092 bus_space_handle_t ioh = sc->sc_ioh; local 1144 bus_space_handle_t ioh = sc->sc_ioh; local 1191 bus_space_handle_t ioh = sc->sc_ioh; local 1239 bus_space_handle_t ioh = sc->sc_ioh; local 1335 bus_space_handle_t ioh = sc->sc_ioh; local 1486 bus_space_handle_t ioh = sc->sc_ioh; local 1538 epreadeeprom(bus_space_tag_t iot, bus_space_handle_t ioh, int offset) argument 1554 bus_space_handle_t ioh = sc->sc_ioh; local 1776 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
H A D | aic6360.c | 195 aic_find(bus_space_tag_t iot, bus_space_handle_t ioh) argument 201 bus_space_write_1(iot, ioh, DMACNTRL0, 0); 214 bus_space_write_1(iot, ioh, DMACNTRL1, 0); /* Reset stack pointer */ 216 bus_space_write_1(iot, ioh, STACK, i); 219 bus_space_write_1(iot, ioh, DMACNTRL1, 0); 220 for (i = 0; i < STSIZE && bus_space_read_1(iot, ioh, STACK) == i; i++) 231 bus_space_read_multi_1(iot, ioh, ID, chip_id, sizeof(IDSTRING) - 1); 234 (int)bus_space_read_1(iot, ioh, REV))); 291 * aicprobe should have succeeded, i.e. the ioh handle in aic_softc must 298 bus_space_handle_t ioh local 344 bus_space_handle_t ioh = sc->sc_ioh; local 359 bus_space_handle_t ioh = sc->sc_ioh; local 535 bus_space_handle_t ioh = sc->sc_ioh; local 565 bus_space_handle_t ioh = sc->sc_ioh; local 580 bus_space_handle_t ioh = sc->sc_ioh; local 598 bus_space_handle_t ioh = sc->sc_ioh; local 698 bus_space_handle_t ioh = sc->sc_ioh; local 848 bus_space_handle_t ioh = sc->sc_ioh; local 1127 bus_space_handle_t ioh = sc->sc_ioh; local 1319 bus_space_handle_t ioh = sc->sc_ioh; local 1461 bus_space_handle_t ioh = sc->sc_ioh; local 1583 bus_space_handle_t ioh = sc->sc_ioh; local 2052 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
H A D | tcic2var.h | 105 bus_space_handle_t ioh; member in struct:tcic_softc 190 return (bus_space_read_1(h->sc->iot, h->sc->ioh, reg)); 197 return (bus_space_read_2(h->sc->iot, h->sc->ioh, reg)); 205 val = bus_space_read_2(h->sc->iot, h->sc->ioh, reg); 206 val |= bus_space_read_2(h->sc->iot, h->sc->ioh, reg+2) << 16; 214 bus_space_write_1(h->sc->iot, h->sc->ioh, reg, (data)); 221 bus_space_write_2(h->sc->iot, h->sc->ioh, reg, (data)); 228 bus_space_write_2(h->sc->iot, h->sc->ioh, reg, (data)); 229 bus_space_write_2(h->sc->iot, h->sc->ioh, reg+2, (data)>>16); 239 val = bus_space_read_2(h->sc->iot, h->sc->ioh, TCIC_R_DAT 285 tcic_read_aux_1(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg, int reg) argument 297 tcic_read_aux_2(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg) argument 308 tcic_write_aux_1(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg, int reg, int val) argument 319 tcic_write_aux_2(bus_space_tag_t iot, bus_space_handle_t ioh, int auxreg, int val) argument [all...] |
/openbsd-current/sys/dev/isa/ |
H A D | uha_isa.c | 79 bus_space_handle_t ioh; local 82 if (bus_space_map(iot, ia->ia_iobase, UHA_ISA_IOSIZE, 0, &ioh)) 85 rv = u14_find(iot, ioh, &sc); 87 bus_space_unmap(iot, ioh, UHA_ISA_IOSIZE); 111 bus_space_handle_t ioh; local 116 if (bus_space_map(iot, ia->ia_iobase, UHA_ISA_IOSIZE, 0, &ioh)) 120 sc->sc_ioh = ioh; 121 if (!u14_find(iot, ioh, sc)) 147 u14_find(bus_space_tag_t iot, bus_space_handle_t ioh, struct uha_softc *sc) argument 153 model = (bus_space_read_1(iot, ioh, U14_I 236 bus_space_handle_t ioh = sc->sc_ioh; local 267 bus_space_handle_t ioh = sc->sc_ioh; local 292 bus_space_handle_t ioh = sc->sc_ioh; local 340 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
H A D | mpu401.c | 61 #define MPU_GETSTATUS(iot, ioh) (bus_space_read_1(iot, ioh, MPU_STATUS)) 85 if (MPU_GETSTATUS(sc->iot, sc->ioh) == 0xff) { 103 if (!(MPU_GETSTATUS(sc->iot, sc->ioh) & MPU_OUTPUT_BUSY)) 114 bus_space_handle_t ioh = sc->ioh; local 122 bus_space_write_1(iot, ioh, MPU_COMMAND, MPU_RESET); 124 if (!(MPU_GETSTATUS(iot, ioh) & MPU_INPUT_EMPTY) && 125 bus_space_read_1(iot, ioh, MPU_DATA) == MPU_ACK) { 148 bus_space_write_1(sc->iot, sc->ioh, MPU_COMMAN 171 bus_space_handle_t ioh = sc->ioh; local [all...] |
H A D | lm78_isa.c | 72 bus_space_handle_t ioh; local 79 if (bus_space_map(iot, iobase, 8, 0, &ioh)) { 85 bus_space_write_1(iot, ioh, LMC_ADDR, WB_BANKSEL); 86 banksel = bus_space_read_1(iot, ioh, LMC_DATA); 87 bus_space_write_1(iot, ioh, LMC_ADDR, WB_BANKSEL); 88 bus_space_write_1(iot, ioh, LMC_DATA, WB_BANKSEL_HBAC); 89 bus_space_write_1(iot, ioh, LMC_ADDR, WB_VENDID); 90 vendid = bus_space_read_1(iot, ioh, LMC_DATA) << 8; 91 bus_space_write_1(iot, ioh, LMC_ADDR, WB_BANKSEL); 92 bus_space_write_1(iot, ioh, LMC_DAT 119 bus_space_handle_t ioh; local [all...] |
H A D | mpu_isa.c | 58 #define MPU_GETSTATUS(iot, ioh) (bus_space_read_1(iot, ioh, MPU_STATUS)) 73 bus_space_handle_t ioh; local 77 if (bus_space_map(iot, iobase, MPU401_NPORT, 0, &ioh)) { 89 if (MPU_GETSTATUS(iot, ioh) == 0xff) 93 if (!(MPU_GETSTATUS(iot, ioh) & MPU_OUTPUT_BUSY)) { 101 bus_space_write_1(iot, ioh, MPU_COMMAND, MPU_RESET); 104 if (!(MPU_GETSTATUS(iot, ioh) & MPU_INPUT_EMPTY) && 105 bus_space_read_1(iot, ioh, MPU_DATA) == MPU_ACK) { 111 bus_space_unmap(iot, ioh, MPU401_NPOR [all...] |
H A D | com_isa.c | 86 bus_space_handle_t ioh; local 97 if (bus_space_map(iot, iobase, COM_NPORTS, 0, &ioh)) 100 rv = comprobe1(iot, ioh); 102 bus_space_unmap(iot, ioh, COM_NPORTS); 118 bus_space_handle_t ioh; local 129 if (bus_space_map(iot, iobase, COM_NPORTS, 0, &ioh)) 132 ioh = comconsioh; 136 sc->sc_ioh = ioh;
|
H A D | elink.c | 68 elink_reset(bus_space_tag_t iot, bus_space_handle_t ioh, int bus) argument 94 bus_space_write_1(iot, ioh, 0, ELINK_RESET); 97 bus_space_write_1(iot, ioh, 0, 0x00); 98 bus_space_write_1(iot, ioh, 0, 0x00); 108 elink_idseq(bus_space_tag_t iot, bus_space_handle_t ioh, u_char p) argument 115 bus_space_write_1(iot, ioh, 0, c);
|
H A D | if_le_isa.c | 114 bus_space_handle_t ioh = lesc->sc_ioh; local 124 if (bus_space_map(iot, ia->ia_iobase, iosize, 0, &ioh)) 127 lesc->sc_ioh = ioh; 133 bus_space_unmap(iot, ioh, iosize); 137 bus_space_write_1(iot, ioh, DEPCA_CSR, DEPCA_CSR_DUM); 154 if (bus_space_read_1(iot, ioh, port) == 0xff && 155 bus_space_read_1(iot, ioh, port) == 0x00 && 156 bus_space_read_1(iot, ioh, port) == 0x55 && 157 bus_space_read_1(iot, ioh, port) == 0xaa && 158 bus_space_read_1(iot, ioh, por 216 bus_space_handle_t ioh = lesc->sc_ioh; local 248 bus_space_handle_t ioh; local 303 bus_space_handle_t ioh; local [all...] |
H A D | aic_isa.c | 95 bus_space_handle_t ioh; local 98 if (bus_space_map(iot, ia->ia_iobase, AIC_NPORTS, 0, &ioh)) 102 rv = aic_find(iot, ioh); 104 bus_space_unmap(iot, ioh, AIC_NPORTS); 121 bus_space_handle_t ioh; local 124 if (bus_space_map(iot, ia->ia_iobase, AIC_NPORTS, 0, &ioh)) 128 sc->sc_ioh = ioh;
|
H A D | if_sm_isa.c | 86 bus_space_handle_t ioh; local 98 if (bus_space_map(iot, ia->ia_iobase, SMC_IOSIZE, 0, &ioh)) 102 tmp = bus_space_read_2(iot, ioh, BANK_SELECT_REG_W); 110 bus_space_write_2(iot, ioh, BANK_SELECT_REG_W, 0); 111 tmp = bus_space_read_2(iot, ioh, BANK_SELECT_REG_W); 119 bus_space_write_2(iot, ioh, BANK_SELECT_REG_W, 1); 120 tmp = bus_space_read_2(iot, ioh, BASE_ADDR_REG_W); 128 bus_space_write_2(iot, ioh, BANK_SELECT_REG_W, 3); 129 tmp = bus_space_read_2(iot, ioh, REVISION_REG_W); 140 bus_space_unmap(iot, ioh, SMC_IOSIZ 151 bus_space_handle_t ioh; local [all...] |
/openbsd-current/sys/arch/luna88k/cbus/ |
H A D | nec86hw.c | 130 bus_space_handle_t ioh = sc->sc_ioh; local 156 data = bus_space_read_1(iot, ioh, NEC86_CTRL); 160 bus_space_write_1(iot, ioh, NEC86_CTRL, data); 617 bus_space_handle_t ioh = sc->sc_ioh; local 623 bus_space_write_1(iot, ioh, NEC86_VOLUME, 0x0d1); 627 bus_space_write_1(iot, ioh, NEC86_VOLUME, 0x0d0); 697 bus_space_handle_t ioh = sc->sc_ioh; local 700 data = bus_space_read_1(iot, ioh, NEC86_FIFOCTL); 702 bus_space_write_1(iot, ioh, NEC86_FIFOCTL, data); 709 bus_space_handle_t ioh local 724 bus_space_handle_t ioh = sc->sc_ioh; local 738 bus_space_handle_t ioh = sc->sc_ioh; local 751 bus_space_handle_t ioh = sc->sc_ioh; local 764 bus_space_handle_t ioh = sc->sc_ioh; local 776 bus_space_handle_t ioh = sc->sc_ioh; local 788 bus_space_handle_t ioh = sc->sc_ioh; local 800 bus_space_handle_t ioh = sc->sc_ioh; local 814 bus_space_handle_t ioh = sc->sc_ioh; local 828 bus_space_handle_t ioh = sc->sc_ioh; local 852 bus_space_handle_t ioh = sc->sc_ioh; local 866 bus_space_handle_t ioh = sc->sc_ioh; local 924 bus_space_handle_t ioh = sc->sc_ioh; local 944 bus_space_handle_t ioh = sc->sc_ioh; local 971 bus_space_handle_t ioh = sc->sc_ioh; local 989 bus_space_handle_t ioh = sc->sc_ioh; local 1026 bus_space_handle_t ioh = sc->sc_ioh; local 1074 bus_space_handle_t ioh = sc->sc_ioh; local 1160 bus_space_handle_t ioh = sc->sc_ioh; local 1180 bus_space_handle_t ioh = sc->sc_ioh; local 1212 bus_space_handle_t ioh = sc->sc_ioh; local 1228 bus_space_handle_t ioh = sc->sc_ioh; local 1258 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
/openbsd-current/sys/arch/armv7/marvell/ |
H A D | mvodog.c | 33 #define HREAD4(sc, ioh, reg) \ 34 (bus_space_read_4((sc)->sc_iot, (ioh), (reg))) 35 #define HWRITE4(sc, ioh, reg, val) \ 36 bus_space_write_4((sc)->sc_iot, (ioh), (reg), (val)) 37 #define HSET4(sc, ioh, reg, bits) \ 38 HWRITE4((sc), (ioh), (reg), HREAD4((sc), (ioh), (reg)) | (bits)) 39 #define HCLR4(sc, ioh, reg, bits) \ 40 HWRITE4((sc), (ioh), (reg), HREAD4((sc), (ioh), (re [all...] |
/openbsd-current/sys/arch/i386/isa/ |
H A D | lms.c | 83 bus_space_handle_t ioh; local 91 if (bus_space_map(iot, ia->ia_iobase, LMS_NPORTS, 0, &ioh)) 97 bus_space_write_1(iot, ioh, LMS_CONFIG, 0x91); 99 bus_space_write_1(iot, ioh, LMS_SIGN, 0x0c); 101 if (bus_space_read_1(iot, ioh, LMS_SIGN) != 0x0c) 103 bus_space_write_1(iot, ioh, LMS_SIGN, 0x50); 105 if (bus_space_read_1(iot, ioh, LMS_SIGN) != 0x50) 109 bus_space_write_1(iot, ioh, LMS_CNTRL, 0x10); 116 bus_space_unmap(iot, ioh, LMS_NPORTS); 126 bus_space_handle_t ioh; local 204 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
/openbsd-current/sys/dev/pci/ |
H A D | fmsradio.c | 167 r->tea.ioh = sc->sc_ioh; 206 radio->tea.ioh, radio->tea.offset), 215 sf256pcs_hw_read(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset) argument 225 bus_space_write_2(iot, ioh, offset, d | PCS_CLOCK_OFF); 231 bus_space_write_2(iot, ioh, offset, d | PCS_CLOCK_ON); 232 bus_space_write_2(iot, ioh, offset, d | PCS_CLOCK_OFF); 233 res |= bus_space_read_2(iot, ioh, offset) & 241 sf256pcs_write_bit(bus_space_tag_t iot, bus_space_handle_t ioh, argument 250 bus_space_write_2(iot, ioh, off, PCS_CLOCK_OFF | wren | data); 251 bus_space_write_2(iot, ioh, of 256 sf256pcs_init(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset, u_int32_t d) argument 267 sf256pcs_rset(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset, u_int32_t d) argument 301 sf256pcpr_hw_read(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset) argument 328 sf256pcpr_write_bit(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t off, int bit) argument 342 sf256pcpr_init(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset, u_int32_t d) argument 353 sf256pcpr_rset(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset, u_int32_t d) argument 387 sf64pcr_hw_read(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset) argument 429 sf64pcr_write_bit(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t off, int bit) argument 446 sf64pcr_init(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset, u_int32_t d) argument 457 sf64pcr_rset(bus_space_tag_t iot, bus_space_handle_t ioh, bus_size_t offset, u_int32_t d) argument [all...] |
/openbsd-current/sys/arch/luna88k/dev/ |
H A D | mb89352.c | 239 bus_space_handle_t ioh = sc->sc_ioh; local 245 bus_space_write_1(iot, ioh, SCTL, SCTL_DISABLE | SCTL_CTRLRST); 246 bus_space_write_1(iot, ioh, SCMD, 0); 247 bus_space_write_1(iot, ioh, TMOD, 0); 248 bus_space_write_1(iot, ioh, PCTL, 0); 249 bus_space_write_1(iot, ioh, TEMP, 0); 250 bus_space_write_1(iot, ioh, TCH, 0); 251 bus_space_write_1(iot, ioh, TCM, 0); 252 bus_space_write_1(iot, ioh, TCL, 0); 253 bus_space_write_1(iot, ioh, INT 270 bus_space_handle_t ioh = sc->sc_ioh; local 471 bus_space_handle_t ioh = sc->sc_ioh; local 497 bus_space_handle_t ioh = sc->sc_ioh; local 513 bus_space_handle_t ioh = sc->sc_ioh; local 535 bus_space_handle_t ioh = sc->sc_ioh; local 812 bus_space_handle_t ioh = sc->sc_ioh; local 1116 bus_space_handle_t ioh = sc->sc_ioh; local 1332 bus_space_handle_t ioh = sc->sc_ioh; local 1458 bus_space_handle_t ioh = sc->sc_ioh; local 1580 bus_space_handle_t ioh = sc->sc_ioh; local 2066 bus_space_handle_t ioh = sc->sc_ioh; local [all...] |
/openbsd-current/sys/dev/usb/ |
H A D | xhcivar.h | 88 bus_space_handle_t ioh; member in struct:xhci_softc 132 #define XREAD1(sc, a) bus_space_read_1((sc)->iot, (sc)->ioh, (a)) 133 #define XREAD2(sc, a) bus_space_read_2((sc)->iot, (sc)->ioh, (a)) 134 #define XREAD4(sc, a) bus_space_read_4((sc)->iot, (sc)->ioh, (a)) 135 #define XWRITE1(sc, a, x) bus_space_write_1((sc)->iot, (sc)->ioh, (a), (x)) 136 #define XWRITE2(sc, a, x) bus_space_write_2((sc)->iot, (sc)->ioh, (a), (x)) 137 #define XWRITE4(sc, a, x) bus_space_write_4((sc)->iot, (sc)->ioh, (a), (x)) 140 bus_space_read_4((sc)->iot, (sc)->ioh, (sc)->sc_oper_off + (a)) 142 bus_space_write_4((sc)->iot, (sc)->ioh, (sc)->sc_oper_off + (a), (x)) 145 bus_space_read_4((sc)->iot, (sc)->ioh, (s [all...] |