Home | History | Annotate | Download | only in dev

Lines Matching defs:wdr

72 	struct wdc_regs wdr;
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,
102 WDC_OBIO_AUXREG_SIZE, 0, &wdr.ctl_ioh)) {
106 result = wdcprobe(&wdr);
114 bus_space_unmap(wdr.ctl_iot, wdr.ctl_ioh, WDC_OBIO_AUXREG_SIZE);
116 bus_space_unmap(wdr.cmd_iot, wdr.cmd_baseioh, WDC_OBIO_REG_SIZE);
126 struct wdc_regs *wdr;
133 sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs;
135 wdr->cmd_iot = oa->oa_iot;
136 wdr->ctl_iot = oa->oa_iot;
137 if (bus_space_map(wdr->cmd_iot, oa->oa_io[0].or_addr,
138 WDC_OBIO_REG_SIZE, 0, &wdr->cmd_baseioh)
139 || bus_space_map(wdr->ctl_iot,
141 WDC_OBIO_AUXREG_SIZE, 0, &wdr->ctl_ioh)) {
147 if (bus_space_subregion(wdr->cmd_iot,
148 wdr->cmd_baseioh, i * 2, (i == 0) ? 2 : 1,
149 &wdr->cmd_iohs[i]) != 0) {
169 wdc_init_shadow_regs(wdr);