mainboard.c: Name enable_dev function uniformly `mainboard_enable`
To reduce the differences between these file name the enabling device function in the directory `src/mainboard` uniformly `mainboard_enable` [1]. Thanks to the awesome help of gnomon and BlastHardcheese in the IRC channel #sed on <irc.freenode.net>. gnomon came up with the following command to do the actual work. $ cd src/mainboard $ for f in */*/mainboard.c ; \ > do src="$(awk '/\.enable_dev = /{v=$NF; sub(/,$/,"",v); print v}' "$f")" ; \ > [[ -z $src ]] && continue ; \ > printf '%s\n' "g/${src}/s/${src}\([,(]\)/mainboard_enable\1/p" w | ed -s "$f" ; \ > done `src/mainboard/digitallogic/msm586seg/mainboard.c` and `src/mainboard/technologic/ts5300/mainboard.c` had to be adapted manually as no comma was used separating the struct members. And with the following statement, gnomon is even more likable! My pleasure entirely. Good luck with coreboot; I'm a big fan of the project. [1] http://www.coreboot.org/pipermail/coreboot/2013-February/074548.html Change-Id: Ife9cd0c2d9cc1ed14afc6d40063450553f06a6c6 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-on: http://review.coreboot.org/2493 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
1fc7416545
commit
528640d141
|
@ -26,11 +26,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "AAEON PFM-540I_REVB EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -73,7 +73,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in A785E-I board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void a785e_i_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard A785E-I Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -82,5 +82,5 @@ static void a785e_i_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = a785e_i_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -123,7 +123,7 @@ static void get_ide_dma66(void)
|
|||
* enable the dedicated function in bimini board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void bimini_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard BIMINI Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -133,5 +133,5 @@ static void bimini_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = bimini_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -26,11 +26,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "AMD DB800 EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -180,7 +180,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in dbm690t board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void dbm690t_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard DBM690T Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -190,5 +190,5 @@ static void dbm690t_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = dbm690t_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -68,11 +68,11 @@ void set_pcie_dereset(void *nbconfig)
|
|||
/*************************************************
|
||||
* enable the dedicated function in dinar board.
|
||||
*************************************************/
|
||||
static void dinar_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard Dinar Enable. dev=0x%p\n", dev);
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = dinar_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -73,7 +73,7 @@ void set_pcie_dereset(void)
|
|||
/*************************************************
|
||||
* enable the dedicated function in INAGUA board.
|
||||
*************************************************/
|
||||
static void inagua_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
|
||||
|
@ -82,5 +82,5 @@ static void inagua_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = inagua_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -97,7 +97,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in mahogany board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void mahogany_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard MAHOGANY Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -106,5 +106,5 @@ static void mahogany_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = mahogany_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -98,7 +98,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in mahogany board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void mahogany_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard MAHOGANY Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -107,5 +107,5 @@ static void mahogany_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = mahogany_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -26,11 +26,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "Norwich EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
/*************************************************
|
||||
* enable the dedicated function in parmer board.
|
||||
*************************************************/
|
||||
static void parmer_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
/*
|
||||
|
@ -47,5 +47,5 @@ static void parmer_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = parmer_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -53,7 +53,7 @@ void set_pcie_dereset(void)
|
|||
/*************************************************
|
||||
* enable the dedicated function in persimmon board.
|
||||
*************************************************/
|
||||
static void persimmon_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
|
||||
|
@ -76,5 +76,5 @@ static void persimmon_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = persimmon_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -250,7 +250,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in pistachio board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void pistachio_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard Pistachio Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -259,5 +259,5 @@ static void pistachio_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = pistachio_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -27,12 +27,12 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "AMD RUMBA EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -75,12 +75,12 @@ static void southstation_led_init(void)
|
|||
/*************************************************
|
||||
* enable the dedicated function in southstation board.
|
||||
*************************************************/
|
||||
static void southstation_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
southstation_led_init();
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = southstation_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
/*************************************************
|
||||
* enable the dedicated function in thatcher board.
|
||||
*************************************************/
|
||||
static void thatcher_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
msr_t msr;
|
||||
|
||||
|
@ -64,5 +64,5 @@ static void thatcher_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = thatcher_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -273,7 +273,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in tilapia board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void tilapia_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard TILAPIA Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -284,5 +284,5 @@ static void tilapia_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = tilapia_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -52,11 +52,11 @@ void set_pcie_dereset(void)
|
|||
/*************************************************
|
||||
* enable the dedicated function in torpedo board.
|
||||
*************************************************/
|
||||
static void torpedo_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable. dev=0x%p\n", dev);
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = torpedo_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -49,11 +49,11 @@ void set_pcie_dereset(void)
|
|||
/*************************************************
|
||||
* enable the dedicated function in unionstation board.
|
||||
*************************************************/
|
||||
static void unionstation_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = unionstation_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -46,11 +46,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "ARTECGROUP DBE61 EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -95,7 +95,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in mahogany board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void mb_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard 939A785GMH/128M Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -104,7 +104,7 @@ static void mb_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = mb_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
/* override the default SATA PHY setup */
|
||||
|
|
|
@ -48,11 +48,11 @@ void set_pcie_dereset(void)
|
|||
/*************************************************
|
||||
* enable the dedicated function in e350m1 board.
|
||||
*************************************************/
|
||||
static void e350m1_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = e350m1_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -118,7 +118,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in this board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void m4a78em_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -128,5 +128,5 @@ static void m4a78em_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = m4a78em_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -190,7 +190,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in this board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void m4a785m_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -200,5 +200,5 @@ static void m4a785m_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = m4a785m_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -73,7 +73,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in M5A88-V board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void m5a88pm_v_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
|
||||
printk(BIOS_INFO, "Mainboard ASUS M5A88-V Enable. dev=0x%p\n", dev);
|
||||
|
@ -83,5 +83,5 @@ static void m5a88pm_v_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = m5a88pm_v_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -73,7 +73,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in EAX-785E board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void eax_785e(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
|
||||
|
@ -82,5 +82,5 @@ static void eax_785e(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = eax_785e,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -65,11 +65,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "hw revision: %u\n", hw_rev);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -31,7 +31,7 @@ static void irqdump(void)
|
|||
/* TODO: finish up mmcr struct in sc520.h, and;
|
||||
- set ADDDECTL (now done in raminit.c in cpu/amd/sc520
|
||||
*/
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
//volatile struct mmcrpic *pic = MMCRPIC;
|
||||
volatile struct mmcr *mmcr = MMCRDEFAULT;
|
||||
|
@ -129,6 +129,6 @@ static void enable_dev(struct device *dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -26,12 +26,12 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "MSM800SEV EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -16,12 +16,12 @@
|
|||
#include <console/console.h>
|
||||
#include <device/device.h>
|
||||
|
||||
static void enable_dev(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Enable qemu/armv7 device...\n");
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ static void set_gpio40_gfx(void)
|
|||
* enable the dedicated function in ma785gm board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void ma785gm_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard MA785GM-US2H Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -144,5 +144,5 @@ static void ma785gm_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = ma785gm_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -244,7 +244,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in ma785gmt board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void ma785gmt_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard MA785GMT-UD2H Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -255,5 +255,5 @@ static void ma785gmt_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = ma785gmt_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -71,7 +71,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void ma78gm_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard MA78GM-US2H Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -80,5 +80,5 @@ static void ma78gm_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = ma78gm_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -53,7 +53,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in kino board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void kino_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard Kino Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -62,5 +62,5 @@ static void kino_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = kino_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -41,12 +41,12 @@ static void init(struct device *dev)
|
|||
outb(inb(SCH3114_RTR_HWM_DAT) | 0x01, SCH3114_RTR_HWM_DAT);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("IEI PM-LX2-800-R10 Mainboard")
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -100,7 +100,7 @@ u8 is_dev3_present(void)
|
|||
* enable the dedicated function in this board.
|
||||
* This function called early than rs780_enable.
|
||||
*************************************************/
|
||||
static void pa78vm5_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard PA78VM5 Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -109,5 +109,5 @@ static void pa78vm5_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = pa78vm5_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -180,7 +180,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in dbm690t board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void kt690_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard KT690 Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -190,5 +190,5 @@ static void kt690_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = kt690_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -77,11 +77,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "LiPPERT Hurricane-LX EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -81,11 +81,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "LiPPERT LiteRunner-LX EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -71,11 +71,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "LiPPERT RoadRunner-LX EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -76,11 +76,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "LiPPERT SpaceRunner-LX EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -26,12 +26,12 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "ALIX1.C EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -26,12 +26,12 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "ALIX.2D EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -832,7 +832,7 @@ static void mainboard_init(device_t dev)
|
|||
* enable the dedicated function in sina board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void enable_dev(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
|
||||
printk(BIOS_INFO, "%s %s[%x/%x] %s\n",
|
||||
|
@ -849,5 +849,5 @@ static void enable_dev(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -65,11 +65,11 @@ void set_pcie_dereset(void *nbconfig)
|
|||
/*************************************************
|
||||
* enable the dedicated function in h8qgi board.
|
||||
*************************************************/
|
||||
static void h8qgi_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = h8qgi_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -67,7 +67,7 @@ void set_pcie_dereset(void *nbconfig)
|
|||
/*************************************************
|
||||
* enable the dedicated function in h8scm board.
|
||||
*************************************************/
|
||||
static void h8scm_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
}
|
||||
|
@ -80,5 +80,5 @@ int add_mainboard_resources(struct lb_memory *mem)
|
|||
#endif
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = h8scm_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -69,7 +69,7 @@ void set_pcie_dereset(void)
|
|||
* enable the dedicated function in h8scm board.
|
||||
* This function called early than sr5650_enable.
|
||||
*************************************************/
|
||||
static void h8scm_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard H8SCM Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -92,5 +92,5 @@ static void h8scm_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = h8scm_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -222,7 +222,7 @@ static void lcd_panel_id(rs690_vbios_regs *vbios_regs, u8 num_id)
|
|||
* enable the dedicated function in tim5690 board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void tim5690_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
u16 gpio_base = IT8712F_SIMPLE_IO_BASE;
|
||||
#if CONFIG_VGA_ROM_RUN
|
||||
|
@ -257,5 +257,5 @@ void mainboard_post(u8 value)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = tim5690_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -140,7 +140,7 @@ static void set_thermal_config(void)
|
|||
* enable the dedicated function in tim8690 board.
|
||||
* This function called early than rs690_enable.
|
||||
*************************************************/
|
||||
static void tim8690_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard tim8690 Enable. dev=0x%p\n", dev);
|
||||
|
||||
|
@ -149,5 +149,5 @@ static void tim8690_enable(device_t dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = tim8690_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -35,7 +35,7 @@ static void irqdump(void)
|
|||
/* TODO: finish up mmcr struct in sc520.h, and;
|
||||
- set ADDDECTL (now done in raminit.c in cpu/amd/sc520
|
||||
*/
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
volatile struct mmcr *mmcr = MMCRDEFAULT;
|
||||
|
||||
|
@ -143,6 +143,6 @@ static void enable_dev(struct device *dev)
|
|||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
|
@ -26,11 +26,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "Geos EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -67,11 +67,11 @@ void set_pcie_dereset(void *nbconfig)
|
|||
/*************************************************
|
||||
* enable the dedicated function in s8226 board.
|
||||
*************************************************/
|
||||
static void s8226_enable(device_t dev)
|
||||
static void mainboard_enable(device_t dev)
|
||||
{
|
||||
printk(BIOS_INFO, "Mainboard " CONFIG_MAINBOARD_PART_NUMBER " Enable.\n");
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = s8226_enable,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -26,11 +26,11 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "Win Enterprises PL-6064/65 EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
|
|
@ -28,12 +28,12 @@ static void init(struct device *dev)
|
|||
printk(BIOS_DEBUG, "S50 EXIT %s\n", __func__);
|
||||
}
|
||||
|
||||
static void enable_dev(struct device *dev)
|
||||
static void mainboard_enable(struct device *dev)
|
||||
{
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_ops = {
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = mainboard_enable,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue