Lines Matching +full:udma +full:- +full:c

1 // SPDX-License-Identifier: GPL-2.0-only
10 * linux/drivers/ide/pci/sc1200.c Version 0.91 28-Jan-2003
12 * Copyright (C) 2000-2002 Mark Lord <mlord@pobox.com>
37 * sc1200_clock - PCI clock
65 * sc1200_set_piomode - PIO setup
85 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sc1200_set_piomode()
87 unsigned int reg = 0x40 + 0x10 * ap->port_no; in sc1200_set_piomode()
88 int mode = adev->pio_mode - XFER_PIO_0; in sc1200_set_piomode()
93 pci_write_config_dword(pdev, reg + 8 * adev->devno, in sc1200_set_piomode()
98 * sc1200_set_dmamode - DMA timing setup
102 * We cannot mix MWDMA and UDMA without reloading timings each switch
121 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in sc1200_set_dmamode()
122 unsigned int reg = 0x40 + 0x10 * ap->port_no; in sc1200_set_dmamode()
123 int mode = adev->dma_mode; in sc1200_set_dmamode()
127 format = udma_timing[clock][mode - XFER_UDMA_0]; in sc1200_set_dmamode()
129 format = mwdma_timing[clock][mode - XFER_MW_DMA_0]; in sc1200_set_dmamode()
131 if (adev->devno == 0) { in sc1200_set_dmamode()
143 * sc1200_qc_issue - command issue
149 * one MWDMA/UDMA bit.
154 struct ata_port *ap = qc->ap; in sc1200_qc_issue()
155 struct ata_device *adev = qc->dev; in sc1200_qc_issue()
156 struct ata_device *prev = ap->private_data; in sc1200_qc_issue()
160 /* Maybe, but do the channels match MWDMA/UDMA ? */ in sc1200_qc_issue()
171 * sc1200_qc_defer - implement serialization
179 struct ata_host *host = qc->ap->host; in sc1200_qc_defer()
180 struct ata_port *alt = host->ports[1 ^ qc->ap->port_no]; in sc1200_qc_defer()
190 if (alt && alt->qc_active) in sc1200_qc_defer()
212 * sc1200_init_one - Initialise an SC1200
254 MODULE_DESCRIPTION("low-level driver for the NS/AMD SC1200");