mb/sunw: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I348a7ad368cf5b5a7837c45038a1659a581c518f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26096 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
This commit is contained in:
parent
1ecec5f979
commit
457d3ef2dc
|
@ -65,7 +65,7 @@ void get_bus_conf(void)
|
|||
|
||||
unsigned apicid_base;
|
||||
|
||||
device_t dev;
|
||||
struct device *dev;
|
||||
|
||||
if (get_bus_conf_done == 1)
|
||||
return; //do it only once
|
||||
|
|
|
@ -49,7 +49,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;
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ fail:
|
|||
printk(BIOS_WARNING, "failed to initialize EMC6D103\n");
|
||||
}
|
||||
|
||||
static void mainboard_init(device_t dev)
|
||||
static void mainboard_init(struct device *dev)
|
||||
{
|
||||
emc6d103_init();
|
||||
dme1737_runtime_init();
|
||||
|
@ -168,7 +168,7 @@ static void mainboard_init(device_t dev)
|
|||
printk(BIOS_DEBUG, "%s done\n", __func__);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = mainboard_init;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue