1 /*
2  * SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 
9 /* Magic is derived from sha256sum of the string "espmcuboot"
10  * The application header magic must match this number
11  */
12 #define ESP_LOAD_HEADER_MAGIC 0xace637d3
13 
14 /* Load header that should be a part of application image
15  * for MCUboot-Espressif port booting.
16  */
17 typedef struct esp_image_load_header {
18     uint32_t header_magic;          /* Magic for load header */
19     uint32_t entry_addr;            /* Application entry address */
20     uint32_t iram_dest_addr;        /* Destination address(VMA) for IRAM region */
21     uint32_t iram_flash_offset;     /* Flash offset(LMA) for start of IRAM region */
22     uint32_t iram_size;             /* Size of IRAM region */
23     uint32_t dram_dest_addr;        /* Destination address(VMA) for DRAM region */
24     uint32_t dram_flash_offset;     /* Flash offset(LMA) for start of DRAM region */
25     uint32_t dram_size;             /* Size of DRAM region */
26 } esp_image_load_header_t;
27