| /netbsd-src/sys/dev/ic/ |
| H A D | igsfb_subr.c | 75 igsfb_enable(bus_space_tag_t iot, bus_addr_t iobase, int ioflags) in igsfb_enable() argument 82 ret = bus_space_map(iot, iobase + IGS_VDO, 1, ioflags, &vdoh); in igsfb_enable() 88 ret = bus_space_map(iot, iobase + IGS_VSE, 1, ioflags, &vseh); in igsfb_enable() 94 ret = bus_space_map(iot, iobase + IGS_REG_BASE, IGS_REG_SIZE, ioflags, in igsfb_enable() 104 bus_space_write_1(iot, vdoh, 0, IGS_VDO_ENABLE | IGS_VDO_SETUP); in igsfb_enable() 105 bus_space_write_1(iot, vseh, 0, IGS_VSE_ENABLE); in igsfb_enable() 106 bus_space_write_1(iot, vdoh, 0, IGS_VDO_ENABLE); in igsfb_enable() 113 igs_ext_write(iot, regh, IGS_EXT_BIU_MISC_CTL, in igsfb_enable() 117 bus_space_unmap(iot, regh, IGS_REG_SIZE); in igsfb_enable() 118 out2: bus_space_unmap(iot, vseh, 1); in igsfb_enable() [all …]
|
| H A D | advlib.c | 236 bus_space_tag_t iot = sc->sc_iot; in AscInitASC_SOFTC() local 241 ASC_SET_CHIP_CONTROL(iot, ioh, ASC_CC_HALT); in AscInitASC_SOFTC() 242 ASC_SET_CHIP_STATUS(iot, ioh, 0); in AscInitASC_SOFTC() 288 ASC_SET_EXTRA_CONTROL(iot, ioh, in AscInitASC_SOFTC() 291 ASC_SET_EXTRA_CONTROL(iot, ioh, in AscInitASC_SOFTC() 306 ASC_SET_EXTRA_CONTROL(iot, ioh, in AscInitASC_SOFTC() 310 if (AscGetChipBusType(iot, ioh) == ASC_IS_ISAPNP) { in AscInitASC_SOFTC() 311 ASC_SET_CHIP_IFC(iot, ioh, ASC_IFC_INIT_DEFAULT); in AscInitASC_SOFTC() 315 sc->isa_dma_channel = AscGetIsaDmaChannel(iot, ioh); in AscInitASC_SOFTC() 332 bus_space_tag_t iot = sc->sc_iot; in AscInitFromEEP() local [all …]
|
| H A D | adwlib.c | 251 bus_space_tag_t iot = sc->sc_iot; local 269 if (AdwGetEEPROMConfig(iot, ioh, &eep_config) != eep_config.check_sum) { 320 ADW_WRITE_BYTE_REGISTER(iot, ioh, 322 if (ADW_READ_BYTE_REGISTER(iot, ioh, 344 AdwReadEEPWord(iot, ioh, ASC_EEP_DVC_CFG_END - j); 347 AdwSetEEPROMConfig(iot, ioh, &eep_config); 542 bus_space_tag_t iot = sc->sc_iot; local 565 ADW_READ_WORD_LRAM(iot, ioh, ADW_MC_BIOSMEM+(2*i), bios_mem[i]); 586 ADW_READ_WORD_LRAM(iot, ioh, 0x120, wdtr_able); 588 ADW_READ_WORD_LRAM(iot, ioh, ADW_MC_WDTR_ABLE, [all …]
|
| H A D | advlib.h | 1241 #define ASC_GET_QDONE_IN_PROGRESS(iot, ioh) AscReadLramByte((iot), (ioh), ASCV_Q_DONE_IN_PROGRESS… argument 1242 #define ASC_PUT_QDONE_IN_PROGRESS(iot, ioh, val) AscWriteLramByte((iot), (ioh), ASCV_Q_DONE_IN_PRO… argument 1243 #define ASC_GET_VAR_FREE_QHEAD(iot, ioh) AscReadLramWord((iot), (ioh), ASCV_FREE_Q_HEAD_W) argument 1244 #define ASC_GET_VAR_DONE_QTAIL(iot, ioh) AscReadLramWord((iot), (ioh), ASCV_DONE_Q_TAIL_W) argument 1245 #define ASC_PUT_VAR_FREE_QHEAD(iot, ioh, val) AscWriteLramWord((iot), (ioh), ASCV_FREE_Q_HEAD_W, … argument 1246 #define ASC_PUT_VAR_DONE_QTAIL(iot, ioh, val) AscWriteLramWord((iot), (ioh), ASCV_DONE_Q_TAIL_W, … argument 1247 #define ASC_GET_RISC_VAR_FREE_QHEAD(iot, ioh) AscReadLramByte((iot), (ioh), ASCV_NEXTRDY_B) argument 1248 #define ASC_GET_RISC_VAR_DONE_QTAIL(iot, ioh) AscReadLramByte((iot), (ioh), ASCV_DONENEXT_B) argument 1249 #define ASC_PUT_RISC_VAR_FREE_QHEAD(iot, ioh, val) AscWriteLramByte((iot), (ioh), ASCV_NEXTRDY_… argument 1250 #define ASC_PUT_RISC_VAR_DONE_QTAIL(iot, ioh, val) AscWriteLramByte((iot), (ioh), ASCV_DONENEXT… argument [all …]
|
| H A D | tms320av110.c | 119 bus_space_tag_t iot; in tms320av110_attach_mi() local 122 iot = sc->sc_iot; in tms320av110_attach_mi() 124 tav_write_byte(iot, ioh, TAV_RESET, 1); in tms320av110_attach_mi() 125 while (tav_read_byte(iot, ioh, TAV_RESET)) in tms320av110_attach_mi() 128 tav_write_byte(iot, ioh, TAV_PCM_ORD, sc->sc_pcm_ord); in tms320av110_attach_mi() 129 tav_write_byte(iot, ioh, TAV_PCM_18, sc->sc_pcm_18); in tms320av110_attach_mi() 130 tav_write_byte(iot, ioh, TAV_DIF, sc->sc_dif); in tms320av110_attach_mi() 131 tav_write_byte(iot, ioh, TAV_PCM_DIV, sc->sc_pcm_div); in tms320av110_attach_mi() 134 tav_read_byte(iot, ioh, TAV_VERSION), in tms320av110_attach_mi() 135 TAV_DRAM_SIZE(tav_read_byte(iot, ioh, TAV_DRAM_EXT))); in tms320av110_attach_mi() [all …]
|
| H A D | mb89352.c | 213 spc_find(bus_space_tag_t iot, bus_space_handle_t ioh, int bdid) in spc_find() argument 221 bus_space_write_1(iot, ioh, SCTL, SCTL_DISABLE | SCTL_CTRLRST); in spc_find() 222 bus_space_write_1(iot, ioh, SCMD, 0); in spc_find() 223 bus_space_write_1(iot, ioh, PCTL, 0); in spc_find() 224 bus_space_write_1(iot, ioh, TEMP, 0); in spc_find() 225 bus_space_write_1(iot, ioh, TCH, 0); in spc_find() 226 bus_space_write_1(iot, ioh, TCM, 0); in spc_find() 227 bus_space_write_1(iot, ioh, TCL, 0); in spc_find() 228 bus_space_write_1(iot, ioh, INTS, 0); in spc_find() 229 bus_space_write_1(iot, ioh, SCTL, in spc_find() [all …]
|
| H A D | tms320av110var.h | 84 #define tav_read_byte(ioh, iot, off) bus_space_read_1(ioh, iot, off) argument 86 #define tav_read_short(ioh, iot, off) ( \ argument 87 bus_space_read_1((ioh), (iot), (off)) | \ 88 bus_space_read_1((ioh), (iot), (off)+1) << 8) 90 #define tav_read_long(ioh, iot, off) ( \ argument 91 bus_space_read_1((ioh), (iot), (off)) | \ 92 bus_space_read_1((ioh), (iot), (off)+1) << 8 | \ 93 bus_space_read_1((ioh), (iot), (off)+2) << 16 | \ 94 bus_space_read_1((ioh), (iot), (off)+3)) 96 #define tav_read_time(ioh, iot, off) ( \ argument [all …]
|
| H A D | aic6360.c | 191 aic_find(bus_space_tag_t iot, bus_space_handle_t ioh) in aic_find() argument 197 bus_space_write_1(iot, ioh, DMACNTRL0, 0); in aic_find() 210 bus_space_write_1(iot, ioh, DMACNTRL1, 0); /* Reset stack pointer */ in aic_find() 212 bus_space_write_1(iot, ioh, STACK, i); in aic_find() 215 bus_space_write_1(iot, ioh, DMACNTRL1, 0); in aic_find() 216 for (i = 0; i < STSIZE && bus_space_read_1(iot, ioh, STACK) == i; i++) in aic_find() 227 bus_space_read_multi_1(iot, ioh, ID, chip_id, sizeof(IDSTRING) - 1); in aic_find() 230 (int)bus_space_read_1(iot, ioh, REV))); in aic_find() 321 bus_space_tag_t iot = sc->sc_iot; in aic_reset() local 328 bus_space_write_1(iot, ioh, SCSITEST, 0); in aic_reset() [all …]
|
| H A D | elink3.c | 263 ep_finish_reset(bus_space_tag_t iot, bus_space_handle_t ioh) in ep_finish_reset() argument 268 if ((bus_space_read_2(iot, ioh, ELINK_STATUS) & in ep_finish_reset() 282 bus_space_tag_t iot = sc->sc_iot; in ep_reset_cmd() local 285 bus_space_write_2(iot, ioh, cmd, arg); in ep_reset_cmd() 286 ep_finish_reset(iot, ioh); in ep_reset_cmd() 291 ep_discard_rxtop(bus_space_tag_t iot, bus_space_handle_t ioh) in ep_discard_rxtop() argument 295 bus_space_write_2(iot, ioh, ELINK_COMMAND, RX_DISCARD_TOP_PACK); in ep_discard_rxtop() 304 if ((bus_space_read_2(iot, ioh, ELINK_STATUS) & in ep_discard_rxtop() 310 ep_finish_reset(iot, ioh); in ep_discard_rxtop() 320 bus_space_tag_t iot = sc->sc_iot; in epconfig() local [all …]
|
| /netbsd-src/sys/arch/arm/xscale/ |
| H A D | pxa2x0_i2c.c | 114 bus_space_tag_t iot = sc->sc_iot; in pxa2x0_i2c_read() local 121 bus_space_write_4(iot, ioh, I2C_ICR, ICR_UR); in pxa2x0_i2c_read() 122 bus_space_write_4(iot, ioh, I2C_ISAR, sc->sc_isar); in pxa2x0_i2c_read() 123 bus_space_write_4(iot, ioh, I2C_ISR, ISR_ITE | ISR_IRF); in pxa2x0_i2c_read() 125 bus_space_write_4(iot, ioh, I2C_ICR, ICR_IUE | ICR_SCLE); in pxa2x0_i2c_read() 128 bus_space_write_4(iot, ioh, I2C_IDBR, (slave<<1) | 0x1); in pxa2x0_i2c_read() 129 rv = bus_space_read_4(iot, ioh, I2C_ICR); in pxa2x0_i2c_read() 130 bus_space_write_4(iot, ioh, I2C_ICR, rv | ICR_START); in pxa2x0_i2c_read() 131 rv = bus_space_read_4(iot, ioh, I2C_ICR); in pxa2x0_i2c_read() 132 bus_space_write_4(iot, ioh, I2C_ICR, rv & ~ICR_STOP); in pxa2x0_i2c_read() [all …]
|
| /netbsd-src/sys/dev/isa/ |
| H A D | if_iy.c | 180 bus_space_tag_t iot; in iyprobe() local 193 iot = ia->ia_iot; in iyprobe() 198 if (bus_space_map(iot, ia->ia_io[0].ir_addr, 16, 0, &ioh)) in iyprobe() 203 c = bus_space_read_1(iot, ioh, ID_REG); in iyprobe() 207 d = bus_space_read_1(iot, ioh, ID_REG); in iyprobe() 214 d = bus_space_read_1(iot, ioh, ID_REG); in iyprobe() 221 d = bus_space_read_1(iot, ioh, ID_REG); in iyprobe() 228 d = bus_space_read_1(iot, ioh, ID_REG); in iyprobe() 239 if (eepromreadall(iot, ioh, eaddr, 8)) in iyprobe() 255 bus_space_write_1(iot, ioh, COMMAND_REG, RESET_CMD); in iyprobe() [all …]
|
| H A D | cec.c | 146 bus_space_tag_t iot = ia->ia_iot; in cecprobe() local 167 if (bus_space_map(iot, ia->ia_io[0].ir_addr, CEC_IOSIZE, 0, &ioh)) in cecprobe() 175 bus_space_unmap(iot, ioh, CEC_IOSIZE); in cecprobe() 243 bus_space_tag_t iot = sc->sc_iot; in cecintr() local 247 stat1 = bus_space_read_1(iot, ioh, NEC7210_ISR1); in cecintr() 248 stat2 = bus_space_read_1(iot, ioh, NEC7210_ISR2); in cecintr() 258 bus_space_write_1(iot, ioh, NEC7210_IMR1, 0); in cecintr() 259 bus_space_write_1(iot, ioh, NEC7210_IMR2, 0); in cecintr() 260 bus_space_write_1(iot, ioh, NEC7210_AUXMR, AUXCMD_TCA); in cecintr() 270 bus_space_write_1(iot, ioh, NEC7210_IMR2, 0); in cecintr() [all …]
|
| H A D | if_el.c | 111 bus_space_tag_t iot = ia->ia_iot; in elprobe() local 140 if (bus_space_map(iot, iobase, 16, 0, &ioh)) in elprobe() 151 bus_space_write_1(iot, ioh, EL_AC, EL_AC_RESET); in elprobe() 153 bus_space_write_1(iot, ioh, EL_AC, 0); in elprobe() 158 bus_space_write_1(iot, ioh, EL_GPBL, i); in elprobe() 159 station_addr[i] = bus_space_read_1(iot, ioh, EL_EAW); in elprobe() 185 bus_space_unmap(iot, ioh, 16); in elprobe() 199 bus_space_tag_t iot = ia->ia_iot; in elattach() local 212 if (bus_space_map(iot, ia->ia_io[0].ir_addr, 16, 0, &ioh)) { in elattach() 217 sc->sc_iot = iot; in elattach() [all …]
|
| H A D | gus.c | 559 #define SELECT_GUS_REG(iot,ioh1,x) bus_space_write_1(iot,ioh1,GUS_REG_SELECT,x) argument 739 gus_test_iobase (bus_space_tag_t iot, int iobase) in gus_test_iobase() argument 747 if (bus_space_map(iot, iobase, GUS_NPORT1, 0, &ioh1)) in gus_test_iobase() 749 if (bus_space_map(iot, iobase+GUS_IOH2_OFFSET, GUS_NPORT2, 0, &ioh2)) in gus_test_iobase() 754 if (bus_space_map(iot, iobase+GUS_IOH3_OFFSET, GUS_NPORT3, 0, &ioh3)) in gus_test_iobase() 757 if (bus_space_map(iot, iobase+GUS_IOH4_OFFSET, GUS_NPORT4, 0, &ioh4)) in gus_test_iobase() 766 SELECT_GUS_REG(iot, ioh2, GUSREG_RESET); in gus_test_iobase() 767 bus_space_write_1(iot, ioh2, GUS_DATA_HIGH, 0x00); in gus_test_iobase() 771 SELECT_GUS_REG(iot, ioh2, GUSREG_RESET); in gus_test_iobase() 772 bus_space_write_1(iot, ioh2, GUS_DATA_HIGH, GUSMASK_MASTER_RESET); in gus_test_iobase() [all …]
|
| H A D | if_eg.c | 153 egoutPCB(bus_space_tag_t iot, bus_space_handle_t ioh, uint8_t b) in egoutPCB() argument 158 if (bus_space_read_1(iot, ioh, EG_STATUS) & EG_STAT_HCRE) { in egoutPCB() 159 bus_space_write_1(iot, ioh, EG_COMMAND, b); in egoutPCB() 169 egreadPCBstat(bus_space_tag_t iot, bus_space_handle_t ioh, uint8_t statb) in egreadPCBstat() argument 174 if ((bus_space_read_1(iot, ioh, EG_STATUS) & in egreadPCBstat() 179 if ((bus_space_read_1(iot, ioh, EG_STATUS) & EG_PCB_STAT) == statb) in egreadPCBstat() 185 egreadPCBready(bus_space_tag_t iot, bus_space_handle_t ioh) in egreadPCBready() argument 190 if (bus_space_read_1(iot, ioh, EG_STATUS) & EG_STAT_ACRF) in egreadPCBready() 199 egwritePCB(bus_space_tag_t iot, bus_space_handle_t ioh, uint8_t *pcb) in egwritePCB() argument 204 bus_space_write_1(iot, ioh, EG_CONTROL, in egwritePCB() [all …]
|
| /netbsd-src/sys/arch/shark/shark/ |
| H A D | i8042reg.h | 159 #define I8042_MAP(iot, iobase, ioh) \ argument 160 (bus_space_map((iot), (iobase), I8042_NPORTS, 0, &(ioh))) 164 #define I8042_UNMAP(iot, ioh) \ argument 165 (bus_space_unmap((iot), (ioh), I8042_NPORTS)) 178 #define I8042_GETAUX_DATA(iot, ioh, status, value) \ argument 180 if (((status) = i8042_wait_input((iot), (ioh), I8042_AUX_DATA)) != 0) \ 182 (value) = bus_space_read_1(iot, ioh, KBOUTPO); \ 198 #define I8042_GETKBD_DATA(iot, ioh, status, value) \ argument 200 if (((status) = i8042_wait_input((iot), (ioh), I8042_KBD_DATA)) != 0) \ 202 (value) = bus_space_read_1(iot, ioh, KBOUTPO); \ [all …]
|
| H A D | ns87307reg.h | 203 #define NSIO_READ_REG( iot, ioh, reg, value ) \ argument 205 bus_space_write_1(iot, ioh, NSIO_OFFSET_INDEX, reg ); \ 206 value = bus_space_read_1( iot, ioh, NSIO_OFFSET_DATA ); \ 219 #define NSIO_WRITE_REG( iot, ioh, reg, value ) \ argument 221 bus_space_write_1(iot, ioh, NSIO_OFFSET_INDEX, reg ); \ 222 bus_space_write_1( iot, ioh, NSIO_OFFSET_DATA, value ); \ 234 #define NSIO_SELECT_DEV( iot, ioh, logDev ) \ argument 235 NSIO_WRITE_REG( iot, ioh, NSIO_CFG_LOGDEV, logDev ) 249 #define NSIO_CONFIG_IRQ( iot, ioh, irqNum, irqType ) \ argument 253 NSIO_WRITE_REG( iot, ioh, NSIO_CFG_IRQ, irqNum ); \ [all …]
|
| H A D | ns87307.c | 120 i87307KbdConfig(bus_space_tag_t iot, in i87307KbdConfig() argument 128 if (!(bus_space_map( iot, CONNSIOADDR, NSIO_NPORTS, 0 , &ioh ))) in i87307KbdConfig() 130 NSIO_SELECT_DEV( iot, ioh, NSIO_DEV_KBC ); in i87307KbdConfig() 131 NSIO_DEACTIVATE_DEV( iot, ioh ); in i87307KbdConfig() 132 NSIO_CONFIG_IRQ( iot, ioh, irqNum, NSIO_IRQ_LEVEL | NSIO_IRQ_HIGH ); in i87307KbdConfig() 133 NSIO_CONFIG_KBCDATA( iot, ioh, kbdBase ); in i87307KbdConfig() 134 NSIO_CONFIG_KBCCMD(iot, ioh, kbdBase+4); in i87307KbdConfig() 135 NSIO_WRITE_REG( iot, ioh, NSIO_KBC_CFG, 0x80 ); in i87307KbdConfig() 136 NSIO_ACTIVATE_DEV( iot, ioh ); in i87307KbdConfig() 137 NSIO_CONFIG_KBCDEBUG( iot, ioh ); in i87307KbdConfig() [all …]
|
| /netbsd-src/sys/arch/hpcmips/vr/ |
| H A D | flash_vrip.c | 69 static int probe_cfi(bus_space_tag_t iot, bus_space_handle_t ioh); 149 probe_cfi(bus_space_tag_t iot, bus_space_handle_t ioh) in probe_cfi() argument 157 bus_space_write_2(iot, ioh, CFI_QUERY_OFFSET, CFI_READ_CFI_QUERY); in probe_cfi() 162 if (bus_space_read_2(iot, ioh, i) != *idstr) { in probe_cfi() 163 bus_space_write_2(iot, ioh, 0, FLASH_RESET); in probe_cfi() 170 cmdset0 = bus_space_read_2(iot, ioh, CFI_PRIM_COMM_REG0 << 1); in probe_cfi() 171 cmdset1 = bus_space_read_2(iot, ioh, CFI_PRIM_COMM_REG1 << 1); in probe_cfi() 174 bus_space_write_2(iot, ioh, 0, FLASH_RESET); in probe_cfi() 216 bus_space_tag_t iot = va->va_iot; in flash_attach() local 220 if (bus_space_map(iot, va->va_addr, va->va_size, 0, &ioh)) { in flash_attach() [all …]
|
| /netbsd-src/sys/arch/atari/vme/ |
| H A D | et4000.c | 170 bus_space_tag_t iot; in et4k_probe_addresses() local 175 iot = va->va_iot; in et4k_probe_addresses() 195 if (bus_space_map(iot, vat.va_iobase, vat.va_iosize, 0, in et4k_probe_addresses() 203 bus_space_unmap(iot, ioh, vat.va_iosize); in et4k_probe_addresses() 207 found = et4k_detect(&iot, &memt, &ioh, &memh, vat.va_msize); in et4k_probe_addresses() 208 bus_space_unmap(iot, ioh, vat.va_iosize); in et4k_probe_addresses() 219 et4k_start(bus_space_tag_t *iot, bus_space_handle_t *ioh, int *vgabase, u_char *saved) in et4k_start() argument 222 bus_space_write_1(*iot, *ioh, GREG_VIDEOSYSENABLE, 0x01); in et4k_start() 224 *vgabase = (bus_space_read_1(*iot, *ioh, GREG_MISC_OUTPUT_R) & 0x01) in et4k_start() 227 bus_space_write_1(*iot, *ioh, GREG_HERCULESCOMPAT, 0x03); in et4k_start() [all …]
|
| /netbsd-src/sys/arch/sgimips/dev/ |
| H A D | int.c | 62 static bus_space_tag_t iot; variable 146 iot = normal_memt; in int_attach() 151 bus_space_map(iot, address, 0x100, 0, &ioh); in int_attach() 156 bus_space_write_1(iot, ioh, INT1_LOCAL_MASK, 0); in int_attach() 159 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_attach() 161 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_attach() 163 bus_space_write_1(iot, ioh, INT1_TIMER_CONTROL, in int_attach() 167 bus_space_read_1(iot, ioh, INT1_TIMER_0_ACK); in int_attach() 168 bus_space_read_1(iot, ioh, INT1_TIMER_1_ACK); in int_attach() 181 bus_space_write_1(iot, ioh, INT2_LOCAL0_MASK, 0); in int_attach() [all …]
|
| /netbsd-src/sys/arch/sgimips/gio/ |
| H A D | grtwo.c | 64 bus_space_tag_t iot; member 250 grtwo_set_color(bus_space_tag_t iot, bus_space_handle_t ioh, int color) in grtwo_set_color() argument 252 bus_space_write_4(iot, ioh, GR2_FIFO_COLOR, color); in grtwo_set_color() 282 grtwo_set_color(dc->iot, dc->ioh, color); in grtwo_fill_rectangle() 289 bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_RECTI2D, x1); in grtwo_fill_rectangle() 290 bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_DATA, from_y); in grtwo_fill_rectangle() 291 bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_DATA, x2); in grtwo_fill_rectangle() 292 bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_DATA, from_y + remaining); in grtwo_fill_rectangle() 297 bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_RECTI2D, x1); in grtwo_fill_rectangle() 298 bus_space_write_4(dc->iot, dc->ioh, GR2_FIFO_DATA, from_y); in grtwo_fill_rectangle() [all …]
|
| /netbsd-src/sys/dev/eisa/ |
| H A D | uha_eisa.c | 91 bus_space_tag_t iot = ea->ea_iot; in uha_eisa_match() local 98 if (bus_space_map(iot, EISA_SLOT_ADDR(ea->ea_slot) + in uha_eisa_match() 102 rv = u24_find(iot, ioh, NULL); in uha_eisa_match() 104 bus_space_unmap(iot, ioh, UHA_EISA_IOSIZE); in uha_eisa_match() 118 bus_space_tag_t iot = ea->ea_iot; in uha_eisa_attach() local 132 if (bus_space_map(iot, EISA_SLOT_ADDR(ea->ea_slot) + in uha_eisa_attach() 137 sc->sc_iot = iot; in uha_eisa_attach() 140 if (!u24_find(iot, ioh, &upd)) in uha_eisa_attach() 171 u24_find(bus_space_tag_t iot, bus_space_handle_t ioh, in u24_find() argument 178 config0 = bus_space_read_1(iot, ioh, U24_CONFIG + 0); in u24_find() [all …]
|
| /netbsd-src/sys/arch/zaurus/dev/ |
| H A D | scoop_pcic.c | 104 bus_space_tag_t iot; in scoop_pcic_socket_setup() local 109 iot = sc->sc_iot; in scoop_pcic_socket_setup() 120 error = bus_space_map(iot, trunc_page(pa), round_page(size), in scoop_pcic_socket_setup() 128 bus_space_write_2(iot, scooph, SCOOP_IMR, in scoop_pcic_socket_setup() 132 bus_space_write_2(iot, scooph, SCOOP_MCR, 0x0100); in scoop_pcic_socket_setup() 133 bus_space_write_2(iot, scooph, SCOOP_CDR, 0x0000); in scoop_pcic_socket_setup() 134 bus_space_write_2(iot, scooph, SCOOP_CPR, 0x0000); in scoop_pcic_socket_setup() 135 bus_space_write_2(iot, scooph, SCOOP_IMR, 0x0000); in scoop_pcic_socket_setup() 136 bus_space_write_2(iot, scooph, SCOOP_IRM, 0x00ff); in scoop_pcic_socket_setup() 137 bus_space_write_2(iot, scooph, SCOOP_ISR, 0x0000); in scoop_pcic_socket_setup() [all …]
|
| /netbsd-src/sys/arch/arm/imx/ |
| H A D | imx51_ccm.c | 103 bus_space_tag_t iot = aa->aa_iot; in imxccm_attach() local 107 sc->sc_iot = iot; in imxccm_attach() 109 if (bus_space_map(iot, aa->aa_addr, CCMC_SIZE, 0, &sc->sc_ioh)) { in imxccm_attach() 115 if (bus_space_map(iot, DPLL_BASE(i), DPLL_SIZE, 0, in imxccm_attach() 150 bus_space_tag_t iot = ccm_softc->sc_iot; in imx51_get_clock() local 170 ccsr = bus_space_read_4(iot, ioh, CCMC_CCSR); in imx51_get_clock() 176 ccsr = bus_space_read_4(iot, ioh, CCMC_CCSR); in imx51_get_clock() 191 ccsr = bus_space_read_4(iot, ioh, CCMC_CCSR); in imx51_get_clock() 196 ccsr = bus_space_read_4(iot, ioh, CCMC_CCSR); in imx51_get_clock() 202 ccsr = bus_space_read_4(iot, ioh, CCMC_CCSR); in imx51_get_clock() [all …]
|