/* Set the FIFO properties for this device if necessary. Used both on set up and on and the resume path  */
static void via_config_fifo(struct pci_dev *pdev, unsigned int flags)
/* Set the FIFO properties for this device if necessary. Used both on set up and on and the resume path  */
static void via_config_fifo(struct pci_dev *pdev, unsigned int flags)
{
	u8 enable;
	pci_read_config_byte(pdev, 0x40 , &enable);
	enable &= 3;
	if (flags & VIA_SET_FIFO) {
		static const u8 fifo_setting[4] = {0x00, 0x60, 0x00, 0x20};
		u8 fifo;
		pci_read_config_byte(pdev, 0x43, &fifo);
		if (flags & VIA_BAD_PREQ)
			fifo &= 0x7F;
		else
			fifo &= 0x9f;
		fifo |= fifo_setting[enable];
		pci_write_config_byte(pdev, 0x43, fifo);
	}
}