aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/gm45/pcie.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2016-08-29 22:51:41 -0700
committerMartin Roth <martinroth@google.com>2016-09-13 17:21:02 +0200
commit25f75b28e4e545eb2c42e4e201055661e57a90ca (patch)
tree486df3a3e3c18d9e268f8503a640bd3fc2dc502b /src/northbridge/intel/gm45/pcie.c
parent823f1a9bbfc5daf72e5f2f76bf2034b250396d9d (diff)
northbridge/intel/gm45: transation away from device_t
Replace the use of the old device_t definition inside northbridge/intel/gm45. The patch has been tested both with the arch/io.h definition of device_t enabled and disabled in order to ensure compatibility while the transaction takes place. Change-Id: I87754799f922cf241fb456071bac04e6fe1eab34 Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/16402 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/northbridge/intel/gm45/pcie.c')
-rw-r--r--src/northbridge/intel/gm45/pcie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/northbridge/intel/gm45/pcie.c b/src/northbridge/intel/gm45/pcie.c
index cc1fde74f8..3f56b94945 100644
--- a/src/northbridge/intel/gm45/pcie.c
+++ b/src/northbridge/intel/gm45/pcie.c
@@ -112,8 +112,8 @@ static void init_pcie(const int peg_enabled,
u8 tmp8;
u16 tmp16;
u32 tmp;
- const device_t mch = PCI_DEV(0, 0, 0);
- const device_t pciex = PCI_DEV(0, 1, 0);
+ const pci_devfn_t mch = PCI_DEV(0, 0, 0);
+ const pci_devfn_t pciex = PCI_DEV(0, 1, 0);
printk(BIOS_DEBUG, "PEG x%d %s, SDVO %s\n", peg_x16?16:1,
peg_enabled?"enabled":"disabled",
@@ -162,7 +162,7 @@ static void init_pcie(const int peg_enabled,
static void setup_aspm(const stepping_t stepping, const int peg_enabled)
{
u32 tmp32;
- const device_t pciex = PCI_DEV(0, 1, 0);
+ const pci_devfn_t pciex = PCI_DEV(0, 1, 0);
/* Prerequisites for ASPM: */
if (peg_enabled) {
@@ -327,7 +327,7 @@ static void setup_rcrb(const int peg_enabled)
void gm45_late_init(const stepping_t stepping)
{
- const device_t mch = PCI_DEV(0, 0, 0);
+ const pci_devfn_t mch = PCI_DEV(0, 0, 0);
const int peg_enabled = (pci_read_config8(mch, D0F0_DEVEN) >> 1) & 1;
const int sdvo_enabled = (MCHBAR16(0x40) >> 8) & 1;
const int peg_x16 = (peg_enabled && !sdvo_enabled);