HomeSort by: relevance | last modified time | path
    Searched refs:wdr (Results 1 - 25 of 46) sorted by relevancy

1 2

  /src/sys/arch/acorn32/mainbus/
wdc_pioc.c 85 struct wdc_regs wdr; local in function:wdc_pioc_probe
97 wdr.cmd_iot = pa->pa_iot;
98 wdr.ctl_iot = pa->pa_iot;
100 if (bus_space_map(wdr.cmd_iot, iobase, WDC_PIOC_REG_NPORTS, 0,
101 &wdr.cmd_baseioh))
104 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i,
105 i == 0 ? 4 : 1, &wdr.cmd_iohs[i]) != 0) {
106 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh
140 struct wdc_regs *wdr; local in function:wdc_pioc_attach
    [all...]
  /src/sys/dev/pci/
pciide_opti_reg.h 111 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:opti_read_config
116 (void) bus_space_read_2(wdr->cmd_iot, wdr->cmd_iohs[wd_features], 0);
117 (void) bus_space_read_2(wdr->cmd_iot, wdr->cmd_iohs[wd_features], 0);
120 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_seccnt], 0, 0x03u);
123 rv = bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[reg], 0);
126 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_seccnt], 0, 0x83u)
136 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:opti_write_config
    [all...]
svwsata.c 248 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(wdc_cp); local in function:svwsata_mapchan
254 wdr->cmd_iot = sc->sc_ba5_st;
257 SVWSATA_TF8 - SVWSATA_TF0, &wdr->cmd_baseioh) != 0) {
263 wdr->ctl_iot = sc->sc_ba5_st;
271 wdr->ctl_ioh = cp->ctl_baseioh;
274 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
276 &wdr->cmd_iohs[i]) != 0) {
283 wdc_init_shadow_regs(wdr);
284 wdr->data32iot = wdr->cmd_iot
340 struct wdc_regs *wdr; local in function:svwsata_intr
    [all...]
  /src/sys/arch/landisk/dev/
wdc_obio.c 72 struct wdc_regs wdr; local in function:wdc_obio_probe
86 wdr.cmd_iot = oa->oa_iot;
87 if (bus_space_map(wdr.cmd_iot, oa->oa_io[0].or_addr,
88 WDC_OBIO_REG_SIZE, 0, &wdr.cmd_baseioh)) {
92 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh,
93 i * 2, (i == 0) ? 2 : 1, &wdr.cmd_iohs[i])) {
97 wdc_init_shadow_regs(&wdr);
99 wdr.ctl_iot = oa->oa_iot;
100 if (bus_space_map(wdr.ctl_iot
126 struct wdc_regs *wdr; local in function:wdc_obio_attach
    [all...]
  /src/sys/arch/dreamcast/dev/g1/
wdc_g1.c 74 struct wdc_regs wdr; local in function:wdc_g1_probe
81 wdr.cmd_iot = ga->ga_memt;
82 if (bus_space_map(wdr.cmd_iot, WDC_G1_CMD_ADDR,
83 WDC_G1_REG_NPORTS * 4, 0, &wdr.cmd_baseioh))
87 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i * 4,
88 i == 0 ? 2 : 1, &wdr.cmd_iohs[i]) != 0)
92 wdc_init_shadow_regs(&wdr);
94 wdr.ctl_iot = ga->ga_memt;
95 if (bus_space_map(wdr.ctl_iot, WDC_G1_CTL_ADDR
112 struct wdc_regs *wdr; local in function:wdc_g1_attach
176 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdc_g1_do_reset
    [all...]
  /src/sys/arch/mips/adm5120/dev/
wdc_extio.c 119 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel];
128 bus_space_write_1(wdr->ctl_iot, wdr->ctl_ioh, wd_aux_ctlr, WDCTL_RST);
130 (void) bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[wd_error], 0);
131 bus_space_write_1(wdr->ctl_iot, wdr->ctl_ioh, wd_aux_ctlr, 0);
134 st0 = bus_space_read_1(wdr->cmd_iot,
135 wdr->cmd_iohs[wd_status], 0);
157 wdc_extio_map(struct extio_attach_args *ea, struct wdc_regs *wdr,
217 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_extio_dataout
226 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_extio_datain
236 struct wdc_regs wdr; local in function:wdc_extio_match
275 struct wdc_regs *wdr; local in function:wdc_extio_attach
    [all...]
  /src/sys/arch/atari/dev/
wdc_mb.c 88 struct wdc_regs wdr; local in function:wdc_mb_probe
97 wdr.cmd_iot = wdr.ctl_iot = mb_alloc_bus_space_tag();
98 if (wdr.cmd_iot == NULL)
100 wdr.cmd_iot->stride = 0;
101 wdr.cmd_iot->wo_1 = 1;
103 if (bus_space_map(wdr.cmd_iot, FALCON_WD_BASE, FALCON_WD_LEN, 0,
104 &wdr.cmd_baseioh))
107 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh
147 struct wdc_regs *wdr; local in function:wdc_mb_attach
    [all...]
  /src/sys/arch/mac68k/obio/
wdc_obio.c 90 struct wdc_regs *wdr; local in function:wdc_obio_match
93 wdr = kmem_alloc(sizeof(*wdr), KM_SLEEP);
101 wdr->cmd_iot = wdr->ctl_iot = oa->oa_tag;
103 if (bus_space_map(wdr->cmd_iot, IDEBase, WDC_OBIO_REG_NPORTS,
104 0, &wdr->cmd_baseioh))
107 mac68k_bus_space_handle_swapped(wdr->cmd_iot,
108 &wdr->cmd_baseioh);
111 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh
137 struct wdc_regs *wdr; local in function:wdc_obio_attach
    [all...]
  /src/sys/arch/evbppc/mpc85xx/
wdc_obio.c 69 wdc_obio_initregmap(struct wdc_regs *wdr, bus_space_tag_t bst,
74 wdr->cmd_iot = bst;
75 wdr->ctl_iot = bst;
77 error = bus_space_map(wdr->cmd_iot, addr, size, 0, &wdr->cmd_baseioh);
79 wdr->cmd_baseioh = 0;
84 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
85 i, (i == 0) ? 2 : 1, &wdr->cmd_iohs[i])) {
90 if (bus_space_subregion(wdr->ctl_iot, wdr->cmd_baseioh
103 struct wdc_regs wdr; local in function:wdc_obio_match
129 struct wdc_regs * const wdr = &sc->wdc_regs; local in function:wdc_obio_attach
    [all...]
  /src/sys/arch/mmeye/dev/
wdc_mainbus.c 73 struct wdc_regs wdr; local in function:wdc_mainbus_match
84 wdr.cmd_iot = SH3_BUS_SPACE_PCMCIA_IO;
85 if (bus_space_map(wdr.cmd_iot, ma->ma_addr1,
86 WDC_MAINBUS_REG_NPORTS, 0, &wdr.cmd_baseioh) != 0)
90 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i,
91 i == 0 ? 4 : 1, &wdr.cmd_iohs[i]) != 0)
94 wdc_init_shadow_regs(&wdr);
96 wdr.ctl_iot = SH3_BUS_SPACE_PCMCIA_IO;
97 if (bus_space_map(wdr.ctl_iot, ma->ma_addr1 + WDC_MAINBUS_AUXREG_OFFSET
125 struct wdc_regs *wdr; local in function:wdc_mainbus_attach
    [all...]
  /src/sys/arch/evbarm/tsarm/
wdc_ts.c 73 struct wdc_regs *wdr; local in function:wdc_ts_attach
78 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
79 wdr->cmd_iot = ta->ta_iot;
80 wdr->ctl_iot = ta->ta_iot;
81 if (bus_space_map(wdr->cmd_iot, 0x11000000, 8, 0, &wdr->cmd_baseioh) ||
82 bus_space_map(wdr->ctl_iot, 0x10400006, 1, 0, &wdr->ctl_ioh)) {
88 if (bus_space_subregion(wdr->cmd_iot,
89 wdr->cmd_baseioh, i, 1, &wdr->cmd_iohs[i]) != 0)
    [all...]
  /src/sys/dev/ic/
wdc.c 181 wdc_init_shadow_regs(struct wdc_regs *wdr)
183 wdr->cmd_iohs[wd_status] = wdr->cmd_iohs[wd_command];
184 wdr->cmd_iohs[wd_features] = wdr->cmd_iohs[wd_error];
208 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_sataprobe
219 switch (sata_reset_interface(chp, wdr->sata_iot, wdr->sata_control,
220 wdr->sata_status, AT_WAIT)) {
224 bus_space_write_1(wdr->cmd_iot
298 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdc_drvprobe
525 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdcprobe1
887 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdcintr
1031 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdcreset
1068 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdc_do_reset
1101 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:__wdcwait_reset
1208 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:__wdcwait
1430 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:__wdccommand_start
1501 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:__wdccommand_intr
1628 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:__wdccommand_done
1759 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdccommand
1795 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdccommandext
1862 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; local in function:wdccommandshort
1898 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdcbit_bucket
1909 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_datain_pio
2001 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_dataout_pio
    [all...]
  /src/sys/arch/arm/gemini/
obio_wdc.c 87 struct wdc_regs *wdr; local in function:wdc_obio_attach
110 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
111 wdr->cmd_iot = obio->obio_iot;
112 wdr->ctl_iot = obio->obio_iot;
113 if (bus_space_map(wdr->cmd_iot, obio->obio_addr, GEMINI_MIDE_SIZE,
114 0, &wdr->cmd_baseioh)) {
120 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
121 GEMINI_MIDE_CMDBLK + i, 1, &wdr->cmd_iohs[i]) != 0) {
127 if (bus_space_subregion(wdr->ctl_iot, wdr->cmd_baseioh
    [all...]
  /src/sys/arch/evbarm/iq31244/
wdc_obio.c 76 struct wdc_regs *wdr; local in function:wdc_obio_attach
81 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
82 wdr->cmd_iot = oba->oba_st;
83 wdr->ctl_iot = oba->oba_st;
84 if (bus_space_map(wdr->cmd_iot, oba->oba_addr, IQ31244_CFLASH_SIZE,
85 0, &wdr->cmd_baseioh)) {
91 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
92 IQ31244_CFLASH_CMD_BASE + i, 1, &wdr->cmd_iohs[i]) != 0) {
98 if (bus_space_subregion(wdr->ctl_iot, wdr->cmd_baseioh
    [all...]
  /src/sys/dev/isa/
wdc_isa.c 87 struct wdc_regs wdr; local in function:wdc_isa_probe
105 wdr.cmd_iot = ia->ia_iot;
107 if (bus_space_map(wdr.cmd_iot, ia->ia_io[0].ir_addr,
108 WDC_ISA_REG_NPORTS, 0, &wdr.cmd_baseioh))
112 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, i,
113 i == 0 ? 4 : 1, &wdr.cmd_iohs[i]) != 0)
116 wdc_init_shadow_regs(&wdr);
118 wdr.ctl_iot = ia->ia_iot;
119 if (bus_space_map(wdr.ctl_iot, ia->ia_io[0].ir_addr
144 struct wdc_regs *wdr = &sc->wdc_regs; local in function:wdc_isa_detach
162 struct wdc_regs *wdr; local in function:wdc_isa_attach
    [all...]
  /src/sys/arch/acorn32/eb7500atx/
rside.c 167 struct wdc_regs *wdr; local in function:rside_attach
196 wdr = &sc->sc_wdc_regs[channel];
200 wdr->cmd_iot = wdr->ctl_iot = &sc->sc_tag;
201 if (bus_space_map(wdr->cmd_iot,
203 DRIVE_REGISTERS_SPACE, 0, &wdr->cmd_baseioh))
210 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
212 &wdr->cmd_iohs[i]) != 0) {
213 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh
    [all...]
  /src/sys/arch/prep/pnpbus/
wdc_pnpbus.c 100 struct wdc_regs *wdr; local in function:wdc_pnpbus_attach
105 sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs;
107 wdr->cmd_iot = pna->pna_iot;
108 wdr->ctl_iot = pna->pna_iot;
112 if (pnpbus_io_map(&pna->pna_res, 0, &wdr->cmd_iot, &wdr->cmd_baseioh) ||
113 pnpbus_io_map(&pna->pna_res, 1, &wdr->ctl_iot, &wdr->ctl_ioh)) {
118 if (bus_space_subregion(wdr->cmd_iot,
119 wdr->cmd_baseioh, i, i == 0 ? 4 : 1
    [all...]
  /src/sys/arch/amiga/dev/
wdc_amiga.c 85 struct wdc_regs *wdr; local in function:wdc_amiga_attach
91 sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs;
104 wdr->cmd_iot = &sc->cmd_iot;
105 wdr->ctl_iot = &sc->ctl_iot;
107 if (bus_space_map(wdr->cmd_iot, 0, 0x40, 0,
108 &wdr->cmd_baseioh)) {
114 if (bus_space_subregion(wdr->cmd_iot,
115 wdr->cmd_baseioh, i, i == 0 ? 4 : 1,
116 &wdr->cmd_iohs[i]) != 0) {
118 bus_space_unmap(wdr->cmd_iot
    [all...]
wdc_buddha.c 122 struct wdc_regs *wdr; local in function:wdc_buddha_attach
143 wdr = CHAN_TO_WDC_REGS(cp);
145 wdr->cmd_iot = &sc->sc_iot;
146 if (bus_space_map(wdr->cmd_iot, 0x210+ch*0x80, 8, 0,
147 &wdr->cmd_baseioh)) {
152 wdr->ctl_iot = &sc->sc_iot;
153 if (bus_space_map(wdr->ctl_iot, 0x250+ch*0x80, 2, 0,
154 &wdr->ctl_ioh)) {
155 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, 8)
    [all...]
  /src/sys/dev/podulebus/
hcide.c 82 struct wdc_regs *wdr; local in function:hcide_attach
98 wdr = &sc->sc_wdc_regs[i];
101 wdr->cmd_iot = pa->pa_mod_t;
102 wdr->ctl_iot = pa->pa_mod_t;
105 &wdr->cmd_baseioh);
107 bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
108 j, j == 0 ? 4 : 1, &wdr->cmd_iohs[j]);
109 wdc_init_shadow_regs(wdr);
112 &wdr->ctl_ioh)
    [all...]
  /src/sys/arch/macppc/dev/
kauai.c 110 struct wdc_regs *wdr; local in function:kauai_attach
167 sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs;
169 wdr->cmd_iot = wdr->ctl_iot = pa->pa_memt;
171 if (bus_space_map(wdr->cmd_iot, regbase, WDC_REG_NPORTS << 4, 0,
172 &wdr->cmd_baseioh) ||
173 bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
174 WDC_AUXREG_OFFSET << 4, 1, &wdr->ctl_ioh)) {
179 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, i << 4
225 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:kauai_set_modes
308 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:kauai_dma_init
    [all...]
  /src/sys/dev/pcmcia/
wdc_pcmcia.c 210 struct wdc_regs *wdr; local in function:wdc_pcmcia_attach
235 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
238 wdr->cmd_iot = cfe->memspace[0].handle.memt;
239 wdr->cmd_baseioh = cfe->memspace[0].handle.memh;
241 wdr->ctl_iot = cfe->memspace[0].handle.memt;
245 &wdr->ctl_ioh))
248 wdr->cmd_iot = cfe->iospace[0].handle.iot;
249 wdr->cmd_baseioh = cfe->iospace[0].handle.ioh;
252 wdr->ctl_iot = cfe->iospace[0].handle.iot;
256 &wdr->ctl_ioh)
404 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_pcmcia_datain_memory
425 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp); local in function:wdc_pcmcia_dataout_memory
    [all...]
  /src/sys/dev/ofisa/
wdc_ofisa.c 96 struct wdc_regs *wdr; local in function:wdc_ofisa_attach
111 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
136 wdr->cmd_iot = (reg[0].type == OFISA_REG_TYPE_IO) ? aa->iot : aa->memt;
137 wdr->ctl_iot = (reg[1].type == OFISA_REG_TYPE_IO) ? aa->iot : aa->memt;
138 if (bus_space_map(wdr->cmd_iot, reg[0].addr, 8, 0, &ioh) ||
139 bus_space_map(wdr->ctl_iot, reg[1].addr, 1, 0,
140 &wdr->ctl_ioh)) {
144 wdr->cmd_baseioh = ioh;
147 if (bus_space_subregion(wdr->cmd_iot, ioh, n,
148 n == 0 ? 4 : 1, &wdr->cmd_iohs[n]) != 0)
    [all...]
  /src/sys/dev/isapnp/
wdc_isapnp.c 90 struct wdc_regs *wdr; local in function:wdc_isapnp_attach
111 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
112 wdr->cmd_iot = ipa->ipa_iot;
113 wdr->ctl_iot = ipa->ipa_iot;
120 wdr->cmd_baseioh = ipa->ipa_io[0].h;
121 wdr->ctl_ioh = ipa->ipa_io[1].h;
123 wdr->cmd_baseioh = ipa->ipa_io[1].h;
124 wdr->ctl_ioh = ipa->ipa_io[0].h;
128 if (bus_space_subregion(wdr->cmd_iot,
129 wdr->cmd_baseioh, i, i == 0 ? 4 : 1
    [all...]
  /src/sys/arch/acorn32/podulebus/
rapide.c 198 struct wdc_regs *wdr; local in function:rapide_attach
256 wdr = &sc->sc_wdc_regs[channel];
260 wdr->cmd_iot = iot;
261 wdr->ctl_iot = iot;
262 wdr->data32iot = iot;
265 DRIVE_REGISTERS_SPACE, 0, &wdr->cmd_baseioh))
268 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
269 i, i == 0 ? 4 : 1, &wdr->cmd_iohs[i]) != 0) {
270 bus_space_unmap(iot, wdr->cmd_baseioh
    [all...]

Completed in 19 milliseconds

1 2