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:
parent
4182c80286
commit
49c30ba017
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue