summaryrefslogtreecommitdiff
path: root/util/msrtool/msrtool.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/msrtool/msrtool.h')
-rw-r--r--util/msrtool/msrtool.h10
1 files changed, 10 insertions, 0 deletions
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 <DirectIO/darwinio.h>
#endif
+#if defined(__FreeBSD__)
+#include <sys/ioctl.h>
+#include <sys/cpuctl.h>
+#endif
#include <pci/pci.h>
#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 */