Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fixup.c File Reference
#include <linux/delay.h>
#include <linux/dmi.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/vgaarb.h>
#include <asm/pci_x86.h>

Go to the source code of this file.

Macros

#define VIA_8363_KL133_REVISION_ID   0x81
 
#define VIA_8363_KM133_REVISION_ID   0x84
 
#define MAX_PCIEROOT   6
 
#define GET_INDEX(a, b)   ((((a) - PCI_DEVICE_ID_INTEL_MCH_PA) << 3) + ((b) & 7))
 

Functions

 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82451NX, pci_fixup_i450nx)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82454GX, pci_fixup_i450gx)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_UMC, PCI_DEVICE_ID_UMC_UM8886BF, pci_fixup_umc_ide)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_NCR, PCI_DEVICE_ID_NCR_53C810, pci_fixup_ncr53c810)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5597, pci_fixup_latency)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_SI, PCI_DEVICE_ID_SI_5598, pci_fixup_latency)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82371AB_3, pci_fixup_piix4_acpi)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8622, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8361, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8367_0, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8363_0, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8622, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8361, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8367_0, pci_fixup_via_northbridge_bug)
 
 DECLARE_PCI_FIXUP_CLASS_HEADER (PCI_VENDOR_ID_INTEL, PCI_ANY_ID, PCI_CLASS_BRIDGE_PCI, 8, pci_fixup_transparent_bridge)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2, pci_fixup_nforce2)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2, pci_fixup_nforce2)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MCH_PA, pcie_rootport_aspm_quirk)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MCH_PA1, pcie_rootport_aspm_quirk)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MCH_PB, pcie_rootport_aspm_quirk)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MCH_PB1, pcie_rootport_aspm_quirk)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MCH_PC, pcie_rootport_aspm_quirk)
 
 DECLARE_PCI_FIXUP_FINAL (PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_MCH_PC1, pcie_rootport_aspm_quirk)
 
 DECLARE_PCI_FIXUP_CLASS_FINAL (PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_DISPLAY_VGA, 8, pci_fixup_video)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, pci_fixup_msi_k8t_onboard_sound)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, pci_fixup_msi_k8t_onboard_sound)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_TI, 0x8032, pci_pre_fixup_toshiba_ohci1394)
 
 DECLARE_PCI_FIXUP_ENABLE (PCI_VENDOR_ID_TI, 0x8032, pci_post_fixup_toshiba_ohci1394)
 
 DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, pci_early_fixup_cyrix_5530)
 
 DECLARE_PCI_FIXUP_RESUME (PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, pci_early_fixup_cyrix_5530)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_SIEMENS, 0x0015, pci_siemens_interrupt_controller)
 
 DECLARE_PCI_FIXUP_EARLY (PCI_VENDOR_ID_ATI, 0x4385, sb600_disable_hpet_bar)
 
 DECLARE_PCI_FIXUP_HEADER (PCI_VENDOR_ID_INTEL, 0x27B9, twinhead_reserve_killing_zone)
 

Macro Definition Documentation

#define GET_INDEX (   a,
  b 
)    ((((a) - PCI_DEVICE_ID_INTEL_MCH_PA) << 3) + ((b) & 7))

Definition at line 215 of file fixup.c.

#define MAX_PCIEROOT   6

Definition at line 212 of file fixup.c.

#define VIA_8363_KL133_REVISION_ID   0x81

Definition at line 116 of file fixup.c.

#define VIA_8363_KM133_REVISION_ID   0x84

Definition at line 117 of file fixup.c.

Function Documentation

DECLARE_PCI_FIXUP_CLASS_FINAL ( PCI_ANY_ID  ,
PCI_ANY_ID  ,
PCI_CLASS_DISPLAY_VGA  ,
,
pci_fixup_video   
)
DECLARE_PCI_FIXUP_CLASS_HEADER ( PCI_VENDOR_ID_INTEL  ,
PCI_ANY_ID  ,
PCI_CLASS_BRIDGE_PCI  ,
,
pci_fixup_transparent_bridge   
)
DECLARE_PCI_FIXUP_EARLY ( PCI_VENDOR_ID_CYRIX  ,
PCI_DEVICE_ID_CYRIX_5530_LEGACY  ,
pci_early_fixup_cyrix_5530   
)
DECLARE_PCI_FIXUP_EARLY ( PCI_VENDOR_ID_ATI  ,
0x4385  ,
sb600_disable_hpet_bar   
)
DECLARE_PCI_FIXUP_ENABLE ( PCI_VENDOR_ID_TI  ,
0x8032  ,
pci_post_fixup_toshiba_ohci1394   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_MCH_PA  ,
pcie_rootport_aspm_quirk   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_MCH_PA1  ,
pcie_rootport_aspm_quirk   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_MCH_PB  ,
pcie_rootport_aspm_quirk   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_MCH_PB1  ,
pcie_rootport_aspm_quirk   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_MCH_PC  ,
pcie_rootport_aspm_quirk   
)
DECLARE_PCI_FIXUP_FINAL ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_MCH_PC1  ,
pcie_rootport_aspm_quirk   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_82451NX  ,
pci_fixup_i450nx   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_82454GX  ,
pci_fixup_i450gx   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_UMC  ,
PCI_DEVICE_ID_UMC_UM8886BF  ,
pci_fixup_umc_ide   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_NCR  ,
PCI_DEVICE_ID_NCR_53C810  ,
pci_fixup_ncr53c810   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_SI  ,
PCI_DEVICE_ID_SI_5597  ,
pci_fixup_latency   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_SI  ,
PCI_DEVICE_ID_SI_5598  ,
pci_fixup_latency   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_INTEL  ,
PCI_DEVICE_ID_INTEL_82371AB_3  ,
pci_fixup_piix4_acpi   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8363_0  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8622  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8361  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8367_0  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_NVIDIA  ,
PCI_DEVICE_ID_NVIDIA_NFORCE2  ,
pci_fixup_nforce2   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8237  ,
pci_fixup_msi_k8t_onboard_sound   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_TI  ,
0x8032  ,
pci_pre_fixup_toshiba_ohci1394   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_SIEMENS  ,
0x0015  ,
pci_siemens_interrupt_controller   
)
DECLARE_PCI_FIXUP_HEADER ( PCI_VENDOR_ID_INTEL  ,
0x27B9  ,
twinhead_reserve_killing_zone   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8363_0  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8622  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8361  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8367_0  ,
pci_fixup_via_northbridge_bug   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_NVIDIA  ,
PCI_DEVICE_ID_NVIDIA_NFORCE2  ,
pci_fixup_nforce2   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_VIA  ,
PCI_DEVICE_ID_VIA_8237  ,
pci_fixup_msi_k8t_onboard_sound   
)
DECLARE_PCI_FIXUP_RESUME ( PCI_VENDOR_ID_CYRIX  ,
PCI_DEVICE_ID_CYRIX_5530_LEGACY  ,
pci_early_fixup_cyrix_5530   
)