summaryrefslogtreecommitdiff
path: root/src/include/cpu
diff options
context:
space:
mode:
authorMaciej Pijanka <maciej.pijanka@gmail.com>2009-10-27 14:29:29 +0000
committerMyles Watson <mylesgw@gmail.com>2009-10-27 14:29:29 +0000
commitea92185755a578d9a1b5df5cbf7b05ee2cea2390 (patch)
treed7ffa935cad6e5ae7b50fa5c9ec158e0493df0c5 /src/include/cpu
parent18d7c2e31e868c9f9f78b907f607b8a1b98b46aa (diff)
downloadcoreboot-ea92185755a578d9a1b5df5cbf7b05ee2cea2390.tar.xz
Add few missing prototypes, and remove few unused (thus lonelly) variables.
TODO - x86emu need (imo) some common header with prototypes at least - clog2, ulzma, hardwaremain prototypes added by this patch probably should be moved to some header too. - in src/devices/device_util.c prototype is before function because seems, it is used only within same file, if not it should be moved to debug section of prototypes in include/device/device.h Signed-off-by: Maciej Pijanka <maciej.pijanka@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/cpu')
-rw-r--r--src/include/cpu/x86/mtrr.h4
-rw-r--r--src/include/cpu/x86/tsc.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h
index 51c0b511c7..704a9d4bb1 100644
--- a/src/include/cpu/x86/mtrr.h
+++ b/src/include/cpu/x86/mtrr.h
@@ -34,10 +34,14 @@
#if !defined(__ROMCC__) && !defined (ASSEMBLY)
+#include <device/device.h>
+void enable_fixed_mtrr(void);
void x86_setup_var_mtrrs(unsigned address_bits);
void x86_setup_mtrrs(unsigned address_bits);
int x86_mtrr_check(void);
+void set_var_mtrr_resource(void *gp, struct device *dev, struct resource *res);
+void x86_setup_fixed_mtrrs(void);
#endif /* __ROMCC__ */
diff --git a/src/include/cpu/x86/tsc.h b/src/include/cpu/x86/tsc.h
index 96afaa6e7d..455cd239fe 100644
--- a/src/include/cpu/x86/tsc.h
+++ b/src/include/cpu/x86/tsc.h
@@ -24,6 +24,8 @@ static inline unsigned long long rdtscll(void)
asm volatile ("rdtsc" : "=A" (val));
return val;
}
+
+void init_timer(void);
#endif