Lines Matching defs:wdr
74 struct wdc_regs wdr;
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,
96 WDC_G1_AUXREG_NPORTS, 0, &wdr.ctl_ioh))
99 result = wdcprobe_with_reset(&wdr, wdc_g1_do_reset);
101 bus_space_unmap(wdr.ctl_iot, wdr.ctl_ioh, WDC_G1_AUXREG_NPORTS);
103 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_G1_REG_NPORTS);
112 struct wdc_regs *wdr;
117 sc->sc_wdcdev.regs = wdr = &sc->wdc_regs;
119 wdr->cmd_iot = ga->ga_memt;
120 wdr->ctl_iot = ga->ga_memt;
121 if (bus_space_map(wdr->cmd_iot, WDC_G1_CMD_ADDR,
122 WDC_G1_REG_NPORTS * 4, 0, &wdr->cmd_baseioh) ||
123 bus_space_map(wdr->ctl_iot, WDC_G1_CTL_ADDR,
124 WDC_G1_AUXREG_NPORTS, 0, &wdr->ctl_ioh)) {
130 if (bus_space_subregion(wdr->cmd_iot,
131 wdr->cmd_baseioh, i * 4, i == 0 ? 2 : 1,
132 &wdr->cmd_iohs[i]) != 0) {
149 wdc_init_shadow_regs(wdr);
176 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel];
183 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], 0,
187 bus_space_write_1(wdr->ctl_iot, wdr->ctl_ioh, wd_aux_ctlr,
190 (void) bus_space_read_1(wdr->cmd_iot, wdr->cmd_iohs[wd_error], 0);
191 bus_space_write_1(wdr->ctl_iot, wdr->ctl_ioh, wd_aux_ctlr,
196 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_sdh], 0,
198 bus_space_write_1(wdr->cmd_iot, wdr->cmd_iohs[wd_command], 0,