aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/quirks.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 3b0bb3268bbd..59d4da2734c1 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -925,38 +925,6 @@ static void __init quirk_eisa_bridge(struct pci_dev *dev)
925} 925}
926DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82375, quirk_eisa_bridge ); 926DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82375, quirk_eisa_bridge );
927 927
928/*
929 * On the MSI-K8T-Neo2Fir Board, the internal Soundcard is disabled
930 * when a PCI-Soundcard is added. The BIOS only gives Options
931 * "Disabled" and "AUTO". This Quirk Sets the corresponding
932 * Register-Value to enable the Soundcard.
933 *
934 * FIXME: Presently this quirk will run on anything that has an 8237
935 * which isn't correct, we need to check DMI tables or something in
936 * order to make sure it only runs on the MSI-K8T-Neo2Fir. Because it
937 * runs everywhere at present we suppress the printk output in most
938 * irrelevant cases.
939 */
940static void k8t_sound_hostbridge(struct pci_dev *dev)
941{
942 unsigned char val;
943
944 pci_read_config_byte(dev, 0x50, &val);
945 if (val == 0xc8) {
946 /* Assume it's probably a MSI-K8T-Neo2Fir */
947 printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, attempting to turn soundcard ON\n");
948 pci_write_config_byte(dev, 0x50, val & (~0x40));
949
950 /* Verify the Change for Status output */
951 pci_read_config_byte(dev, 0x50, &val);
952 if (val & 0x40)
953 printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, soundcard still off\n");
954 else
955 printk(KERN_INFO "PCI: MSI-K8T-Neo2Fir, soundcard on\n");
956 }
957}
958DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
959DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, k8t_sound_hostbridge);
960 928
961/* 929/*
962 * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge 930 * On ASUS P4B boards, the SMBus PCI Device within the ICH2/4 southbridge