/* Check for the present of 450NX errata #19 and errata #25. If they are found, disable use of DMA IDE  */
static void __devinit piix_check_450nx(void)
/* Check for the present of 450NX errata #19 and errata #25. If they are found, disable use of DMA IDE  */
static void __devinit piix_check_450nx(void)
{
	struct pci_dev *pdev = NULL;
	u16 cfg;
	while((pdev=pci_get_device(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454NX, pdev))!=NULL)
	{
		pci_read_config_word(pdev, 0x41, &cfg);
		if (pdev->revision == 0x00)
			no_piix_dma = 1;
		else if (cfg & (1<<14) && pdev->revision < 5)
			no_piix_dma = 2;
	}
	if(no_piix_dma)
		printk(KERN_WARNING DRV_NAME ": 450NX errata present, disabling IDE DMA.\n");
	if(no_piix_dma == 2)
		printk(KERN_WARNING DRV_NAME ": A BIOS update may resolve this.\n");
}