diff options
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r-- | drivers/pci/quirks.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 968033fd29f0..a9160ad16581 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -373,6 +373,25 @@ static void __devinit quirk_vt82c686_acpi(struct pci_dev *dev) | |||
373 | } | 373 | } |
374 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4, quirk_vt82c686_acpi ); | 374 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_4, quirk_vt82c686_acpi ); |
375 | 375 | ||
376 | /* | ||
377 | * VIA VT8235 ISA Bridge: Two IO regions pointed to by words at | ||
378 | * 0x88 (128 bytes of power management registers) | ||
379 | * 0xd0 (16 bytes of SMB registers) | ||
380 | */ | ||
381 | static void __devinit quirk_vt8235_acpi(struct pci_dev *dev) | ||
382 | { | ||
383 | u16 pm, smb; | ||
384 | |||
385 | pci_read_config_word(dev, 0x88, &pm); | ||
386 | pm &= PCI_BASE_ADDRESS_IO_MASK; | ||
387 | quirk_io_region(dev, pm, 128, PCI_BRIDGE_RESOURCES); | ||
388 | |||
389 | pci_read_config_word(dev, 0xd0, &smb); | ||
390 | smb &= PCI_BASE_ADDRESS_IO_MASK; | ||
391 | quirk_io_region(dev, smb, 16, PCI_BRIDGE_RESOURCES + 1); | ||
392 | } | ||
393 | DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, quirk_vt8235_acpi); | ||
394 | |||
376 | 395 | ||
377 | #ifdef CONFIG_X86_IO_APIC | 396 | #ifdef CONFIG_X86_IO_APIC |
378 | 397 | ||
@@ -767,6 +786,7 @@ static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev) | |||
767 | if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_ASUSTEK)) { | 786 | if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_ASUSTEK)) { |
768 | if (dev->device == PCI_DEVICE_ID_INTEL_82845_HB) | 787 | if (dev->device == PCI_DEVICE_ID_INTEL_82845_HB) |
769 | switch(dev->subsystem_device) { | 788 | switch(dev->subsystem_device) { |
789 | case 0x8025: /* P4B-LX */ | ||
770 | case 0x8070: /* P4B */ | 790 | case 0x8070: /* P4B */ |
771 | case 0x8088: /* P4B533 */ | 791 | case 0x8088: /* P4B533 */ |
772 | case 0x1626: /* L3C notebook */ | 792 | case 0x1626: /* L3C notebook */ |
@@ -819,6 +839,11 @@ static void __init asus_hides_smbus_hostbridge(struct pci_dev *dev) | |||
819 | case 0x0001: /* Toshiba Satellite A40 */ | 839 | case 0x0001: /* Toshiba Satellite A40 */ |
820 | asus_hides_smbus = 1; | 840 | asus_hides_smbus = 1; |
821 | } | 841 | } |
842 | if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) | ||
843 | switch(dev->subsystem_device) { | ||
844 | case 0x0001: /* Toshiba Tecra M2 */ | ||
845 | asus_hides_smbus = 1; | ||
846 | } | ||
822 | } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG)) { | 847 | } else if (unlikely(dev->subsystem_vendor == PCI_VENDOR_ID_SAMSUNG)) { |
823 | if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) | 848 | if (dev->device == PCI_DEVICE_ID_INTEL_82855PM_HB) |
824 | switch(dev->subsystem_device) { | 849 | switch(dev->subsystem_device) { |