Home
last modified time | relevance | path

Searched refs:cmd_iot (Results 1 – 25 of 44) sorted by relevance

12

/netbsd-src/sys/dev/ic/
H A Dwdc.c224 bus_space_write_1(wdr->cmd_iot, in wdc_sataprobe()
227 st = bus_space_read_1(wdr->cmd_iot, in wdc_sataprobe()
236 sc = bus_space_read_1(wdr->cmd_iot, in wdc_sataprobe()
238 sn = bus_space_read_1(wdr->cmd_iot, in wdc_sataprobe()
240 cl = bus_space_read_1(wdr->cmd_iot, in wdc_sataprobe()
242 ch = bus_space_read_1(wdr->cmd_iot, in wdc_sataprobe()
324 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], in wdc_drvprobe()
327 st1 = bus_space_read_1(wdr->cmd_iot, in wdc_drvprobe()
333 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], in wdc_drvprobe()
336 st0 = bus_space_read_1(wdr->cmd_iot, in wdc_drvprobe()
[all …]
/netbsd-src/sys/arch/atari/dev/
H A Dwdc_mb.c97 wdr.cmd_iot = wdr.ctl_iot = mb_alloc_bus_space_tag(); in wdc_mb_probe()
98 if (wdr.cmd_iot == NULL) in wdc_mb_probe()
100 wdr.cmd_iot->stride = 0; in wdc_mb_probe()
101 wdr.cmd_iot->wo_1 = 1; in wdc_mb_probe()
103 if (bus_space_map(wdr.cmd_iot, FALCON_WD_BASE, FALCON_WD_LEN, 0, in wdc_mb_probe()
107 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, in wdc_mb_probe()
113 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, FALCON_WD_AUX, 4, in wdc_mb_probe()
134 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, FALCON_WD_LEN); in wdc_mb_probe()
136 mb_free_bus_space_tag(wdr.cmd_iot); in wdc_mb_probe()
154 wdr->cmd_iot = wdr->ctl_iot = in wdc_mb_attach()
[all …]
/netbsd-src/sys/dev/pci/
H A Dpciide_opti_reg.h116 (void) bus_space_read_2(wdr->cmd_iot, wdr->cmd_iohs[wd_features], 0); in opti_read_config()
117 (void) bus_space_read_2(wdr->cmd_iot, wdr->cmd_iohs[wd_features], 0); in opti_read_config()
120 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_seccnt], 0, 0x03u); in opti_read_config()
123 rv = bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[reg], 0); in opti_read_config()
126 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_seccnt], 0, 0x83u); in opti_read_config()
140 (void) bus_space_read_2(wdr->cmd_iot, wdr->cmd_iohs[wd_features], 0); in opti_write_config()
141 (void) bus_space_read_2(wdr->cmd_iot, wdr->cmd_iohs[wd_features], 0); in opti_write_config()
144 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_seccnt], 0, 0x03u); in opti_write_config()
147 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[reg], 0, val); in opti_write_config()
150 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_seccnt], 0, 0x83u); in opti_write_config()
H A Dpciide_common.c194 bus_space_unmap(wdr->cmd_iot, in pciide_common_detach()
294 wdr->cmd_iot = pa->pa_iot; in pciide_mapregs_compat()
295 if (bus_space_map(wdr->cmd_iot, PCIIDE_COMPAT_CMD_BASE(compatchan), in pciide_mapregs_compat()
308 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, wdr->cmd_ios); in pciide_mapregs_compat()
314 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, i, in pciide_mapregs_compat()
323 wdr->data32iot = wdr->cmd_iot; in pciide_mapregs_compat()
372 &wdr->cmd_iot, &wdr->cmd_baseioh, NULL, &wdr->cmd_ios) != 0) { in pciide_mapregs_native()
383 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, wdr->cmd_ios); in pciide_mapregs_native()
395 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, wdr->cmd_ios); in pciide_mapregs_native()
396 bus_space_unmap(wdr->cmd_iot, cp->ctl_baseioh, cp->ctl_ios); in pciide_mapregs_native()
[all …]
/netbsd-src/sys/arch/mac68k/obio/
H A Dwdc_obio.c101 wdr->cmd_iot = wdr->ctl_iot = oa->oa_tag; in wdc_obio_match()
103 if (bus_space_map(wdr->cmd_iot, IDEBase, WDC_OBIO_REG_NPORTS, in wdc_obio_match()
107 mac68k_bus_space_handle_swapped(wdr->cmd_iot, in wdc_obio_match()
111 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_match()
117 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_match()
125 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_match()
146 wdr->cmd_iot = wdr->ctl_iot = oa->oa_tag; in wdc_obio_attach()
148 if (bus_space_map(wdr->cmd_iot, oa->oa_addr, WDC_OBIO_REG_NPORTS, 0, in wdc_obio_attach()
154 mac68k_bus_space_handle_swapped(wdr->cmd_iot, &wdr->cmd_baseioh); in wdc_obio_attach()
157 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_attach()
[all …]
/netbsd-src/sys/arch/amiga/dev/
H A Dwdc_amiga.c60 struct bus_space_tag cmd_iot; member
96 sc->cmd_iot.base = (bus_addr_t) ztwomap(GAYLE_IDE_BASE_A4000 + 2); in wdc_amiga_attach()
99 sc->cmd_iot.base = (bus_addr_t) ztwomap(GAYLE_IDE_BASE + 2); in wdc_amiga_attach()
103 sc->cmd_iot.absm = sc->ctl_iot.absm = &amiga_bus_stride_4swap; in wdc_amiga_attach()
104 wdr->cmd_iot = &sc->cmd_iot; in wdc_amiga_attach()
107 if (bus_space_map(wdr->cmd_iot, 0, 0x40, 0, in wdc_amiga_attach()
114 if (bus_space_subregion(wdr->cmd_iot, in wdc_amiga_attach()
118 bus_space_unmap(wdr->cmd_iot, in wdc_amiga_attach()
125 if (bus_space_subregion(wdr->cmd_iot, in wdc_amiga_attach()
H A Dwdc_acafh.c81 struct bus_space_tag cmd_iot; member
117 sc->cmd_iot.base = (u_long) ztwomap(GAYLE_IDE_BASE + 2); in wdc_acafh_attach()
118 sc->cmd_iot.absm = &amiga_bus_stride_4swap; in wdc_acafh_attach()
177 wdr->cmd_iot = &sc->cmd_iot; in wdc_acafh_map_channel()
184 if (bus_space_map(wdr->cmd_iot, off, 0x40, 0, in wdc_acafh_map_channel()
191 if (bus_space_subregion(wdr->cmd_iot, in wdc_acafh_map_channel()
195 bus_space_unmap(wdr->cmd_iot, in wdc_acafh_map_channel()
H A Defa.c334 sc->sc_gayle_wdc_regs.cmd_iot = &gayle_cmd_iot; in efa_mapbase()
339 sc->sc_ports[i].wdr[j].cmd_iot = &fata_cmd_iot; in efa_mapbase()
357 if (bus_space_map(wdr->cmd_iot, 0, 0x40, 0, in efa_mapreg_gayle()
363 if (bus_space_subregion(wdr->cmd_iot, in efa_mapreg_gayle()
367 bus_space_unmap(wdr->cmd_iot, in efa_mapreg_gayle()
373 if (bus_space_subregion(wdr->cmd_iot, in efa_mapreg_gayle()
408 if (bus_space_map(wdr_fata->cmd_iot, in efa_mapreg_native()
433 bus_space_subregion(wdr_fata->cmd_iot, in efa_mapreg_native()
455 bus_space_subregion(wdr_fata->cmd_iot, in efa_fata_subregion_pio0()
466 bus_space_subregion(wdr_fata->cmd_iot, wdr_fata->cmd_baseioh, in efa_fata_subregion_pion()
[all …]
H A Dwdc_buddha.c145 wdr->cmd_iot = &sc->sc_iot; in wdc_buddha_attach()
146 if (bus_space_map(wdr->cmd_iot, 0x210+ch*0x80, 8, 0, in wdc_buddha_attach()
155 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, 8); in wdc_buddha_attach()
161 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_buddha_attach()
/netbsd-src/sys/arch/dreamcast/dev/g1/
H A Dwdc_g1.c81 wdr.cmd_iot = ga->ga_memt; in wdc_g1_probe()
82 if (bus_space_map(wdr.cmd_iot, WDC_G1_CMD_ADDR, in wdc_g1_probe()
87 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i * 4, in wdc_g1_probe()
103 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_G1_REG_NPORTS); in wdc_g1_probe()
119 wdr->cmd_iot = ga->ga_memt; in wdc_g1_attach()
121 if (bus_space_map(wdr->cmd_iot, WDC_G1_CMD_ADDR, in wdc_g1_attach()
130 if (bus_space_subregion(wdr->cmd_iot, in wdc_g1_attach()
183 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], 0, in wdc_g1_do_reset()
190 (void) bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[wd_error], 0); in wdc_g1_do_reset()
196 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], 0, in wdc_g1_do_reset()
[all …]
/netbsd-src/sys/arch/acorn32/mainbus/
H A Dwdc_pioc.c97 wdr.cmd_iot = pa->pa_iot; in wdc_pioc_probe()
100 if (bus_space_map(wdr.cmd_iot, iobase, WDC_PIOC_REG_NPORTS, 0, in wdc_pioc_probe()
104 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i, in wdc_pioc_probe()
106 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, in wdc_pioc_probe()
115 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, in wdc_pioc_probe()
123 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_PIOC_REG_NPORTS); in wdc_pioc_probe()
150 wdr->cmd_iot = pa->pa_iot; in wdc_pioc_attach()
152 if (bus_space_map(wdr->cmd_iot, iobase, in wdc_pioc_attach()
156 if (bus_space_subregion(wdr->cmd_iot, in wdc_pioc_attach()
/netbsd-src/sys/arch/mips/adm5120/dev/
H A Dwdc_extio.c130 (void) bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[wd_error], 0);
134 st0 = bus_space_read_1(wdr->cmd_iot,
163 wdr->cmd_iot = wdr->ctl_iot = ea->ea_st; in wdc_extio_map()
172 if (bus_space_map(wdr->cmd_iot, ea->ea_addr, WDC_OBIO_CF_WINSIZE, 0, in wdc_extio_map()
179 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_extio_map()
188 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_extio_map()
195 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_extio_map()
206 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, WDC_OBIO_CF_WINSIZE); in wdc_extio_map()
220 wdr->cmd_iot, wdr->cmd_iohs[wd_data], 0, bf, len); in wdc_extio_dataout()
229 wdr->cmd_iot, wdr->cmd_iohs[wd_data], 0, bf, len); in wdc_extio_datain()
[all …]
/netbsd-src/sys/arch/mmeye/dev/
H A Dwdc_mainbus.c84 wdr.cmd_iot = SH3_BUS_SPACE_PCMCIA_IO; in wdc_mainbus_match()
85 if (bus_space_map(wdr.cmd_iot, ma->ma_addr1, in wdc_mainbus_match()
90 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i, in wdc_mainbus_match()
115 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_MAINBUS_REG_NPORTS); in wdc_mainbus_match()
131 wdr->cmd_iot = SH3_BUS_SPACE_PCMCIA_IO; in wdc_mainbus_attach()
133 if (bus_space_map(wdr->cmd_iot, ma->ma_addr1, in wdc_mainbus_attach()
142 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, i, in wdc_mainbus_attach()
149 wdr->data32iot = wdr->cmd_iot; in wdc_mainbus_attach()
/netbsd-src/sys/arch/landisk/dev/
H A Dwdc_obio.c86 wdr.cmd_iot = oa->oa_iot; in wdc_obio_probe()
87 if (bus_space_map(wdr.cmd_iot, oa->oa_io[0].or_addr, in wdc_obio_probe()
92 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, in wdc_obio_probe()
116 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_OBIO_REG_SIZE); in wdc_obio_probe()
135 wdr->cmd_iot = oa->oa_iot; in wdc_obio_attach()
137 if (bus_space_map(wdr->cmd_iot, oa->oa_io[0].or_addr, in wdc_obio_attach()
147 if (bus_space_subregion(wdr->cmd_iot, in wdc_obio_attach()
/netbsd-src/sys/dev/isa/
H A Dwdc_isa.c105 wdr.cmd_iot = ia->ia_iot; in wdc_isa_probe()
107 if (bus_space_map(wdr.cmd_iot, ia->ia_io[0].ir_addr, in wdc_isa_probe()
112 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i, in wdc_isa_probe()
135 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_ISA_REG_NPORTS); in wdc_isa_probe()
153 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, WDC_ISA_REG_NPORTS); in wdc_isa_detach()
169 wdr->cmd_iot = ia->ia_iot; in wdc_isa_attach()
172 if (bus_space_map(wdr->cmd_iot, ia->ia_io[0].ir_addr, in wdc_isa_attach()
182 if (bus_space_subregion(wdr->cmd_iot, in wdc_isa_attach()
190 wdr->data32iot = wdr->cmd_iot; in wdc_isa_attach()
/netbsd-src/sys/arch/macppc/dev/
H A Dkauai.c169 wdr->cmd_iot = wdr->ctl_iot = pa->pa_memt; in kauai_attach()
171 if (bus_space_map(wdr->cmd_iot, regbase, WDC_REG_NPORTS << 4, 0, in kauai_attach()
173 bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in kauai_attach()
179 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, i << 4, in kauai_attach()
181 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in kauai_attach()
241 bus_space_write_4(wdr->cmd_iot, wdr->cmd_baseioh, in kauai_set_modes()
243 bus_space_write_4(wdr->cmd_iot, wdr->cmd_baseioh, in kauai_set_modes()
314 bus_space_write_4(wdr->cmd_iot, wdr->cmd_baseioh, DMA_CONFIG_REG, in kauai_dma_init()
316 bus_space_read_4(wdr->cmd_iot, wdr->cmd_baseioh, DMA_CONFIG_REG); in kauai_dma_init()
H A Dwdc_obio.c156 wdr->cmd_iot = wdr->ctl_iot = ca->ca_tag; in wdc_obio_attach()
158 if (bus_space_map(wdr->cmd_iot, ca->ca_baseaddr + ca->ca_reg[0], in wdc_obio_attach()
160 bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_attach()
167 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, i << 4, in wdc_obio_attach()
169 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_attach()
177 wdr->data32iot = wdr->cmd_iot; in wdc_obio_attach()
196 if (bus_space_map(wdr->cmd_iot, ca->ca_baseaddr + ca->ca_reg[2], in wdc_obio_attach()
205 sc->sc_dmareg = bus_space_vaddr(wdr->cmd_iot, sc->sc_dmaregh); in wdc_obio_attach()
306 bus_space_write_4(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_select()
454 bus_space_unmap(sc->sc_wdcdev.regs->cmd_iot, in wdc_obio_detach()
[all …]
/netbsd-src/sys/arch/acorn32/eb7500atx/
H A Drside.c200 wdr->cmd_iot = wdr->ctl_iot = &sc->sc_tag; in rside_attach()
201 if (bus_space_map(wdr->cmd_iot, in rside_attach()
210 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in rside_attach()
213 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in rside_attach()
223 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in rside_attach()
/netbsd-src/sys/arch/evbarm/tsarm/
H A Dwdc_ts.c79 wdr->cmd_iot = ta->ta_iot; in wdc_ts_attach()
81 if (bus_space_map(wdr->cmd_iot, 0x11000000, 8, 0, &wdr->cmd_baseioh) || in wdc_ts_attach()
88 if (bus_space_subregion(wdr->cmd_iot, in wdc_ts_attach()
96 if (bus_space_map(wdr->cmd_iot, 0x21000000, 2, 0, &wdr->cmd_iohs[0])) { in wdc_ts_attach()
/netbsd-src/sys/arch/prep/pnpbus/
H A Dwdc_pnpbus.c107 wdr->cmd_iot = pna->pna_iot; in wdc_pnpbus_attach()
112 if (pnpbus_io_map(&pna->pna_res, 0, &wdr->cmd_iot, &wdr->cmd_baseioh) || in wdc_pnpbus_attach()
118 if (bus_space_subregion(wdr->cmd_iot, in wdc_pnpbus_attach()
126 wdr->data32iot = wdr->cmd_iot; in wdc_pnpbus_attach()
/netbsd-src/sys/arch/evbppc/mpc85xx/
H A Dwdc_obio.c74 wdr->cmd_iot = bst; in wdc_obio_initregmap()
77 error = bus_space_map(wdr->cmd_iot, addr, size, 0, &wdr->cmd_baseioh); in wdc_obio_initregmap()
84 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_initregmap()
119 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, size); in wdc_obio_match()
/netbsd-src/sys/arch/acorn32/podulebus/
H A Dsimide.c259 wdr->cmd_iot = wdr->ctl_iot = &sc->sc_tag; in simide_attach()
261 if (bus_space_map(wdr->cmd_iot, iobase + in simide_attach()
266 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in simide_attach()
268 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in simide_attach()
276 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in simide_attach()
/netbsd-src/sys/arch/evbarm/iq31244/
H A Dwdc_obio.c82 wdr->cmd_iot = oba->oba_st; in wdc_obio_attach()
84 if (bus_space_map(wdr->cmd_iot, oba->oba_addr, IQ31244_CFLASH_SIZE, in wdc_obio_attach()
91 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_attach()
/netbsd-src/sys/arch/arm/gemini/
H A Dobio_wdc.c111 wdr->cmd_iot = obio->obio_iot; in wdc_obio_attach()
113 if (bus_space_map(wdr->cmd_iot, obio->obio_addr, GEMINI_MIDE_SIZE, in wdc_obio_attach()
120 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_obio_attach()
/netbsd-src/sys/dev/ofisa/
H A Dwdc_ofisa.c136 wdr->cmd_iot = (reg[0].type == OFISA_REG_TYPE_IO) ? aa->iot : aa->memt; in wdc_ofisa_attach()
138 if (bus_space_map(wdr->cmd_iot, reg[0].addr, 8, 0, &ioh) || in wdc_ofisa_attach()
147 if (bus_space_subregion(wdr->cmd_iot, ioh, n, in wdc_ofisa_attach()

12