efi_loader: Add mem-mapped for fallback
[oweals/u-boot.git] / include / efi_api.h
index a9a6494afef44b0a664f207460e423bfdce2c8d4..94c15b279ac839332e5a4034674678707630f665 100644 (file)
@@ -297,8 +297,16 @@ struct efi_mac_addr {
 } __packed;
 
 #define DEVICE_PATH_TYPE_HARDWARE_DEVICE       0x01
+#  define DEVICE_PATH_SUB_TYPE_MEMORY          0x03
 #  define DEVICE_PATH_SUB_TYPE_VENDOR          0x04
 
+struct efi_device_path_memory {
+       struct efi_device_path dp;
+       u32 memory_type;
+       u64 start_address;
+       u64 end_address;
+} __packed;
+
 struct efi_device_path_vendor {
        struct efi_device_path dp;
        efi_guid_t guid;