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>
This commit is contained in:
Elyes HAOUAS 2018-05-04 20:59:58 +02:00 committed by Martin Roth
parent 4182c80286
commit 49c30ba017
6 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@ unsigned long acpi_fill_madt(unsigned long current)
/* Write all 8131 IOAPICs */ /* Write all 8131 IOAPICs */
{ {
device_t dev; struct device *dev;
struct resource *res; struct resource *res;
dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN((sysconf.hcdn[0]&0xff), 1)); dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN((sysconf.hcdn[0]&0xff), 1));
if (dev) { if (dev) {
@ -123,7 +123,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current; return current;
} }
unsigned long mainboard_write_acpi_tables(device_t device, unsigned long mainboard_write_acpi_tables(struct device *device,
unsigned long start, unsigned long start,
acpi_rsdp_t *rsdp) acpi_rsdp_t *rsdp)
{ {

View File

@ -46,7 +46,7 @@ static unsigned get_hcid(unsigned i)
unsigned devn = sysconf.hcdn[i] & 0xff; unsigned devn = sysconf.hcdn[i] & 0xff;
device_t dev; struct device *dev;
dev = dev_find_slot(busn, PCI_DEVFN(devn, 0)); dev = dev_find_slot(busn, PCI_DEVFN(devn, 0));
@ -74,7 +74,7 @@ void get_bus_conf(void)
unsigned apicid_base; unsigned apicid_base;
device_t dev; struct device *dev;
int i, j; int i, j;
struct mb_sysconf_t *m; struct mb_sysconf_t *m;

View File

@ -75,7 +75,7 @@ unsigned long write_pirq_routing_table(unsigned long addr)
slot_num = 0; slot_num = 0;
{ {
device_t dev; struct device *dev;
dev = dev =
dev_find_slot(m->bus_8111_0, dev_find_slot(m->bus_8111_0,
PCI_DEVFN(sysconf.sbdn + 1, 3)); PCI_DEVFN(sysconf.sbdn + 1, 3));

View File

@ -7,7 +7,7 @@
#include <cpu/amd/amdk8_sysconf.h> #include <cpu/amd/amdk8_sysconf.h>
#include "mainboard.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; dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
} }

View File

@ -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);

View File

@ -31,7 +31,7 @@ static void *smp_write_config_table(void *v)
/*I/O APICs: APIC ID Version State Address*/ /*I/O APICs: APIC ID Version State Address*/
smp_write_ioapic(mc, m->apicid_8111, 0x11, VIO_APIC_VADDR); //8111 smp_write_ioapic(mc, m->apicid_8111, 0x11, VIO_APIC_VADDR); //8111
{ {
device_t dev; struct device *dev;
struct resource *res; struct resource *res;
dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN(m->sbdn3, 1)); dev = dev_find_slot(m->bus_8132_0, PCI_DEVFN(m->sbdn3, 1));
if (dev) { if (dev) {
@ -130,7 +130,7 @@ static void *smp_write_config_table(void *v)
for(i = 1; i< sysconf.hc_possible_num; i++) { for(i = 1; i< sysconf.hc_possible_num; i++) {
if(!(sysconf.pci1234[i] & 0x1) ) continue; if(!(sysconf.pci1234[i] & 0x1) ) continue;
int ii; int ii;
device_t dev; struct device *dev;
struct resource *res; struct resource *res;
switch(sysconf.hcid[i]) { switch(sysconf.hcid[i]) {
case 1: case 1: