summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-12-07 19:16:07 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-12-07 19:16:07 +0000
commit4028ce7b768c9b33e4b0b1af20eede9968359071 (patch)
treef01d319ad08b5611b2bdf95c7f426d5f993635d3 /src/southbridge/intel/i82801gx
parent7f20d73eba22babbc5bf9efd8df8a3e9d3a117c7 (diff)
downloadcoreboot-4028ce7b768c9b33e4b0b1af20eede9968359071.tar.xz
Get rid of some unneeded function prototypes in romstage.c files.
Abuild-tested. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6147 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801gx')
-rw-r--r--src/southbridge/intel/i82801gx/i82801gx.h5
-rw-r--r--src/southbridge/intel/i82801gx/i82801gx_early_smbus.c2
-rw-r--r--src/southbridge/intel/i82801gx/i82801gx_smbus.h3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/southbridge/intel/i82801gx/i82801gx.h b/src/southbridge/intel/i82801gx/i82801gx.h
index f6a54e94d5..37bcf572b9 100644
--- a/src/southbridge/intel/i82801gx/i82801gx.h
+++ b/src/southbridge/intel/i82801gx/i82801gx.h
@@ -46,6 +46,11 @@ extern void i82801gx_enable(device_t dev);
void i82801gx_enable_usbdebug(unsigned int port);
#endif
+#if defined(__PRE_RAM__) && !defined(__ROMCC__) && !defined(ASSEMBLY)
+void enable_smbus(void);
+int smbus_read_byte(unsigned device, unsigned address);
+#endif
+
#define MAINBOARD_POWER_OFF 0
#define MAINBOARD_POWER_ON 1
#define MAINBOARD_POWER_KEEP 2
diff --git a/src/southbridge/intel/i82801gx/i82801gx_early_smbus.c b/src/southbridge/intel/i82801gx/i82801gx_early_smbus.c
index 658b483165..0298cc94cd 100644
--- a/src/southbridge/intel/i82801gx/i82801gx_early_smbus.c
+++ b/src/southbridge/intel/i82801gx/i82801gx_early_smbus.c
@@ -26,8 +26,6 @@
#include "i82801gx.h"
#include "i82801gx_smbus.h"
-int smbus_read_byte(unsigned device, unsigned address);
-
void enable_smbus(void)
{
device_t dev;
diff --git a/src/southbridge/intel/i82801gx/i82801gx_smbus.h b/src/southbridge/intel/i82801gx/i82801gx_smbus.h
index d1aaf5b517..a03e4cd957 100644
--- a/src/southbridge/intel/i82801gx/i82801gx_smbus.h
+++ b/src/southbridge/intel/i82801gx/i82801gx_smbus.h
@@ -19,8 +19,7 @@
*/
#include <device/smbus_def.h>
-
-void enable_smbus(void);
+#include "i82801gx.h"
static void smbus_delay(void)
{