diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-04 20:59:58 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-05-08 14:22:05 +0000 |
commit | 49c30ba0177f4bc232040c156a3743bd8a1c2629 (patch) | |
tree | b1f0dd230f36c5d755ae389cded8eac5add2f876 /src/mainboard | |
parent | 4182c80286e913dc9d498b31652bacbb0cd43b40 (diff) | |
download | coreboot-49c30ba0177f4bc232040c156a3743bd8a1c2629.tar.xz |
mb/iwill: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I39fd521ac2f619ae7b5e12755f09bea5d782eae1
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26091
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/iwill/dk8_htx/acpi_tables.c | 4 | ||||
-rw-r--r-- | src/mainboard/iwill/dk8_htx/get_bus_conf.c | 4 | ||||
-rw-r--r-- | src/mainboard/iwill/dk8_htx/irq_tables.c | 2 | ||||
-rw-r--r-- | src/mainboard/iwill/dk8_htx/mainboard.c | 2 | ||||
-rw-r--r-- | src/mainboard/iwill/dk8_htx/mainboard.h | 2 | ||||
-rw-r--r-- | src/mainboard/iwill/dk8_htx/mptable.c | 4 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/mainboard/iwill/dk8_htx/acpi_tables.c b/src/mainboard/iwill/dk8_htx/acpi_tables.c index e9818b3a20..957be79ca3 100644 --- a/src/mainboard/iwill/dk8_htx/acpi_tables.c +++ b/src/mainboard/iwill/dk8_htx/acpi_tables.c @@ -39,7 +39,7 @@ unsigned long acpi_fill_madt(unsigned long current) /* Write all 8131 IOAPICs */ { - device_t dev; + struct device *dev; struct resource *res; dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN((sysconf.hcdn[0]&0xff), 1)); if (dev) { @@ -123,7 +123,7 @@ unsigned long acpi_fill_madt(unsigned long current) return current; } -unsigned long mainboard_write_acpi_tables(device_t device, +unsigned long mainboard_write_acpi_tables(struct device *device, unsigned long start, acpi_rsdp_t *rsdp) { diff --git a/src/mainboard/iwill/dk8_htx/get_bus_conf.c b/src/mainboard/iwill/dk8_htx/get_bus_conf.c index 25dcab1ab3..1121fb3689 100644 --- a/src/mainboard/iwill/dk8_htx/get_bus_conf.c +++ b/src/mainboard/iwill/dk8_htx/get_bus_conf.c @@ -46,7 +46,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)); @@ -74,7 +74,7 @@ void get_bus_conf(void) unsigned apicid_base; - device_t dev; + struct device *dev; int i, j; struct mb_sysconf_t *m; diff --git a/src/mainboard/iwill/dk8_htx/irq_tables.c b/src/mainboard/iwill/dk8_htx/irq_tables.c index 2f1dadecfd..33d4837a5d 100644 --- a/src/mainboard/iwill/dk8_htx/irq_tables.c +++ b/src/mainboard/iwill/dk8_htx/irq_tables.c @@ -75,7 +75,7 @@ unsigned long write_pirq_routing_table(unsigned long addr) slot_num = 0; { - device_t dev; + struct device *dev; dev = dev_find_slot(m->bus_8111_0, PCI_DEVFN(sysconf.sbdn + 1, 3)); diff --git a/src/mainboard/iwill/dk8_htx/mainboard.c b/src/mainboard/iwill/dk8_htx/mainboard.c index 0202b50610..905a0d5f8f 100644 --- a/src/mainboard/iwill/dk8_htx/mainboard.c +++ b/src/mainboard/iwill/dk8_htx/mainboard.c @@ -7,7 +7,7 @@ #include <cpu/amd/amdk8_sysconf.h> #include "mainboard.h" -static void mainboard_enable(device_t dev) +static void mainboard_enable(struct device *dev) { dev->ops->write_acpi_tables = mainboard_write_acpi_tables; } diff --git a/src/mainboard/iwill/dk8_htx/mainboard.h b/src/mainboard/iwill/dk8_htx/mainboard.h index fc2dcafd30..111b4457ca 100644 --- a/src/mainboard/iwill/dk8_htx/mainboard.h +++ b/src/mainboard/iwill/dk8_htx/mainboard.h @@ -1 +1 @@ -unsigned long mainboard_write_acpi_tables(device_t device, unsigned long start, acpi_rsdp_t *rsdp); +unsigned long mainboard_write_acpi_tables(struct device *device, unsigned long start, acpi_rsdp_t *rsdp); diff --git a/src/mainboard/iwill/dk8_htx/mptable.c b/src/mainboard/iwill/dk8_htx/mptable.c index 74770d4dc5..daf9b421f0 100644 --- a/src/mainboard/iwill/dk8_htx/mptable.c +++ b/src/mainboard/iwill/dk8_htx/mptable.c @@ -31,7 +31,7 @@ static void *smp_write_config_table(void *v) /*I/O APICs: APIC ID Version State Address*/ smp_write_ioapic(mc, m->apicid_8111, 0x11, VIO_APIC_VADDR); //8111 { - device_t dev; + struct device *dev; struct resource *res; dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN(m->sbdn3, 1)); if (dev) { @@ -130,7 +130,7 @@ static void *smp_write_config_table(void *v) for(i = 1; i< sysconf.hc_possible_num; i++) { if(!(sysconf.pci1234[i] & 0x1) ) continue; int ii; - device_t dev; + struct device *dev; struct resource *res; switch(sysconf.hcid[i]) { case 1: |