mb/supermicro: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Icc633dc499568cf672f5e244e026e45a6eea5fd8 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26095 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
committed by
Martin Roth
parent
61e07f6ed6
commit
66e602a7fa
@ -65,7 +65,7 @@ void get_bus_conf(void)
|
|||||||
unsigned apicid_base;
|
unsigned apicid_base;
|
||||||
unsigned sbdn;
|
unsigned sbdn;
|
||||||
|
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (get_bus_conf_done == 1)
|
if (get_bus_conf_done == 1)
|
||||||
|
@ -47,7 +47,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*/
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ void get_bus_conf(void)
|
|||||||
unsigned apicid_base;
|
unsigned apicid_base;
|
||||||
unsigned sbdn;
|
unsigned sbdn;
|
||||||
|
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (get_bus_conf_done == 1)
|
if (get_bus_conf_done == 1)
|
||||||
|
@ -47,7 +47,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*/
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ void get_bus_conf(void)
|
|||||||
unsigned apicid_base;
|
unsigned apicid_base;
|
||||||
struct mb_sysconf_t *m;
|
struct mb_sysconf_t *m;
|
||||||
|
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if(get_bus_conf_done == 1) return; //do it only once
|
if(get_bus_conf_done == 1) return; //do it only once
|
||||||
|
@ -44,7 +44,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*/
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ void get_bus_conf(void)
|
|||||||
unsigned apicid_base;
|
unsigned apicid_base;
|
||||||
struct mb_sysconf_t *m;
|
struct mb_sysconf_t *m;
|
||||||
|
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if(get_bus_conf_done == 1) return; //do it only once
|
if(get_bus_conf_done == 1) return; //do it only once
|
||||||
|
@ -46,7 +46,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*/
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
uint32_t dword;
|
uint32_t dword;
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
unsigned long acpi_fill_madt(unsigned long current)
|
unsigned long acpi_fill_madt(unsigned long current)
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
u32 dword;
|
u32 dword;
|
||||||
u32 gsi_base = 0;
|
u32 gsi_base = 0;
|
||||||
/* create all subtables for processors */
|
/* create all subtables for processors */
|
||||||
|
@ -59,7 +59,7 @@ static u32 get_bus_conf_done = 0;
|
|||||||
void get_bus_conf(void)
|
void get_bus_conf(void)
|
||||||
{
|
{
|
||||||
u32 apicid_base;
|
u32 apicid_base;
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (get_bus_conf_done == 1)
|
if (get_bus_conf_done == 1)
|
||||||
|
@ -45,7 +45,7 @@ u8 is_dev3_present(void)
|
|||||||
***/
|
***/
|
||||||
void set_pcie_reset(void)
|
void set_pcie_reset(void)
|
||||||
{
|
{
|
||||||
device_t pcie_core_dev;
|
struct device *pcie_core_dev;
|
||||||
|
|
||||||
pcie_core_dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
pcie_core_dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
||||||
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x28282828);
|
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x28282828);
|
||||||
@ -54,7 +54,7 @@ void set_pcie_reset(void)
|
|||||||
|
|
||||||
void set_pcie_dereset(void)
|
void set_pcie_dereset(void)
|
||||||
{
|
{
|
||||||
device_t pcie_core_dev;
|
struct device *pcie_core_dev;
|
||||||
|
|
||||||
pcie_core_dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
pcie_core_dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
||||||
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x6F6F6F6F);
|
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x6F6F6F6F);
|
||||||
@ -65,7 +65,7 @@ void set_pcie_dereset(void)
|
|||||||
* enable the dedicated function in h8scm board.
|
* enable the dedicated function in h8scm board.
|
||||||
* This function called early than sr5650_enable.
|
* This function called early than sr5650_enable.
|
||||||
*************************************************/
|
*************************************************/
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard H8SCM Enable. dev=0x%p\n", dev);
|
printk(BIOS_INFO, "Mainboard H8SCM Enable. dev=0x%p\n", dev);
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ static void *smp_write_config_table(void *v)
|
|||||||
mptable_write_buses(mc, NULL, &bus_isa);
|
mptable_write_buses(mc, NULL, &bus_isa);
|
||||||
/* I/O APICs: APIC ID Version State Address */
|
/* I/O APICs: APIC ID Version State Address */
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
u32 *dword;
|
u32 *dword;
|
||||||
u8 byte;
|
u8 byte;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user