Lines Matching +full:tech +full:- +full:docs

1 // SPDX-License-Identifier: GPL-2.0-only
3 * pata_it8213.c - iTE Tech. Inc. IT8213 PATA driver
25 * it8213_pre_reset - probe begin
38 struct ata_port *ap = link->ap; in it8213_pre_reset()
39 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in it8213_pre_reset()
40 if (!pci_test_config_bits(pdev, &it8213_enable_bits[ap->port_no])) in it8213_pre_reset()
41 return -ENOENT; in it8213_pre_reset()
47 * it8213_cable_detect - check for 40/80 pin
56 struct pci_dev *pdev = to_pci_dev(ap->host->dev); in it8213_cable_detect()
59 if (tmp & 2) /* The initial docs are incorrect */ in it8213_cable_detect()
65 * it8213_set_piomode - Initialize host controller PATA PIO timings
77 unsigned int pio = adev->pio_mode - XFER_PIO_0; in it8213_set_piomode()
78 struct pci_dev *dev = to_pci_dev(ap->host->dev); in it8213_set_piomode()
79 unsigned int master_port = ap->port_no ? 0x42 : 0x40; in it8213_set_piomode()
84 * See Intel Document 298600-004 for the timing programing rules in it8213_set_piomode()
99 /* Bit 2 is set for ATAPI on the IT8213 - reverse of ICH/PIIX */ in it8213_set_piomode()
100 if (adev->class != ATA_DEV_ATA) in it8213_set_piomode()
106 if (adev->devno == 0) { in it8213_set_piomode()
129 * it8213_set_dmamode - Initialize host controller PATA DMA timings
142 struct pci_dev *dev = to_pci_dev(ap->host->dev); in it8213_set_dmamode()
144 u8 speed = adev->dma_mode; in it8213_set_dmamode()
145 int devid = adev->devno; in it8213_set_dmamode()
159 unsigned int udma = adev->dma_mode - XFER_UDMA_0; in it8213_set_dmamode()
165 u_speed = min(2 - (udma & 1), udma); in it8213_set_dmamode()
192 unsigned int mwdma = adev->dma_mode - XFER_MW_DMA_0; in it8213_set_dmamode()
198 int pio = needed_pio[mwdma] - XFER_PIO_0; in it8213_set_dmamode()
205 if (adev->pio_mode < needed_pio[mwdma]) in it8213_set_dmamode()
215 slave_data |= ((timings[pio][0] << 2) | timings[pio][1]) << (ap->port_no ? 4 : 0); in it8213_set_dmamode()
246 * it8213_init_one - Register 8213 ATA PCI device with kernel services
256 * Zero on success, or -ERRNO value.
271 ata_print_version_once(&pdev->dev, DRV_VERSION); in it8213_init_one()
296 MODULE_DESCRIPTION("SCSI low-level driver for the ITE 8213");