From b6edea8b687182bc4572c4e2e8af48f32b213dad Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 23 Jun 2014 17:24:48 +0400 Subject: hw/xtensa/xtfpga: add memory info to bootparam Signed-off-by: Max Filippov --- hw/xtensa/bootparam.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'hw/xtensa/bootparam.h') 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; -- cgit v1.1