From d80e57c9c8d02181ec53bf2858ca790ee7ce93f8 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Sat, 28 Nov 2009 05:21:42 +0000 Subject: msrtool: Add FreeBSD support using /dev/cpuctl ioctl interface Signed-off-by: Andriy Gapon Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4965 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/msrtool/msrtool.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'util/msrtool/msrtool.h') diff --git a/util/msrtool/msrtool.h b/util/msrtool/msrtool.h index fa37c8507a..c2cd6cb3a8 100644 --- a/util/msrtool/msrtool.h +++ b/util/msrtool/msrtool.h @@ -28,6 +28,10 @@ #define __DARWIN__ #include #endif +#if defined(__FreeBSD__) +#include +#include +#endif #include #define HEXCHARS "0123456789abcdefABCDEF" @@ -186,6 +190,12 @@ extern int darwin_open(uint8_t cpu, enum SysModes mode); extern int darwin_close(uint8_t cpu); extern int darwin_rdmsr(uint8_t cpu, uint32_t addr, struct msr *val); +/* freebsd.c */ +extern int freebsd_probe(const struct sysdef *system); +extern int freebsd_open(uint8_t cpu, enum SysModes mode); +extern int freebsd_close(uint8_t cpu); +extern int freebsd_rdmsr(uint8_t cpu, uint32_t addr, struct msr *val); + /** target externs **/ /* geodelx.c */ -- cgit v1.2.3