mb/asrock: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I4b2b8593c98791dac7a5c016e75d2c05bcfbf890 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26075 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
committed by
Patrick Georgi
parent
a07b542fad
commit
51c6a610d8
@@ -57,7 +57,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)
|
||||||
|
@@ -63,7 +63,7 @@ static void get_ide_dma66(void)
|
|||||||
{
|
{
|
||||||
u8 byte;
|
u8 byte;
|
||||||
/*u32 sm_dev, ide_dev; */
|
/*u32 sm_dev, ide_dev; */
|
||||||
device_t sm_dev, ide_dev;
|
struct device *sm_dev, ide_dev;
|
||||||
|
|
||||||
sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
|
sm_dev = dev_find_slot(0, PCI_DEVFN(0x14, 0));
|
||||||
|
|
||||||
@@ -91,7 +91,7 @@ u8 is_dev3_present(void)
|
|||||||
* enable the dedicated function in mahogany board.
|
* enable the dedicated function in mahogany board.
|
||||||
* This function called early than rs780_enable.
|
* 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 939A785GMH/128M Enable. dev=0x%p\n", dev);
|
printk(BIOS_INFO, "Mainboard 939A785GMH/128M Enable. dev=0x%p\n", dev);
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
u32 dword;
|
u32 dword;
|
||||||
u8 byte;
|
u8 byte;
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
#include <drivers/intel/gma/int15.h>
|
#include <drivers/intel/gma/int15.h>
|
||||||
#include <southbridge/intel/bd82x6x/pch.h>
|
#include <southbridge/intel/bd82x6x/pch.h>
|
||||||
|
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,
|
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_NONE,
|
||||||
GMA_INT15_PANEL_FIT_DEFAULT,
|
GMA_INT15_PANEL_FIT_DEFAULT,
|
||||||
|
@@ -23,7 +23,7 @@
|
|||||||
/**********************************************
|
/**********************************************
|
||||||
* Enable the dedicated functions of the board.
|
* Enable the dedicated functions of the board.
|
||||||
**********************************************/
|
**********************************************/
|
||||||
static void mainboard_enable(device_t dev)
|
static void mainboard_enable(struct device *dev)
|
||||||
{
|
{
|
||||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
|
|
||||||
|
@@ -101,7 +101,7 @@ static void *smp_write_config_table(void *v)
|
|||||||
/* on board NIC & Slot PCIE. */
|
/* on board NIC & Slot PCIE. */
|
||||||
|
|
||||||
/* PCI slots */
|
/* 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) {
|
if (dev && dev->enabled) {
|
||||||
u8 bus_pci = dev->link_list->secondary;
|
u8 bus_pci = dev->link_list->secondary;
|
||||||
/* PCI_SLOT 0. */
|
/* PCI_SLOT 0. */
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
/**********************************************
|
/**********************************************
|
||||||
* enable the dedicated function in mainboard.
|
* 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");
|
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||||
}
|
}
|
||||||
|
@@ -178,7 +178,7 @@ static void *smp_write_config_table(void *v)
|
|||||||
/* on board NIC & Slot PCIE. */
|
/* on board NIC & Slot PCIE. */
|
||||||
|
|
||||||
/* PCI slots */
|
/* 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) {
|
if (dev && dev->enabled) {
|
||||||
u8 bus_pci = dev->link_list->secondary;
|
u8 bus_pci = dev->link_list->secondary;
|
||||||
/* PCI_SLOT 0. */
|
/* PCI_SLOT 0. */
|
||||||
|
Reference in New Issue
Block a user