summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801ix/pcie.c
diff options
context:
space:
mode:
authorFelix Singer <felix.singer@9elements.com>2019-11-10 11:04:08 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-22 10:47:43 +0000
commit7f8b0cd89c10621f456e3eebcd290d3946122d6d (patch)
tree018baa84262893975bd353807594d0d7f4052a4f /src/southbridge/intel/i82801ix/pcie.c
parent94146009a190383a581618fd969bf2276fb73585 (diff)
sb/i82801ix: Use macros instead of hard-coded IDs
This patch replaces hard-coded PCI IDs with macros from pci_ids.h and cleans up some code. Change-Id: Ie6ea72ac49eb015ef5cbaa98ed2b3400072000b5 Signed-off-by: Felix Singer <felix.singer@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36705 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801ix/pcie.c')
-rw-r--r--src/southbridge/intel/i82801ix/pcie.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/intel/i82801ix/pcie.c b/src/southbridge/intel/i82801ix/pcie.c
index b1d0ecc214..bdfc84db43 100644
--- a/src/southbridge/intel/i82801ix/pcie.c
+++ b/src/southbridge/intel/i82801ix/pcie.c
@@ -123,12 +123,12 @@ static struct device_operations device_ops = {
/* 82801Ix (ICH9DH/ICH9DO/ICH9R/ICH9/ICH9M-E/ICH9M) */
static const unsigned short pci_device_ids[] = {
- 0x2940, /* Port 1 */
- 0x2942, /* Port 2 */
- 0x2944, /* Port 3 */
- 0x2946, /* Port 4 */
- 0x2948, /* Port 5 */
- 0x294a, /* Port 6 */
+ PCI_DEVICE_ID_INTEL_82801IB_PCIE1, /* Port 1 */
+ PCI_DEVICE_ID_INTEL_82801IB_PCIE2, /* Port 2 */
+ PCI_DEVICE_ID_INTEL_82801IB_PCIE3, /* Port 3 */
+ PCI_DEVICE_ID_INTEL_82801IB_PCIE4, /* Port 4 */
+ PCI_DEVICE_ID_INTEL_82801IB_PCIE5, /* Port 5 */
+ PCI_DEVICE_ID_INTEL_82801IB_PCIE6, /* Port 6 */
0
};
static const struct pci_driver ich9_pcie __pci_driver = {