Home
last modified time | relevance | path

Searched refs:ioh (Results 1 – 25 of 492) sorted by relevance

12345678910>>...20

/netbsd/src/sys/dev/ic/
Digsfb_subr.c132 bus_space_handle_t ioh = dc->dc_ioh; in igsfb_init_seq() local
135 igs_seq_write(iot, ioh, IGS_SEQ_RESET, 0); in igsfb_init_seq()
137 igs_seq_write(iot, ioh, 1, 0x01); /* 8 dot clock */ in igsfb_init_seq()
138 igs_seq_write(iot, ioh, 2, 0x0f); /* enable all maps */ in igsfb_init_seq()
139 igs_seq_write(iot, ioh, 3, 0x00); /* character generator */ in igsfb_init_seq()
140 igs_seq_write(iot, ioh, 4, 0x0e); /* memory mode */ in igsfb_init_seq()
143 bus_space_write_1(iot, ioh, IGS_MISC_OUTPUT_W, 0xef); in igsfb_init_seq()
146 igs_seq_write(iot, ioh, IGS_SEQ_RESET, in igsfb_init_seq()
158 bus_space_handle_t ioh = dc->dc_ioh; in igsfb_init_crtc() local
160 igs_crtc_write(iot, ioh, 0x00, 0x5f); in igsfb_init_crtc()
[all …]
Dadvlib.c237 bus_space_handle_t ioh = sc->sc_ioh; 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()
333 bus_space_handle_t ioh = sc->sc_ioh; in AscInitFromEEP() local
[all …]
Dadwlib.c252 bus_space_handle_t ioh = sc->sc_ioh; 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);
543 bus_space_handle_t ioh = sc->sc_ioh; 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 …]
Dadvlib.h1241 #define ASC_GET_QDONE_IN_PROGRESS(iot, ioh) AscReadLramByte((iot), (ioh),… argument
1242 #define ASC_PUT_QDONE_IN_PROGRESS(iot, ioh, val) AscWriteLramByte((iot), (ioh), ASCV_Q_D… argument
1243 #define ASC_GET_VAR_FREE_QHEAD(iot, ioh) AscReadLramWord((iot), (ioh),… argument
1244 #define ASC_GET_VAR_DONE_QTAIL(iot, ioh) AscReadLramWord((iot), (ioh),… argument
1245 #define ASC_PUT_VAR_FREE_QHEAD(iot, ioh, val) AscWriteLramWord((iot), (ioh)… argument
1246 #define ASC_PUT_VAR_DONE_QTAIL(iot, ioh, val) AscWriteLramWord((iot), (ioh)… argument
1247 #define ASC_GET_RISC_VAR_FREE_QHEAD(iot, ioh) AscReadLramByte((iot), (ioh),… argument
1248 #define ASC_GET_RISC_VAR_DONE_QTAIL(iot, ioh) AscReadLramByte((iot), (ioh),… argument
1249 #define ASC_PUT_RISC_VAR_FREE_QHEAD(iot, ioh, val) AscWriteLramByte((iot), (ioh)… argument
1250 #define ASC_PUT_RISC_VAR_DONE_QTAIL(iot, ioh, val) AscWriteLramByte((iot), (ioh)… argument
[all …]
Dtms320av110.c120 bus_space_handle_t ioh; in tms320av110_attach_mi() local
123 ioh = sc->sc_ioh; 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 …]
Dmb89352.c213 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 …]
Dtms320av110var.h84 #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 …]
Daic6360.c191 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()
322 bus_space_handle_t ioh = sc->sc_ioh; in aic_reset() local
328 bus_space_write_1(iot, ioh, SCSITEST, 0); in aic_reset()
[all …]
Delink3.c263 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()
283 bus_space_handle_t ioh = sc->sc_ioh; 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()
321 bus_space_handle_t ioh = sc->sc_ioh; in epconfig() local
[all …]
Diha.c452 bus_space_handle_t ioh = sc->sc_ioh; in iha_set_ssig() local
455 currsigs = bus_space_read_1(iot, ioh, TUL_SSIGI); in iha_set_ssig()
456 bus_space_write_1(iot, ioh, TUL_SSIGO, (currsigs & ~offsigs) | onsigs); in iha_set_ssig()
466 bus_space_handle_t ioh; in iha_intr() local
472 ioh = sc->sc_ioh; in iha_intr()
474 if ((bus_space_read_1(iot, ioh, TUL_STAT0) & INTPD) == 0) in iha_intr()
481 bus_space_write_1(iot, ioh, TUL_IMSK, MASK_ALL); in iha_intr()
487 bus_space_write_1(iot, ioh, TUL_IMSK, (MASK_ALL & ~MSCMP)); in iha_intr()
499 bus_space_handle_t ioh = sc->sc_ioh; in iha_attach() local
549 bus_space_write_1(iot, ioh, TUL_IMSK, MASK_ALL); in iha_attach()
[all …]
/netbsd/src/sys/arch/arm/xscale/
Dpxa2x0_i2c.c115 bus_space_handle_t ioh = sc->sc_ioh; 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/
Dif_iy.c181 bus_space_handle_t ioh; in iyprobe() local
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()
267 bus_space_unmap(iot, ioh, 16); in iyprobe()
[all …]
Dcec.c147 bus_space_handle_t ioh; 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()
244 bus_space_handle_t ioh = sc->sc_ioh; 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 …]
Dif_el.c112 bus_space_handle_t ioh; 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()
200 bus_space_handle_t ioh; in elattach() local
212 if (bus_space_map(iot, ia->ia_io[0].ir_addr, 16, 0, &ioh)) { in elattach()
218 sc->sc_ioh = ioh; in elattach()
[all …]
Dif_eg.c153 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 …]
Duha_isa.c84 bus_space_handle_t ioh; in uha_isa_probe() local
102 if (bus_space_map(iot, ia->ia_io[0].ir_addr, UHA_ISA_IOSIZE, 0, &ioh)) in uha_isa_probe()
105 rv = u14_find(iot, ioh, &upd); in uha_isa_probe()
107 bus_space_unmap(iot, ioh, UHA_ISA_IOSIZE); in uha_isa_probe()
141 bus_space_handle_t ioh; in uha_isa_attach() local
149 if (bus_space_map(iot, ia->ia_io[0].ir_addr, UHA_ISA_IOSIZE, 0, &ioh)) { in uha_isa_attach()
155 sc->sc_ioh = ioh; in uha_isa_attach()
157 if (!u14_find(iot, ioh, &upd)) { in uha_isa_attach()
194 u14_find(bus_space_tag_t iot, bus_space_handle_t ioh, struct uha_probe_data *sc) in u14_find() argument
200 model = (bus_space_read_1(iot, ioh, U14_ID + 0) << 8) | in u14_find()
[all …]
/netbsd/src/sys/arch/hpcmips/vr/
Dflash_vrip.c69 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()
186 bus_space_handle_t ioh; in flash_probe() local
188 if (bus_space_map(va->va_iot, va->va_addr, va->va_size, 0, &ioh)) in flash_probe()
[all …]
/netbsd/src/sys/arch/shark/shark/
Di8042reg.h159 #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 …]
Dns87307reg.h203 #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 …]
Dns87307.c125 bus_space_handle_t ioh; in i87307KbdConfig() local
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/atari/vme/
Det4000.c172 bus_space_handle_t ioh; in et4k_probe_addresses() local
196 &ioh)) { 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()
228 bus_space_write_1(*iot, *ioh, *vgabase + 0x08, 0xa0); in et4k_start()
[all …]
/netbsd/src/sys/arch/sgimips/dev/
Dint.c61 static bus_space_handle_t ioh; variable
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()
182 bus_space_write_1(iot, ioh, INT2_LOCAL1_MASK, 0); in int_attach()
[all …]
/netbsd/src/sys/arch/sgimips/gio/
Dgrtwo.c65 bus_space_handle_t ioh; 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/
Duha_eisa.c92 bus_space_handle_t ioh; in uha_eisa_match() local
99 UHA_EISA_SLOT_OFFSET, UHA_EISA_IOSIZE, 0, &ioh)) 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()
120 bus_space_handle_t ioh; in uha_eisa_attach() local
133 UHA_EISA_SLOT_OFFSET, UHA_EISA_IOSIZE, 0, &ioh)) in uha_eisa_attach()
138 sc->sc_ioh = ioh; 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/dev/pci/
Dtrm.c411 bus_space_handle_t ioh; in trm_attach() local
437 &ioh, NULL, NULL); in trm_attach()
442 0, &iot, &ioh, NULL, NULL)) != 0) { in trm_attach()
451 sc->sc_ioh = ioh; in trm_attach()
515 bus_space_handle_t ioh = sc->sc_ioh; in trm_init() local
566 if (bus_space_read_1(iot, ioh, TRM_GEN_STATUS) & WIDESCSI) { in trm_init()
633 bus_space_write_1(iot, ioh, TRM_SCSI_CONFIG0, bval); in trm_init()
636 bus_space_write_1(iot, ioh, TRM_SCSI_CONFIG1, in trm_init()
640 bus_space_write_1(iot, ioh, TRM_SCSI_TIMEOUT, SEL_TIMEOUT); in trm_init()
643 bus_space_write_1(iot, ioh, TRM_DMA_INTEN, 0); in trm_init()
[all …]

12345678910>>...20