summaryrefslogtreecommitdiffstats
path: root/util/x86emu/yabel/device.h
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2009-03-01 10:08:06 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2009-03-01 10:08:06 +0000
commitbe57458c77a5675d676859fb32031babb609c8a8 (patch)
treece5b4bf4983329fbabd7898c339723b53d207d71 /util/x86emu/yabel/device.h
parentcc295dd73a20f340cfab7e82a0a1d2a0a3b37edf (diff)
downloadcoreboot-be57458c77a5675d676859fb32031babb609c8a8.tar.gz
coreboot-be57458c77a5675d676859fb32031babb609c8a8.tar.bz2
coreboot-be57458c77a5675d676859fb32031babb609c8a8.zip
This patch contains the necessary changes to util/x86emu of the v3 tree to use
it in the v2 tree as well. Requires the yabel-prereq.diff patch in order to work in v2. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Joseph Smith <joe@settoplinux.org> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1141 f3766cd6-281f-0410-b1cd-43a5c92072e9
Diffstat (limited to 'util/x86emu/yabel/device.h')
-rw-r--r--util/x86emu/yabel/device.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/util/x86emu/yabel/device.h b/util/x86emu/yabel/device.h
index 5fc5c17eb6e7..c8e78db88607 100644
--- a/util/x86emu/yabel/device.h
+++ b/util/x86emu/yabel/device.h
@@ -14,11 +14,16 @@
#define DEVICE_LIB_H
#include <types.h>
+#if COREBOOT_V2
+#include <arch/byteorder.h>
+#include "compat/of.h"
+#else
#include <cpu.h>
+#include <byteorder.h>
#include "of.h"
+#endif
#include "debug.h"
-#include <byteorder.h>
// a Expansion Header Struct as defined in Plug and Play BIOS Spec 1.0a Chapter 3.2
typedef struct {