/* Load DMA cycle times into the chip ready for a DMA transfer to occur.  */
static void sl82c105_configure_dmamode(struct ata_port *ap, struct ata_device *adev)
/* Load DMA cycle times into the chip ready for a DMA transfer to occur.  */
static void sl82c105_configure_dmamode(struct ata_port *ap, struct ata_device *adev)
{
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	static u16 dma_timing[3] = {
		0x707, 0x201, 0x200
	};
	u16 dummy;
	int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno);
	int dma = adev->dma_mode - XFER_MW_DMA_0;
	pci_write_config_word(pdev, timing, dma_timing[dma]);
	pci_read_config_word(pdev, timing, &dummy);
}