/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...] |
dtide.c | 83 struct wdc_regs *wdr; local in function:dtide_attach 103 wdr = &sc->sc_wdc_regs[i]; 106 wdr->cmd_iot = bst; 107 wdr->ctl_iot = bst; 110 &wdr->cmd_baseioh); 112 bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, 113 j, j == 0 ? 4 : 1, &wdr->cmd_iohs[j]); 114 wdc_init_shadow_regs(wdr); 117 &wdr->ctl_ioh) [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/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/arch/i386/pnpbios/ |
pciide_pnpbios.c | 84 struct wdc_regs *wdr; local in function:pciide_pnpbios_attach 152 wdr = CHAN_TO_WDC_REGS(wdc_cp); 153 wdr->cmd_iot = compat_iot; 154 wdr->cmd_baseioh = cmd_baseioh; 157 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, i, 158 i == 0 ? 4 : 1, &wdr->cmd_iohs[i]) != 0) { 164 wdc_init_shadow_regs(wdr); 166 wdr->ctl_iot = wdr->data32iot = compat_iot [all...] |
/src/sys/arch/amiga/dev/ |
efavar.h | 43 struct wdc_regs wdr[6]; /* PIO0-5 */ member in struct:efa_port
|
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...] |
wdc_acafh.c | 71 struct wdc_regs wdr; member in struct:wdc_acafh_slot 169 struct wdc_regs *wdr; local in function:wdc_acafh_map_channel 176 wdr = CHAN_TO_WDC_REGS(&sc->sc_slots[chnum].channel); 177 wdr->cmd_iot = &sc->cmd_iot; 184 if (bus_space_map(wdr->cmd_iot, off, 0x40, 0, 185 &wdr->cmd_baseioh)) { 191 if (bus_space_subregion(wdr->cmd_iot, 192 wdr->cmd_baseioh, i, i == 0 ? 4 : 1, 193 &wdr->cmd_iohs[i]) != 0) { 195 bus_space_unmap(wdr->cmd_iot [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/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/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/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/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/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/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/dev/pci/ |
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...] |
artsata.c | 126 struct wdc_regs *wdr = CHAN_TO_WDC_REGS(wdc_cp); local in function:artisea_mapregs 158 wdr->cmd_iot = sc->sc_ba5_st; 161 &wdr->cmd_baseioh) != 0) { 167 wdr->ctl_iot = sc->sc_ba5_st; 168 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, 174 wdr->ctl_ioh = cp->ctl_baseioh; 178 if (bus_space_subregion(wdr->cmd_iot, wdr->cmd_baseioh, 180 &wdr->cmd_iohs[i]) != 0) [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/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/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/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/playstation2/dev/ |
wdc_spd.c | 167 struct wdc_regs wdr; local in function:wdc_spd_match 173 __wdc_spd_bus_space(&wdr); 177 result = wdcprobe(&wdr); 217 __wdc_spd_bus_space(struct wdc_regs *wdr) 221 wdr->cmd_iot = &_wdc_spd_space; 223 wdr->cmd_iohs[i] = SPD_HDD_IO_BASE + i * 2; /* wdc register is 16 bit wide. */ 224 wdc_init_shadow_regs(wdr); 225 wdr->ctl_iot = &_wdc_spd_space; 226 wdr->ctl_ioh = SPD_HDD_IO_BASE + WDC_SPD_HDD_AUXREG_OFFSET; 227 wdr->data32iot = wdr->cmd_iot [all...] |