/* If we set up a device for bus mastering, we need to check the latency timer as certain firmware forgets to set it properly, as seen on SX164 and LX164 with SRM.  */
void pcibios_set_master(struct pci_dev *dev)
/* If we set up a device for bus mastering, we need to check the latency timer as certain firmware forgets to set it properly, as seen on SX164 and LX164 with SRM.  */
void pcibios_set_master(struct pci_dev *dev)
{
	u8 lat;
	pci_read_config_byte(dev, PCI_LATENCY_TIMER, &lat);
	if (lat >= 16) return;
	printk("PCI: Setting latency timer of device %s to 64\n",
							pci_name(dev));
	pci_write_config_byte(dev, PCI_LATENCY_TIMER, 64);
}