Lines Matching +full:layer +full:- +full:alpha +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-only
3 * pata_cypress.c - Cypress PATA for new ATA layer
49 * cy82c693_set_piomode - set initial PIO mode data
53 * Called to do the PIO mode setup.
58 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in cy82c693_set_piomode()
64 if (ata_timing_compute(adev, adev->pio_mode, &t, T, 1) < 0) { in cy82c693_set_piomode()
69 time_16 = clamp_val(t.recover - 1, 0, 15) | in cy82c693_set_piomode()
70 (clamp_val(t.active - 1, 0, 15) << 4); in cy82c693_set_piomode()
71 time_8 = clamp_val(t.act8b - 1, 0, 15) | in cy82c693_set_piomode()
72 (clamp_val(t.rec8b - 1, 0, 15) << 4); in cy82c693_set_piomode()
74 if (adev->devno == 0) { in cy82c693_set_piomode()
78 addr |= clamp_val(t.setup - 1, 0, 15); in cy82c693_set_piomode()
88 addr |= (clamp_val(t.setup - 1, 0, 15) << 4); in cy82c693_set_piomode()
98 * cy82c693_set_dmamode - set initial DMA mode data
102 * Called to do the DMA mode setup.
107 int reg = CY82_INDEX_CHANNEL0 + ap->port_no; in cy82c693_set_dmamode()
111 outb(adev->dma_mode - XFER_MW_DMA_0, 0x23); in cy82c693_set_dmamode()
113 /* 0x50 gives the best behaviour on the Alpha's using this chip */ in cy82c693_set_dmamode()
144 if (PCI_FUNC(pdev->devfn) != 1) in cy82c693_init_one()
145 return -ENODEV; in cy82c693_init_one()
170 MODULE_DESCRIPTION("low-level driver for the CY82C693 PATA controller");