diff options
author | Patrick Georgi <patrick.georgi@secunet.com> | 2011-01-28 07:54:11 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2011-01-28 07:54:11 +0000 |
commit | 1e916e076640c133dd32d69804325db02f1707be (patch) | |
tree | 6541c5d18707202ab755ac3de7d8e7ef0e9d1dce /util/nvramtool/common.h | |
parent | 49a74437aab0c253243e62aca20966cf22f864e6 (diff) |
Move CMOS handling into separate files in accessors
Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6313 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/common.h')
-rw-r--r-- | util/nvramtool/common.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/util/nvramtool/common.h b/util/nvramtool/common.h index 5d6e2046d7..8ad0f65a38 100644 --- a/util/nvramtool/common.h +++ b/util/nvramtool/common.h @@ -43,30 +43,6 @@ #include <string.h> #include <ctype.h> -#if defined(__FreeBSD__) -#include <sys/types.h> -#include <machine/cpufunc.h> -#define OUTB(x, y) do { u_int tmp = (y); outb(tmp, (x)); } while (0) -#define OUTW(x, y) do { u_int tmp = (y); outw(tmp, (x)); } while (0) -#define OUTL(x, y) do { u_int tmp = (y); outl(tmp, (x)); } while (0) -#define INB(x) __extension__ ({ u_int tmp = (x); inb(tmp); }) -#define INW(x) __extension__ ({ u_int tmp = (x); inw(tmp); }) -#define INL(x) __extension__ ({ u_int tmp = (x); inl(tmp); }) -#else -#if defined(__GLIBC__) -#include <sys/io.h> -#endif -#if (defined(__MACH__) && defined(__APPLE__)) -#include <DirectIO/darwinio.h> -#endif -#define OUTB outb -#define OUTW outw -#define OUTL outl -#define INB inb -#define INW inw -#define INL inl -#endif - #define FALSE 0 #define TRUE 1 |