Lines Matching +full:ati +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2003 ATI Inc. <hyu@ati.com>
45 * atiixp_set_pio_mode - set host controller for PIO mode
49 * Set the interface PIO mode.
54 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_pio_mode()
56 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode()
59 const u8 pio = drive->pio_mode - XFER_PIO_0; in atiixp_set_pio_mode()
64 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode()
65 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode()
78 * atiixp_set_dma_mode - set host controller for DMA mode
82 * Set a ATIIXP host controller to the desired DMA mode. This involves
88 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_dma_mode()
90 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_dma_mode()
94 const u8 speed = drive->dma_mode; in atiixp_set_dma_mode()
102 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode()
103 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode()
106 udma_ctl |= (1 << drive->dn); in atiixp_set_dma_mode()
116 udma_ctl &= ~(1 << drive->dn); in atiixp_set_dma_mode()
126 struct pci_dev *pdev = to_pci_dev(hwif->dev); in atiixp_cable_detect()
127 u8 udma_mode = 0, ch = hwif->channel; in atiixp_cable_detect()
164 * atiixp_init_one - called when a ATIIXP is found
174 return ide_pci_init_one(dev, &atiixp_pci_info[id->driver_data], NULL); in atiixp_init_one()
178 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP200_IDE), 0 },
179 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP300_IDE), 0 },
180 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP400_IDE), 0 },
181 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP600_IDE), 1 },
182 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP700_IDE), 0 },
211 MODULE_DESCRIPTION("PCI driver module for ATI IXP IDE");