Home | History | Annotate | Download | only in dev

Lines Matching refs:wdr

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,
163 wdr->cmd_iot = wdr->ctl_iot = ea->ea_st;
172 if (bus_space_map(wdr->cmd_iot, ea->ea_addr, WDC_OBIO_CF_WINSIZE, 0,
173 &wdr->cmd_baseioh)) {
179 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
181 &wdr->cmd_iohs[i]) != 0) {
188 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
190 &wdr->cmd_iohs[wd_data]) != 0) {
195 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh,
196 WDC_OBIO_AUXREG_OFFSET, 1, &wdr->ctl_ioh)) {
202 wdc_init_shadow_regs(wdr);
206 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, WDC_OBIO_CF_WINSIZE);
217 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
220 wdr->cmd_iot, wdr->cmd_iohs[wd_data], 0, bf, len);
226 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(chp);
229 wdr->cmd_iot, wdr->cmd_iohs[wd_data], 0, bf, len);
236 struct wdc_regs wdr;
258 if (wdc_extio_map(ea, &wdr, &gpio, &pm) == -1)
261 result = wdcprobe(&wdr);
263 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_OBIO_CF_WINSIZE);
275 struct wdc_regs *wdr;
284 sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs;
287 if (wdc_extio_map(ea, wdr, &sc->sc_gpio, &sc->sc_pinmap) == -1)