/*1* Copyright (C) 2004, 2006 MIPS Technologies, Inc. All rights reserved.2* Author: Maciej W. Rozycki <[email protected]>3*4* This program is free software; you can redistribute it and/or5* modify it under the terms of the GNU General Public License6* as published by the Free Software Foundation; either version7* 2 of the License, or (at your option) any later version.8*/910#include <linux/init.h>11#include <linux/pci.h>1213/*14* Set the BCM1250, etc. PCI host bridge's TRDY timeout15* to the finite max.16*/17static void __init quirk_sb1250_pci(struct pci_dev *dev)18{19pci_write_config_byte(dev, 0x40, 0xff);20}21DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SIBYTE, PCI_DEVICE_ID_BCM1250_PCI,22quirk_sb1250_pci);2324/*25* The BCM1250, etc. PCI/HT bridge reports as a host bridge.26*/27static void __init quirk_sb1250_ht(struct pci_dev *dev)28{29dev->class = PCI_CLASS_BRIDGE_PCI << 8;30}31DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SIBYTE, PCI_DEVICE_ID_BCM1250_HT,32quirk_sb1250_ht);3334/*35* Set the SP1011 HT/PCI bridge's TRDY timeout to the finite max.36*/37static void __init quirk_sp1011(struct pci_dev *dev)38{39pci_write_config_byte(dev, 0x64, 0xff);40}41DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SIPACKETS, PCI_DEVICE_ID_SP1011,42quirk_sp1011);434445