mb/asus: Get rid of device_t

Use of device_t has been abandoned in ramstage.

Change-Id: I8fe817bb514c69a647c2208a0573a2c5fe98722d
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26076
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Elyes HAOUAS 2018-05-04 20:00:08 +02:00 committed by Patrick Georgi
parent 5a0757cf74
commit 02b05d1f6b
32 changed files with 43 additions and 43 deletions

View File

@ -21,7 +21,7 @@
/* APIC */
unsigned long acpi_fill_madt(unsigned long current)
{
device_t dev;
struct device *dev;
struct resource *res;
/* create all subtables for processors */

View File

@ -57,7 +57,7 @@ static unsigned get_bus_conf_done = 0;
void get_bus_conf(void)
{
unsigned apicid_base, sbdn;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -46,7 +46,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;

View File

@ -95,7 +95,7 @@ static void pirq_setup(void)
/**********************************************
* enable the dedicated function in mainboard.
**********************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");

View File

@ -20,7 +20,7 @@
/*************************************************
* enable the dedicated function in thatcher board.
*************************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
msr_t msr;

View File

@ -144,7 +144,7 @@ static void *smp_write_config_table(void *v)
/* on board NIC & Slot PCIE. */
/* PCI slots */
device_t dev = dev_find_slot(0, PCI_DEVFN(0x14, 4));
struct device *dev = dev_find_slot(0, PCI_DEVFN(0x14, 4));
if (dev && dev->enabled) {
u8 bus_pci = dev->link_list->secondary;
/* PCI_SLOT 0. */

View File

@ -23,7 +23,7 @@
u32 vt8237_ide_80pin_detect(struct device *dev)
{
device_t lpc_dev;
struct device *lpc_dev;
u16 acpi_io_base;
u32 gpio_in;
u32 res;

View File

@ -26,7 +26,7 @@
unsigned long acpi_fill_madt(unsigned long current)
{
device_t dev;
struct device *dev;
u32 dword;
u32 gsi_base = 0;
uint32_t apicid_sp5100;

View File

@ -60,7 +60,7 @@ static u32 get_bus_conf_done = 0;
void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -30,7 +30,7 @@ void set_pcie_dereset(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));
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x28282828);
@ -39,7 +39,7 @@ void set_pcie_reset(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));
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x6F6F6F6F);
@ -50,7 +50,7 @@ void set_pcie_dereset(void)
* enable the dedicated function in kgpe-d16 board.
* This function is called earlier than sr5650_enable.
*************************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard KCMA-D8 initializing, dev=0x%p\n", dev);

View File

@ -36,7 +36,7 @@ static void *smp_write_config_table(void *v)
struct mp_config_table *mc;
int bus_isa;
u32 apicid_sr5650;
device_t dev;
struct device *dev;
uint8_t sp5100_bus_number;
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);

View File

@ -22,7 +22,7 @@
/* APIC */
unsigned long acpi_fill_madt(unsigned long current)
{
device_t dev;
struct device *dev;
struct resource *res;
/* create all subtables for processors */

View File

@ -69,7 +69,7 @@ static unsigned get_bus_conf_done = 0;
void get_bus_conf(void)
{
unsigned apicid_base, sbdn;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -51,7 +51,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;
dev = dev_find_slot(bus_ck804[0], PCI_DEVFN(sbdn + 0x1, 0));

View File

@ -22,7 +22,7 @@
/* APIC */
unsigned long acpi_fill_madt(unsigned long current)
{
device_t dev;
struct device *dev;
struct resource *res;
/* create all subtables for processors */

View File

@ -58,7 +58,7 @@ static unsigned get_bus_conf_done = 0;
void get_bus_conf(void)
{
unsigned apicid_base, sbdn;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -51,7 +51,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;
dev = dev_find_slot(bus_ck804[0], PCI_DEVFN(sbdn + 0x1, 0));

View File

@ -26,7 +26,7 @@
unsigned long acpi_fill_madt(unsigned long current)
{
device_t dev;
struct device *dev;
u32 dword;
u32 gsi_base = 0;
uint32_t apicid_sp5100;

View File

@ -60,7 +60,7 @@ static u32 get_bus_conf_done = 0;
void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -30,7 +30,7 @@ void set_pcie_dereset(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));
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x28282828);
@ -39,7 +39,7 @@ void set_pcie_reset(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));
set_htiu_enable_bits(pcie_core_dev, 0xA8, 0xFFFFFFFF, 0x6F6F6F6F);
@ -50,7 +50,7 @@ void set_pcie_dereset(void)
* enable the dedicated function in kgpe-d16 board.
* This function is called earlier than sr5650_enable.
*************************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard KGPE-D16 Enable. dev=0x%p\n", dev);

View File

@ -36,7 +36,7 @@ static void *smp_write_config_table(void *v)
struct mp_config_table *mc;
int bus_isa;
u32 apicid_sr5650;
device_t dev;
struct device *dev;
uint8_t sp5100_bus_number;
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);

View File

@ -63,7 +63,7 @@ static unsigned get_bus_conf_done = 0;
void get_bus_conf(void)
{
unsigned int apicid_base, sbdn;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -34,7 +34,7 @@ static void *smp_write_config_table(void *v)
struct mp_config_table *mc;
unsigned int sbdn;
int i, j, bus_isa;
device_t dev;
struct device *dev;
struct resource *res;
mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);

View File

@ -22,7 +22,7 @@
u32 vt8237_ide_80pin_detect(struct device *dev)
{
device_t lpc_dev;
struct device *lpc_dev;
u16 acpi_io_base;
u32 gpio_in;
u32 res;

View File

@ -57,7 +57,7 @@ static u32 get_bus_conf_done = 0;
void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -32,7 +32,7 @@ void set_pcie_dereset()
{
u8 byte;
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* set 0 to bit1 :disable GPM9 as SLP_S2 output */
/* set 0 to bit2 :disable GPM8 as AZ_RST output */
byte = pm_ioread(0x8d);
@ -57,7 +57,7 @@ void set_pcie_reset()
{
u8 byte;
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* set 0 to bit1 :disable GPM9 as SLP_S2 output */
/* set 0 to bit2 :disable GPM8 as AZ_RST output */
@ -87,7 +87,7 @@ void set_pcie_reset()
u8 is_dev3_present(void)
{
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* access the smbus extended register */
sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
@ -114,7 +114,7 @@ u8 is_dev3_present(void)
* enable the dedicated function in this board.
* This function called early than rs780_enable.
*************************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard enable. dev=0x%p\n", dev);

View File

@ -46,7 +46,7 @@ static void *smp_write_config_table(void *v)
/* I/O APICs: APIC ID Version State Address */
{
device_t dev;
struct device *dev;
u32 dword;
u8 byte;

View File

@ -57,7 +57,7 @@ static u32 get_bus_conf_done = 0;
void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -41,7 +41,7 @@ void set_pcie_dereset()
{
u8 byte;
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* set 0 to bit1 :disable GPM9 as SLP_S2 output */
/* set 0 to bit2 :disable GPM8 as AZ_RST output */
byte = pm_ioread(0x8d);
@ -66,7 +66,7 @@ void set_pcie_reset()
{
u8 byte;
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* set 0 to bit1 :disable GPM9 as SLP_S2 output */
/* set 0 to bit2 :disable GPM8 as AZ_RST output */
@ -96,7 +96,7 @@ void set_pcie_reset()
u8 is_dev3_present(void)
{
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* access the smbus extended register */
sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
@ -125,7 +125,7 @@ static void set_thermal_config(void)
{
u8 byte;
u16 word;
device_t sm_dev;
struct device *sm_dev;
/* set ADT 7461 */
ADT7461_write_byte(0x0B, 0x50); /* Local Temperature Hight limit */
@ -186,7 +186,7 @@ static void set_thermal_config(void)
* enable the dedicated function in this board.
* This function called early than rs780_enable.
*************************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard enable. dev=0x%p\n", dev);

View File

@ -46,7 +46,7 @@ static void *smp_write_config_table(void *v)
/* I/O APICs: APIC ID Version State Address */
{
device_t dev;
struct device *dev;
u32 dword;
u8 byte;

View File

@ -61,7 +61,7 @@ static u32 get_bus_conf_done = 0;
void get_bus_conf(void)
{
u32 apicid_base;
device_t dev;
struct device *dev;
int i;
if (get_bus_conf_done == 1)

View File

@ -64,7 +64,7 @@ u8 is_dev3_present(void)
* enable the dedicated function in M5A88-V board.
* This function called early than rs780_enable.
*************************************************/
static void mainboard_enable(device_t dev)
static void mainboard_enable(struct device *dev)
{
printk(BIOS_INFO, "Mainboard ASUS M5A88-V Enable. dev=0x%p\n", dev);