summaryrefslogtreecommitdiff
path: root/src/mainboard/hp/dl145_g3
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-04 20:41:40 +0200
committerPatrick Rudolph <siro@das-labor.org>2018-05-08 17:51:57 +0000
commit56f172d9c07743379b36a0d6ce22951549bc2546 (patch)
tree08abfe3cd808e03f69af1997f20c464269ef5166 /src/mainboard/hp/dl145_g3
parent5bb159a6cf588e0408aa3c56d61242a9f6e803d5 (diff)
mb/hp: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ib9c0d0a85a9e38cdb1bdbcfa055e597f19cf3d5c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26087 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/mainboard/hp/dl145_g3')
-rw-r--r--src/mainboard/hp/dl145_g3/get_bus_conf.c2
-rw-r--r--src/mainboard/hp/dl145_g3/mptable.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/hp/dl145_g3/get_bus_conf.c b/src/mainboard/hp/dl145_g3/get_bus_conf.c
index 15a74669d3..fc9c104a6c 100644
--- a/src/mainboard/hp/dl145_g3/get_bus_conf.c
+++ b/src/mainboard/hp/dl145_g3/get_bus_conf.c
@@ -64,7 +64,7 @@ void get_bus_conf(void)
unsigned apicid_base;
- device_t dev;
+ struct device *dev;
int i;
struct mb_sysconf_t *m;
diff --git a/src/mainboard/hp/dl145_g3/mptable.c b/src/mainboard/hp/dl145_g3/mptable.c
index 4e33f9b3d8..a6cdfb83d0 100644
--- a/src/mainboard/hp/dl145_g3/mptable.c
+++ b/src/mainboard/hp/dl145_g3/mptable.c
@@ -54,7 +54,7 @@ static void *smp_write_config_table(void *v)
/*I/O APICs: APIC ID Version State Address*/
{
- device_t dev = 0;
+ struct device *dev = NULL;
int i;
struct resource *res;
for (i = 0; i < 3; i++) {
@@ -87,7 +87,7 @@ static void *smp_write_config_table(void *v)
outb(0x0e, 0x4d1);
{
- device_t dev;
+ struct device *dev;
dev = dev_find_device(0x1166, 0x0205, 0);
if(dev) {
uint32_t dword;
@@ -103,7 +103,7 @@ static void *smp_write_config_table(void *v)
// hide XIOAPIC PCI configuration space
{
- device_t dev;
+ struct device *dev;
dev = dev_find_device(0x1166, 0x205, 0);
if (dev) {
uint32_t dword;
@@ -148,7 +148,7 @@ static void *smp_write_config_table(void *v)
/* enable int */
/* why here? must get the BAR and PCI command bit 1 set before enable it ....*/
{
- device_t dev;
+ struct device *dev;
dev = dev_find_device(0x1166, 0x0205, 0);
if(dev) {
uint32_t dword;