summaryrefslogtreecommitdiff
path: root/src/northbridge/amd
diff options
context:
space:
mode:
authorCorey Osgood <corey.osgood@gmail.com>2008-12-19 03:36:48 +0000
committerCorey Osgood <corey.osgood@gmail.com>2008-12-19 03:36:48 +0000
commite562f7258e573e52ab6e81f85f400999c3d9caaa (patch)
treecb853f5f7039e0e0668c12b6ea1c837eb698a3d7 /src/northbridge/amd
parent716e5670fe5a2edcb66e587ec5a31377b2099ba8 (diff)
Fix a LOT of implicit function declarations before they become errors.
Signed-off-by: Corey Osgood <corey.osgood@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3822 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/northbridge/amd')
-rw-r--r--src/northbridge/amd/amdk8/northbridge.c1
-rw-r--r--src/northbridge/amd/gx1/northbridge.c1
-rw-r--r--src/northbridge/amd/gx2/chipsetinit.c2
-rw-r--r--src/northbridge/amd/gx2/northbridge.c1
-rw-r--r--src/northbridge/amd/lx/northbridge.c1
5 files changed, 5 insertions, 1 deletions
diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c
index 2c7c9813c2..afe18a1255 100644
--- a/src/northbridge/amd/amdk8/northbridge.c
+++ b/src/northbridge/amd/amdk8/northbridge.c
@@ -16,6 +16,7 @@
#include <string.h>
#include <bitops.h>
#include <cpu/cpu.h>
+#include <cpu/amd/model_fxx_rev.h>
#include <cpu/x86/lapic.h>
diff --git a/src/northbridge/amd/gx1/northbridge.c b/src/northbridge/amd/gx1/northbridge.c
index f2e020bd2e..5a01979c0a 100644
--- a/src/northbridge/amd/gx1/northbridge.c
+++ b/src/northbridge/amd/gx1/northbridge.c
@@ -11,6 +11,7 @@
#include "northbridge.h"
#include <cpu/amd/gx1def.h>
#include <cpu/x86/cache.h>
+#include <cpu/cpu.h>
#define NORTHBRIDGE_FILE "northbridge.c"
/*
diff --git a/src/northbridge/amd/gx2/chipsetinit.c b/src/northbridge/amd/gx2/chipsetinit.c
index e75135d719..53a90535a5 100644
--- a/src/northbridge/amd/gx2/chipsetinit.c
+++ b/src/northbridge/amd/gx2/chipsetinit.c
@@ -14,7 +14,7 @@
#include <cpu/x86/cache.h>
#include "../../../southbridge/amd/cs5536/cs5536.h"
-
+extern int sizeram(void);
/* the structs in this file only set msr.lo. But ... that may not always be true */
struct msrinit {
diff --git a/src/northbridge/amd/gx2/northbridge.c b/src/northbridge/amd/gx2/northbridge.c
index c035931ebe..7702d3b5a7 100644
--- a/src/northbridge/amd/gx2/northbridge.c
+++ b/src/northbridge/amd/gx2/northbridge.c
@@ -13,6 +13,7 @@
#include <cpu/x86/msr.h>
#include <cpu/x86/cache.h>
#include <cpu/amd/vr.h>
+#include <cpu/cpu.h>
#include "../../../southbridge/amd/cs5536/cs5536.h"
#define VIDEO_MB 8
diff --git a/src/northbridge/amd/lx/northbridge.c b/src/northbridge/amd/lx/northbridge.c
index ead274b729..588023cbbc 100644
--- a/src/northbridge/amd/lx/northbridge.c
+++ b/src/northbridge/amd/lx/northbridge.c
@@ -32,6 +32,7 @@
#include <cpu/x86/msr.h>
#include <cpu/x86/cache.h>
#include <cpu/amd/vr.h>
+#include <cpu/cpu.h>
#include "chip.h"
#include "northbridge.h"
#include "../../../southbridge/amd/cs5536/cs5536.h"