]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/coreboot_tables.h
x86: Prepare configuration tables in dedicated high memory region
[u-boot] / arch / x86 / include / asm / coreboot_tables.h
index ab4425f78ac4049e710994afc8b9b68fe6a8bfd2..e036f744f679b1b9b5c06a7f0457f845b83e445f 100644 (file)
@@ -294,4 +294,33 @@ struct cbmem_entry {
 #define CBMEM_ID_CONSOLE               0x434f4e53
 #define CBMEM_ID_NONE                  0x00000000
 
+/**
+ * high_table_reserve() - reserve configuration table in high memory
+ *
+ * This reserves configuration table in high memory.
+ *
+ * @return:    always 0
+ */
+int high_table_reserve(void);
+
+/**
+ * high_table_malloc() - allocate configuration table in high memory
+ *
+ * This allocates configuration table in high memory.
+ *
+ * @bytes:     size of configuration table to be allocated
+ * @return:    pointer to configuration table in high memory
+ */
+void *high_table_malloc(size_t bytes);
+
+/**
+ * write_coreboot_table() - write coreboot table
+ *
+ * This writes coreboot table at a given address.
+ *
+ * @addr:      start address to write coreboot table
+ * @cfg_tables:        pointer to configuration table memory area
+ */
+void write_coreboot_table(u32 addr, struct memory_area *cfg_tables);
+
 #endif