aboutsummaryrefslogtreecommitdiff
path: root/hw/xtensa/bootparam.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2014-06-23 17:24:48 +0400
committerMax Filippov <jcmvbkbc@gmail.com>2014-06-29 02:32:42 +0400
commitb6edea8b687182bc4572c4e2e8af48f32b213dad (patch)
tree48c686478ebaa08350d97aecaefdb7410e92c6c8 /hw/xtensa/bootparam.h
parenta9a28591fbd4dc20d19b6408361b45c9b7300434 (diff)
downloadqemu-b6edea8b687182bc4572c4e2e8af48f32b213dad.zip
qemu-b6edea8b687182bc4572c4e2e8af48f32b213dad.tar.gz
qemu-b6edea8b687182bc4572c4e2e8af48f32b213dad.tar.bz2
hw/xtensa/xtfpga: add memory info to bootparam
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'hw/xtensa/bootparam.h')
-rw-r--r--hw/xtensa/bootparam.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/xtensa/bootparam.h b/hw/xtensa/bootparam.h
index e839bee..955f4e8 100644
--- a/hw/xtensa/bootparam.h
+++ b/hw/xtensa/bootparam.h
@@ -16,6 +16,15 @@ typedef struct BpTag {
uint16_t size;
} BpTag;
+typedef struct BpMemInfo {
+ uint32_t type;
+ uint32_t start;
+ uint32_t end;
+} BpMemInfo;
+
+#define MEMORY_TYPE_CONVENTIONAL 0x1000
+#define MEMORY_TYPE_NONE 0x2000
+
static inline size_t get_tag_size(size_t data_size)
{
return data_size + sizeof(BpTag) + 4;