Lines Matching refs:wdr
88 struct wdc_regs wdr; in wdc_mb_probe() local
97 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()
104 &wdr.cmd_baseioh)) in wdc_mb_probe()
107 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, in wdc_mb_probe()
108 i * 4, 4, &wdr.cmd_iohs[i]) != 0) in wdc_mb_probe()
111 wdc_init_shadow_regs(&wdr); in wdc_mb_probe()
113 if (bus_space_subregion(wdr.cmd_iot, wdr.cmd_baseioh, FALCON_WD_AUX, 4, in wdc_mb_probe()
114 &wdr.ctl_ioh)) in wdc_mb_probe()
129 result = wdcprobe(&wdr); 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()
147 struct wdc_regs *wdr; in wdc_mb_attach() local
153 sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs; in wdc_mb_attach()
154 wdr->cmd_iot = wdr->ctl_iot = in wdc_mb_attach()
156 wdr->cmd_iot->stride = 0; in wdc_mb_attach()
157 wdr->cmd_iot->wo_1 = 1; in wdc_mb_attach()
158 wdr->cmd_iot->abs_rms_2 = read_multi_2_swap; in wdc_mb_attach()
159 wdr->cmd_iot->abs_wms_2 = write_multi_2_swap; in wdc_mb_attach()
160 if (bus_space_map(wdr->cmd_iot, FALCON_WD_BASE, FALCON_WD_LEN, 0, in wdc_mb_attach()
161 &wdr->cmd_baseioh)) { in wdc_mb_attach()
166 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_mb_attach()
167 i * 4, 4, &wdr->cmd_iohs[i]) != 0) { in wdc_mb_attach()
170 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, in wdc_mb_attach()
176 if (bus_space_subregion(wdr->cmd_iot, in wdc_mb_attach()
177 wdr->cmd_baseioh, FALCON_WD_AUX, 4, &wdr->ctl_ioh)) { in wdc_mb_attach()
178 bus_space_unmap(wdr->cmd_iot, wdr->cmd_baseioh, FALCON_WD_LEN); in wdc_mb_attach()
202 wdc_init_shadow_regs(wdr); in wdc_mb_attach()