• Home
  • Raw
  • Download

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

2  *  Copyright (C) 2003 ATI Inc. <hyu@ati.com>
44 * atiixp_set_pio_mode - set host controller for PIO mode
48 * Set the interface PIO mode.
53 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_pio_mode()
55 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode()
58 const u8 pio = drive->pio_mode - XFER_PIO_0; in atiixp_set_pio_mode()
63 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode()
64 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode()
77 * atiixp_set_dma_mode - set host controller for DMA mode
81 * Set a ATIIXP host controller to the desired DMA mode. This involves
87 struct pci_dev *dev = to_pci_dev(hwif->dev); in atiixp_set_dma_mode()
89 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_dma_mode()
93 const u8 speed = drive->dma_mode; in atiixp_set_dma_mode()
101 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode()
102 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode()
105 udma_ctl |= (1 << drive->dn); in atiixp_set_dma_mode()
115 udma_ctl &= ~(1 << drive->dn); in atiixp_set_dma_mode()
125 struct pci_dev *pdev = to_pci_dev(hwif->dev); in atiixp_cable_detect()
126 u8 udma_mode = 0, ch = hwif->channel; in atiixp_cable_detect()
163 * atiixp_init_one - called when a ATIIXP is found
173 return ide_pci_init_one(dev, &atiixp_pci_info[id->driver_data], NULL); in atiixp_init_one()
177 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP200_IDE), 0 },
178 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP300_IDE), 0 },
179 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP400_IDE), 0 },
180 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP600_IDE), 1 },
181 { PCI_VDEVICE(ATI, PCI_DEVICE_ID_ATI_IXP700_IDE), 0 },
210 MODULE_DESCRIPTION("PCI driver module for ATI IXP IDE");