diff options
author | Huang Ying <ying.huang@intel.com> | 2010-05-18 02:35:16 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-05-19 22:40:14 -0400 |
commit | affb72c3a8984ba55e055b0a0228c3ea1a056758 (patch) | |
tree | a6d4c9051110c03f9222bde9c3dcea7822f8570c /drivers/pci/pcie/aer/aerdrv.h | |
parent | ea8c071cad789b1919355fc7a67182a5c9994e6b (diff) |
ACPI, APEI, PCIE AER, use general HEST table parsing in AER firmware_first setup
Now, a dedicated HEST tabling parsing code is used for PCIE AER
firmware_first setup. It is rebased on general HEST tabling parsing
code of APEI. The firmware_first setup code is moved from PCI core to
AER driver too, because it is only AER related.
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Reviewed-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/pci/pcie/aer/aerdrv.h')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.h b/drivers/pci/pcie/aer/aerdrv.h index bd833ea3ba49..7182c337aef1 100644 --- a/drivers/pci/pcie/aer/aerdrv.h +++ b/drivers/pci/pcie/aer/aerdrv.h | |||
@@ -134,4 +134,21 @@ static inline int aer_osc_setup(struct pcie_device *pciedev) | |||
134 | } | 134 | } |
135 | #endif | 135 | #endif |
136 | 136 | ||
137 | #ifdef CONFIG_ACPI_APEI | ||
138 | extern int pcie_aer_get_firmware_first(struct pci_dev *pci_dev); | ||
139 | #else | ||
140 | static inline int pcie_aer_get_firmware_first(struct pci_dev *pci_dev) | ||
141 | { | ||
142 | if (pci_dev->__aer_firmware_first_valid) | ||
143 | return pci_dev->__aer_firmware_first; | ||
144 | return 0; | ||
145 | } | ||
146 | #endif | ||
147 | |||
148 | static inline void pcie_aer_force_firmware_first(struct pci_dev *pci_dev, | ||
149 | int enable) | ||
150 | { | ||
151 | pci_dev->__aer_firmware_first = !!enable; | ||
152 | pci_dev->__aer_firmware_first_valid = 1; | ||
153 | } | ||
137 | #endif /* _AERDRV_H_ */ | 154 | #endif /* _AERDRV_H_ */ |