/src/sbin/nvmectl/ |
wdc.c | 1 /* $NetBSD: wdc.c,v 1.6 2023/07/05 10:58:46 riastradh Exp $ */ 31 __RCSID("$NetBSD: wdc.c,v 1.6 2023/07/05 10:58:46 riastradh Exp $"); 33 __FBSDID("$FreeBSD: head/sbin/nvmecontrol/wdc.c 329824 2018-02-22 13:32:31Z wma $"); 59 #define WDC_CAP_DIAG_USAGE "wdc cap-diag [-o path-template]\n" 149 * though it likely doesn't matter to the WDC 203 wdc(int argc, char *argv[]) function in typeref:typename:void
|
/src/sys/arch/dreamcast/dev/g1/ |
wdc_g1.c | 175 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_g1_do_reset 176 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel];
|
/src/sys/arch/playstation2/dev/ |
wdc_spd.c | 43 if (ra_ == 0xb400004e) /* (wdc)STAT LED off */ \ 53 if (wa_ == 0xb400004e) /* (wdc)CMD LED on */ \ 95 * wdc register is 16 bit wide. 189 struct wdc_softc *wdc = &sc->sc_wdcdev; local in function:wdc_spd_attach 197 wdc->sc_atac.atac_cap = 199 wdc->sc_atac.atac_pio_cap = 0; 201 wdc->sc_atac.atac_channels = sc->sc_chanlist; 202 wdc->sc_atac.atac_nchannels = 1; 223 wdr->cmd_iohs[i] = SPD_HDD_IO_BASE + i * 2; /* wdc register is 16 bit wide. */
|
/src/sys/dev/pci/ |
piixide.c | 706 struct wdc_softc *wdc = &sc->sc_wdcdev; local in function:piix3_4_setup_channel 789 if ((wdc->sc_atac.atac_cap & ATAC_CAP_UDMA) &&
|
/src/sys/dev/ata/ |
ata_wdc.c | 179 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_ata_bio_start 180 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; 214 if (! (wdc->cap & WDC_CAPABILITY_NO_AUXCTL)) 217 if (wdc->select) 218 wdc->select(chp, xfer->c_drive); 299 if (! (wdc->cap & WDC_CAPABILITY_NO_AUXCTL)) 327 if (! (wdc->cap & WDC_CAPABILITY_NO_AUXCTL)) 337 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:_wdc_ata_bio_start 338 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel]; 426 error = (*wdc->dma_init)(wdc->dma_arg 631 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_ata_bio_intr [all...] |
ata.c | 1320 #if NATA_PIOBM /* XXX wdc dependent code */ 1322 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:ata_free_xfer 1325 (*wdc->piobm_done)(wdc->dma_arg, 2251 * XXX joerg: with wdc, the first channel unfreezes the controller. 2252 * Move this the reset and queue idling into wdc.
|
/src/sys/arch/amiga/dev/ |
efa.c | 112 * can't coexist with wdc_amiga. Match "wdc" on an A1200, because 115 if (!matchname(aux, "wdc") || !is_a1200()) 534 struct wdc_softc *wdc; local in function:efa_select_regset 541 wdc = CHAN_TO_WDC(&sc->sc_ports[chnum].chan); 542 wdc->regs[chnum] = sc->sc_ports[chnum].wdr[piomode]; 548 efa_debug_print_regmapping(&wdc->regs[chnum]);
|
/src/sys/dev/scsipi/ |
atapi_wdc.c | 207 struct wdc_softc *wdc = device_private(chan->chan_adapter->adapt_dev); local in function:wdc_atapi_get_params 208 struct atac_softc *atac = &wdc->sc_atac; 209 struct wdc_regs *wdr = &wdc->regs[chan->chan_channel]; 269 struct wdc_softc *wdc = device_private(chan->chan_adapter->adapt_dev); local in function:wdc_atapi_probe_device 270 struct atac_softc *atac = &wdc->sc_atac; 281 /* if no ATAPI device detected at wdc attach time, skip */ 372 struct wdc_softc *wdc = device_private(adapt->adapt_dev); local in function:wdc_atapi_scsipi_request 373 struct atac_softc *atac = &wdc->sc_atac; 481 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_atapi_start 482 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel] 735 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_atapi_intr 1059 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_atapi_phase_complete [all...] |
/src/sys/dev/ic/ |
wdc.c | 1 /* $NetBSD: wdc.c,v 1.310 2022/05/31 08:43:15 andvar Exp $ */ 61 __KERNEL_RCSID(0, "$NetBSD: wdc.c,v 1.310 2022/05/31 08:43:15 andvar Exp $"); 178 * Initialize the "shadow register" handles for a standard wdc controller. 191 wdc_allocate_regs(struct wdc_softc *wdc) 194 wdc->regs = malloc(wdc->sc_atac.atac_nchannels * 207 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_sataprobe 248 if (atabus_alloc_drives(chp, wdc->wdc_maxdrives) != 0) { 297 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_drvprobe 298 struct wdc_regs *wdr = &wdc->regs[chp->ch_channel] 495 struct wdc_softc *wdc; local in function:wdcprobe_with_reset 524 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdcprobe1 796 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdcattach 886 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdcintr 969 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_reset_channel 1030 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdcreset 1067 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_do_reset 1100 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:__wdcwait_reset 1207 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:__wdcwait 1320 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdc_dmawait 1344 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdctimeout 1429 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:__wdccommand_start 1500 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:__wdccommand_intr 1627 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:__wdccommand_done 1758 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdccommand 1794 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdccommandext 1861 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:wdccommandshort [all...] |
mvsata.c | 1020 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:mvsata_bio_start 1221 wdc->dataout_pio(chp, drvp->drive_flags, 1271 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:mvsata_bio_intr 1371 wdc->datain_pio(chp, drvp->drive_flags, 1701 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:mvsata_wdc_cmd_intr 1779 wdc->datain_pio(chp, drive_flags, data, bcount); 1791 wdc->dataout_pio(chp, drive_flags, data, bcount); 2207 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:mvsata_atapi_intr 2307 wdc->dataout_pio(chp, drvp->drive_flags, cmd, sc_xfer->cmdlen); 2342 wdc->dataout_pio(chp, drvp->drive_flags 2500 struct wdc_softc *wdc = CHAN_TO_WDC(chp); local in function:mvsata_atapi_phase_complete [all...] |
/src/sys/arch/mips/cavium/dev/ |
if_cnmac.c | 989 int wdc = 0; local in function:cnmac_start 1020 if (wdc > 0) 1022 sc->sc_port, wdc); 1035 if (cnmac_send(sc, m, &wdc)) { 1052 if (wdc > 0) 1053 octpko_op_doorbell_write(sc->sc_port, sc->sc_port, wdc);
|