Carl-Daniel's part:
This patch converts mainboard_$VENDOR_$BOARD_ops to mainboard_ops and mainboard_$VENDOR_$BOARD_config to mainboard_config. Ron's part: The config change that makes the naming change not break every build. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3954 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Myles Watson
parent
d58671c4bf
commit
7ad11e8d33
@@ -18,8 +18,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
extern struct chip_operations mainboard_amd_db800_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_db800_config {
|
||||
struct mainboard_config {
|
||||
int nothing;
|
||||
};
|
||||
|
@@ -32,7 +32,7 @@ static void enable_dev(struct device *dev)
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_amd_db800_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD DB800 Mainboard")
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@@ -17,9 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
extern struct chip_operations mainboard_amd_dbm690t_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_dbm690t_config
|
||||
struct mainboard_config
|
||||
{
|
||||
u32 uma_size; /* How many UMA should be used in memory for TOP. */
|
||||
};
|
||||
|
@@ -199,8 +199,8 @@ static void set_thermal_config()
|
||||
*************************************************/
|
||||
void dbm690t_enable(device_t dev)
|
||||
{
|
||||
struct mainboard_amd_dbm690t_config *mainboard =
|
||||
(struct mainboard_amd_dbm690t_config *)dev->chip_info;
|
||||
struct mainboard_config *mainboard =
|
||||
(struct mainboard_config *)dev->chip_info;
|
||||
|
||||
printk_info("Mainboard DBM690T Enable. dev=0x%x\n", dev);
|
||||
|
||||
@@ -266,7 +266,7 @@ int add_mainboard_resources(struct lb_memory *mem)
|
||||
/*
|
||||
* CONFIG_CHIP_NAME defined in Option.lb.
|
||||
*/
|
||||
struct chip_operations mainboard_amd_dbm690t_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD DBM690T Mainboard")
|
||||
.enable_dev = dbm690t_enable,
|
||||
};
|
||||
|
@@ -18,8 +18,8 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
extern struct chip_operations mainboard_amd_norwich_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_norwich_config {
|
||||
struct mainboard_config {
|
||||
int nothing;
|
||||
};
|
||||
|
@@ -32,7 +32,7 @@ static void enable_dev(struct device *dev)
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_amd_norwich_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD Norwich Mainboard")
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@@ -17,9 +17,9 @@
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
extern struct chip_operations mainboard_amd_pistachio_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_pistachio_config
|
||||
struct mainboard_config
|
||||
{
|
||||
unsigned long uma_size; /* How many UMA should be used in memory for TOP. */
|
||||
};
|
||||
|
@@ -271,8 +271,8 @@ static void set_thermal_config()
|
||||
*************************************************/
|
||||
void pistachio_enable(device_t dev)
|
||||
{
|
||||
struct mainboard_amd_pistachio_config *mainboard =
|
||||
(struct mainboard_amd_pistachio_config *)dev->chip_info;
|
||||
struct mainboard_config *mainboard =
|
||||
(struct mainboard_config *)dev->chip_info;
|
||||
|
||||
printk_info("Mainboard Pistachio Enable. dev=0x%x\n", dev);
|
||||
|
||||
@@ -338,7 +338,7 @@ int add_mainboard_resources(struct lb_memory *mem)
|
||||
/*
|
||||
* CONFIG_CHIP_NAME defined in Option.lb.
|
||||
*/
|
||||
struct chip_operations mainboard_amd_pistachio_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD Pistachio Mainboard")
|
||||
.enable_dev = pistachio_enable,
|
||||
};
|
||||
|
@@ -1,5 +1,5 @@
|
||||
extern struct chip_operations mainboard_amd_rumba_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_rumba_config {
|
||||
struct mainboard_config {
|
||||
int nicirq;
|
||||
};
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include "chip.h"
|
||||
|
||||
static void init(struct device *dev) {
|
||||
struct mainboard_amd_rumba_config *mainboard = (struct mainboard_amd_rumba_config*)dev->chip_info;
|
||||
struct mainboard_config *mainboard = (struct mainboard_config*)dev->chip_info;
|
||||
device_t nic = NULL;
|
||||
unsigned bus = 0;
|
||||
unsigned devfn = PCI_DEVFN(0xd, 0);
|
||||
@@ -36,7 +36,7 @@ static void enable_dev(struct device *dev)
|
||||
dev->ops->init = init;
|
||||
}
|
||||
|
||||
struct chip_operations mainboard_amd_rumba_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD Rumba Mainboard")
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@@ -1,6 +1,6 @@
|
||||
extern struct chip_operations mainboard_amd_serengeti_cheetah_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_serengeti_cheetah_config {
|
||||
struct mainboard_config {
|
||||
// int fixup_scsi;
|
||||
// int fixup_vga;
|
||||
};
|
||||
|
@@ -2,7 +2,7 @@
|
||||
#include "chip.h"
|
||||
|
||||
#if CONFIG_CHIP_NAME == 1
|
||||
struct chip_operations mainboard_amd_serengeti_cheetah_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD Serengeti Cheetah Mainboard")
|
||||
};
|
||||
#endif
|
||||
|
@@ -18,9 +18,9 @@
|
||||
*/
|
||||
|
||||
|
||||
extern struct chip_operations mainboard_amd_serengeti_cheetah_fam10_ops;
|
||||
extern struct chip_operations mainboard_ops;
|
||||
|
||||
struct mainboard_amd_serengeti_cheetah_fam10_config {
|
||||
struct mainboard_config {
|
||||
// int fixup_scsi;
|
||||
// int fixup_vga;
|
||||
};
|
||||
|
@@ -26,7 +26,7 @@
|
||||
#include "chip.h"
|
||||
|
||||
#if CONFIG_CHIP_NAME == 1
|
||||
struct chip_operations mainboard_amd_serengeti_cheetah_fam10_ops = {
|
||||
struct chip_operations mainboard_ops = {
|
||||
CHIP_NAME("AMD family 10 Cheetah mainboard")
|
||||
};
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user