mainboard: Get rid of device_t in ramstage
Use of device_t has been abandoned in ramstage. Change-Id: I07e00afbbd2c19cf3ea6e08f228eb39e45f1ad0c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26983 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
parent
7a5f77142f
commit
5cb876cc1f
|
@ -20,12 +20,12 @@
|
|||
#include <console/console.h>
|
||||
#include <pc80/keyboard.h>
|
||||
|
||||
static void mainboard_init(device_t dev)
|
||||
static void mainboard_init(struct device *dev)
|
||||
{
|
||||
pc_keyboard_init(NO_AUX_DEVICE);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = mainboard_init;
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ static void init_gfx(void)
|
|||
set_vbe_mode_info_valid(&edid, framebuffer);
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
int discovered;
|
||||
if (!dev) {
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
unsigned long northbridge_write_acpi_tables(device_t device, unsigned long start);
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long start);
|
||||
|
|
|
@ -26,7 +26,7 @@ static const unsigned char qemu_i440fx_irqs[] = {
|
|||
11, 10, 10, 11,
|
||||
};
|
||||
|
||||
static void qemu_nb_init(device_t dev)
|
||||
static void qemu_nb_init(struct device *dev)
|
||||
{
|
||||
/* Map memory at 0xc0000 - 0xfffff */
|
||||
int i;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <device/device.h>
|
||||
#include <cbmem.h>
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
|
||||
if (!dev) {
|
||||
|
|
|
@ -43,7 +43,7 @@ intel_gma_get_controller_info(void)
|
|||
return &gfx_controller_info;
|
||||
}
|
||||
|
||||
static void qemu_nb_init(device_t dev)
|
||||
static void qemu_nb_init(struct device *dev)
|
||||
{
|
||||
/* Map memory at 0xc0000 - 0xfffff */
|
||||
int i;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <device/device.h>
|
||||
#include <cbmem.h>
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
|
||||
if (!dev) {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <device/device.h>
|
||||
#include <cbmem.h>
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
/*
|
||||
* Size of the emulated system RAM. On hardware, this would be external
|
||||
|
|
|
@ -31,8 +31,9 @@ static void mainboard_init(void *chip_info)
|
|||
gpio_configure_pads(pads, num);
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
device_t device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
static unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -55,7 +56,7 @@ static unsigned long mainboard_write_acpi_tables(
|
|||
return end_addr;
|
||||
}
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->write_acpi_tables = mainboard_write_acpi_tables;
|
||||
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include <device/device.h>
|
||||
#include <symbols.h>
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
uintptr_t ram_base;
|
||||
size_t ram_size;
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* mainboard_enable is executed as first thing after enumerate_buses().
|
||||
* This is the earliest point to add customization.
|
||||
*/
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* mainboard_enable is executed as first thing after enumerate_buses().
|
||||
* This is the earliest point to add customization.
|
||||
*/
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ void mainboard_suspend_resume(void)
|
|||
|
||||
|
||||
|
||||
static void mainboard_init(device_t dev)
|
||||
static void mainboard_init(struct device *dev)
|
||||
{
|
||||
/* Initialize the Embedded Controller */
|
||||
lumpy_ec_init();
|
||||
|
@ -74,7 +74,7 @@ static int lumpy_smbios_type41_irq(int *handle, unsigned long *current,
|
|||
}
|
||||
|
||||
|
||||
static int lumpy_onboard_smbios_data(device_t dev, int *handle,
|
||||
static int lumpy_onboard_smbios_data(struct device *dev, int *handle,
|
||||
unsigned long *current)
|
||||
{
|
||||
int len = 0;
|
||||
|
@ -95,7 +95,7 @@ static int lumpy_onboard_smbios_data(device_t dev, int *handle,
|
|||
// mainboard_enable is executed as first thing after
|
||||
// enumerate_buses().
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = mainboard_init;
|
||||
dev->ops->get_smbios_data = lumpy_onboard_smbios_data;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
// mainboard_enable is executed as first thing after
|
||||
// enumerate_buses().
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator;
|
||||
install_intel_vga_int15_handler(GMA_INT15_ACTIVE_LFP_EDP, GMA_INT15_PANEL_FIT_CENTERING, GMA_INT15_BOOT_DISPLAY_DEFAULT, 0);
|
||||
|
|
|
@ -44,7 +44,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;
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ static int vx900_int15_handler(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
static void mainboard_enable(device_t dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
(void)dev;
|
||||
|
||||
|
|
Loading…
Reference in New Issue