/* SIS chipsets implement prefetch/postwrite bits for each device on both channels. This functionality is not ATAPI compatible and must be configured according to the class of device present  */
static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev)
/* SIS chipsets implement prefetch/postwrite bits for each device on both channels. This functionality is not ATAPI compatible and must be configured according to the class of device present  */
static void sis_set_fifo(struct ata_port *ap, struct ata_device *adev)
{
	struct pci_dev *pdev = to_pci_dev(ap->host->dev);
	u8 fifoctrl;
	u8 mask = 0x11;
	mask <<= (2 * ap->port_no);
	mask <<= adev->devno;
	pci_read_config_byte(pdev, 0x4B, &fifoctrl);
	fifoctrl &= ~mask;
	if (adev->class == ATA_DEV_ATA)
		fifoctrl |= mask;
	pci_write_config_byte(pdev, 0x4B, fifoctrl);
}