aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2024-04-26 17:15:42 +0800
committerSong Gao <gaosong@loongson.cn>2024-04-29 10:25:56 +0800
commit6042385149a0fb3f4a51d264fc3dc42775819c79 (patch)
tree630ce94696b2610ccbd02fe075353284018beb9c /include
parent060685041ce6b98e5fb015b1d0318eb2f72944b5 (diff)
downloadqemu-6042385149a0fb3f4a51d264fc3dc42775819c79.zip
qemu-6042385149a0fb3f4a51d264fc3dc42775819c79.tar.gz
qemu-6042385149a0fb3f4a51d264fc3dc42775819c79.tar.bz2
hw/loongarch: Init efi_fdt table
The efi_system_table adds a efi_fdt configuration table. Signed-off-by: Song Gao <gaosong@loongson.cn> Reviewed-by: Bibo Mao <maobibo@loongson.cn> Message-Id: <20240426091551.2397867-9-gaosong@loongson.cn>
Diffstat (limited to 'include')
-rw-r--r--include/hw/loongarch/boot.h4
-rw-r--r--include/hw/loongarch/virt.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/loongarch/boot.h b/include/hw/loongarch/boot.h
index 42d1ee3..4ebcc89 100644
--- a/include/hw/loongarch/boot.h
+++ b/include/hw/loongarch/boot.h
@@ -34,6 +34,10 @@ typedef struct {
EFI_GUID(0x5568e427, 0x68fc, 0x4f3d, 0xac, 0x74, \
0xca, 0x55, 0x52, 0x31, 0xcc, 0x68)
+#define DEVICE_TREE_GUID \
+ EFI_GUID(0xb1b621d5, 0xf19c, 0x41a5, 0x83, 0x0b, \
+ 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0)
+
struct efi_config_table {
efi_guid_t guid;
uint64_t *ptr;
diff --git a/include/hw/loongarch/virt.h b/include/hw/loongarch/virt.h
index 8a9fe40..4e14bf6 100644
--- a/include/hw/loongarch/virt.h
+++ b/include/hw/loongarch/virt.h
@@ -35,6 +35,8 @@
#define COMMAND_LINE_SIZE 512
+#define FDT_BASE 0x100000
+
extern struct memmap_entry *memmap_table;
extern unsigned memmap_entries;