put extern keyword in front of declaration, make the compiler do it job
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1545 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
d16753be86
commit
52f851dd1d
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_arima_hdama_control;
|
||||
extern struct chip_control mainboard_arima_hdama_control;
|
||||
|
||||
struct mainboard_arima_hdama_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_arima_hdama_control;
|
||||
extern struct chip_control mainboard_arima_hdama_control;
|
||||
|
||||
struct mainboard_arima_hdama_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_amd_quartet_control;
|
||||
extern struct chip_control mainboard_amd_quartet_control;
|
||||
|
||||
struct mainboard_amd_quartet_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_amd_solo_control;
|
||||
extern struct chip_control mainboard_amd_solo_control;
|
||||
|
||||
struct mainboard_amd_solo_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_arima_hdama_control;
|
||||
extern struct chip_control mainboard_arima_hdama_control;
|
||||
|
||||
struct mainboard_arima_hdama_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_ibm_e325_control;
|
||||
extern struct chip_control mainboard_ibm_e325_control;
|
||||
|
||||
struct mainboard_ibm_e325_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_newisys_khepri_control;
|
||||
extern struct chip_control mainboard_newisys_khepri_control;
|
||||
|
||||
struct mainboard_newisys_khepri_config {
|
||||
int nothing;
|
||||
|
|
|
@ -39,7 +39,7 @@ driver mainboard.o
|
|||
#dir /drivers/si/3114
|
||||
#dir /drivers/intel/82551
|
||||
driver ti_firewire.o
|
||||
#object reset.o
|
||||
|
||||
if HAVE_MP_TABLE object mptable.o end
|
||||
if HAVE_PIRQ_TABLE object irq_tables.o end
|
||||
#
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
#include <device/pci_ops.h>
|
||||
#include "../../../northbridge/amd/amdk8/northbridge.h"
|
||||
#include "chip.h"
|
||||
//#include <part/mainboard.h>
|
||||
|
||||
unsigned long initial_apicid[CONFIG_MAX_CPUS] =
|
||||
{
|
||||
0,1
|
||||
};
|
||||
|
||||
#if 0
|
||||
static void fixup_lsi_53c1030(struct device *pdev)
|
||||
{
|
||||
|
@ -36,7 +37,7 @@ static void fixup_lsi_53c1030(struct device *pdev)
|
|||
|
||||
}
|
||||
#endif
|
||||
//extern static void lsi_scsi_init(struct device *dev);
|
||||
|
||||
#if 0
|
||||
static void print_pci_regs(struct device *dev)
|
||||
{
|
||||
|
@ -165,12 +166,7 @@ enable(struct chip *chip, enum chip_pass pass)
|
|||
}
|
||||
|
||||
}
|
||||
void final_mainboard_fixup(void)
|
||||
{
|
||||
#if 0
|
||||
enable_ide_devices();
|
||||
#endif
|
||||
}
|
||||
|
||||
static struct device_operations mainboard_operations = {
|
||||
.read_resources = root_dev_read_resources,
|
||||
.set_resources = root_dev_set_resources,
|
||||
|
@ -183,6 +179,8 @@ static struct device_operations mainboard_operations = {
|
|||
static void enumerate(struct chip *chip)
|
||||
{
|
||||
struct chip *child;
|
||||
|
||||
/* update device operation for dynamic root */
|
||||
dev_root.ops = &mainboard_operations;
|
||||
chip->dev = &dev_root;
|
||||
chip->bus = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_via_epia_m_control;
|
||||
extern struct chip_control mainboard_via_epia_m_control;
|
||||
|
||||
struct mainboard_via_epia_m_config {
|
||||
int nothing;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
struct chip_control mainboard_via_epia_control;
|
||||
extern struct chip_control mainboard_via_epia_control;
|
||||
|
||||
struct mainboard_via_epia_config {
|
||||
int nothing;
|
||||
|
|
Loading…
Reference in New Issue