summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-16 11:26:59 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-24 06:48:47 +0000
commitab3a24ba2ea2e57193fd39bb35c6bf68c297a6b2 (patch)
tree4a7b31c1218ccefd6022e038d978298e0415ff47 /src
parent6fcf7de925dcb05fbdf9b2565138bce62f0ae355 (diff)
mb/nvidia/l1_2pvv: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ife8ca30322d83c6d9276e79c057f12a901d6e8f2 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26312 Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/nvidia/l1_2pvv/get_bus_conf.c2
-rw-r--r--src/mainboard/nvidia/l1_2pvv/mptable.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/nvidia/l1_2pvv/get_bus_conf.c b/src/mainboard/nvidia/l1_2pvv/get_bus_conf.c
index b57f957c60..2a10eeb7a8 100644
--- a/src/mainboard/nvidia/l1_2pvv/get_bus_conf.c
+++ b/src/mainboard/nvidia/l1_2pvv/get_bus_conf.c
@@ -67,7 +67,7 @@ static unsigned get_hcid(unsigned i)
unsigned devn = sysconf.hcdn[i] & 0xff;
- device_t dev;
+ struct device *dev;
dev = dev_find_slot(busn, PCI_DEVFN(devn,0));
diff --git a/src/mainboard/nvidia/l1_2pvv/mptable.c b/src/mainboard/nvidia/l1_2pvv/mptable.c
index 76bb73cafa..76d2b81f79 100644
--- a/src/mainboard/nvidia/l1_2pvv/mptable.c
+++ b/src/mainboard/nvidia/l1_2pvv/mptable.c
@@ -45,7 +45,7 @@ static void *smp_write_config_table(void *v)
/*I/O APICs: APIC ID Version State Address*/
{
- device_t dev;
+ struct device *dev;
struct resource *res;
uint32_t dword;
@@ -115,7 +115,7 @@ static void *smp_write_config_table(void *v)
//Slot PCIE
for (j = 2; j < 8; j++) {
- device_t dev;
+ struct device *dev;
dev = dev_find_slot(m->bus_mcp55, PCI_DEVFN(sbdn + 0x0a + j - 2 , 0));
if (!dev || !dev->enabled)
continue;
@@ -126,7 +126,7 @@ static void *smp_write_config_table(void *v)
//Slot PCI 32
{
- device_t dev;
+ struct device *dev;
dev = dev_find_slot(m->bus_mcp55, PCI_DEVFN(sbdn + 6 , 0));
if (dev && dev->enabled) {
for (i = 0; i < 4; i++)
@@ -146,7 +146,7 @@ static void *smp_write_config_table(void *v)
//Slot PCIE
for (j = 2; j < 8; j++) {
- device_t dev;
+ struct device *dev;
dev = dev_find_slot(m->bus_mcp55b, PCI_DEVFN(m->sbdnb + 0x0a + j - 2 , 0));
if (!dev || !dev->enabled)
continue;