aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-29 11:57:42 -0700
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-12-31 06:45:01 +0100
commitefd35c7d59814435cadfdd5296337cdeacd66948 (patch)
tree932c721d97730f210670f1332156df85a9e84d85 /include
parentbf5236f3ba73231d5065a0500910b1e3216b960f (diff)
downloadu-boot-efd35c7d59814435cadfdd5296337cdeacd66948.zip
u-boot-efd35c7d59814435cadfdd5296337cdeacd66948.tar.gz
u-boot-efd35c7d59814435cadfdd5296337cdeacd66948.tar.bz2
efi: Add comments to struct efi_priv
This structure is uncommented. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/efi.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h
index 0cd4b46..ac50a9c 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -400,14 +400,37 @@ static inline struct efi_mem_desc *efi_get_next_mem_desc(
return (struct efi_mem_desc *)((ulong)desc + map->desc_size);
}
+/**
+ * struct efi_priv - Information about the environment provided by EFI
+ *
+ * @parent_image: image passed into the EFI app or stub
+ * @sys_table: Pointer to system table
+ * @boot: Pointer to boot-services table
+ * @run: Pointer to runtime-services table
+ *
+ * @use_pool_for_malloc: true if all allocation should go through the EFI 'pool'
+ * methods allocate_pool() and free_pool(); false to use 'pages' methods
+ * allocate_pages() and free_pages()
+ * @ram_base: Base address of RAM (size CONFIG_EFI_RAM_SIZE)
+ * @image_data_type: Type of the loaded image (e.g. EFI_LOADER_CODE)
+ *
+ * @info: Header of the info list, holding info collected by the stub and passed
+ * to U-Boot
+ * @info_size: Size of the info list @info in bytes
+ * @next_hdr: Pointer to where to put the next header when adding to the list
+ */
struct efi_priv {
efi_handle_t parent_image;
struct efi_system_table *sys_table;
struct efi_boot_services *boot;
struct efi_runtime_services *run;
+
+ /* app: */
bool use_pool_for_malloc;
unsigned long ram_base;
unsigned int image_data_type;
+
+ /* stub: */
struct efi_info_hdr *info;
unsigned int info_size;
void *next_hdr;