/* Called to do the PIO mode setup. Our timing registers are shared so a configure_dmamode call will undo any work we do here and vice versa  */
static void sl82c105_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio)
/* Called to do the PIO mode setup. Our timing registers are shared so a configure_dmamode call will undo any work we do here and vice versa  */
static void sl82c105_configure_piomode(struct ata_port *ap, struct ata_device *adev, int pio)
{
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	static u16 pio_timing[5] = {
		0x50D, 0x407, 0x304, 0x242, 0x240
	};
	u16 dummy;
	int timing = 0x44 + (8 * ap->port_no) + (4 * adev->devno);
	pci_write_config_word(pdev, timing, pio_timing[pio]);
	pci_read_config_word(pdev, timing, &dummy);
}