aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-11-07 23:00:29 -0500
committerTom Rini <trini@konsulko.com>2021-11-07 23:00:29 -0500
commitf8ed9059001d803b0eae4b49178789aa0e29edec (patch)
tree5742b9a5d71cafcdc7a20c6c618122b8b82adc59 /include
parent52207514ba419a69a8105d16997b025f966c8879 (diff)
parentf8d7e6e941321e40c4afa39635116ca4144c4f29 (diff)
downloadu-boot-f8ed9059001d803b0eae4b49178789aa0e29edec.zip
u-boot-f8ed9059001d803b0eae4b49178789aa0e29edec.tar.gz
u-boot-f8ed9059001d803b0eae4b49178789aa0e29edec.tar.bz2
Merge tag 'efi-2022-01-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-01-rc2 Documentation: * improve description of mmc rescan * remove obsolete PPC documenation UEFI * Provide unit test for the EFI_TCG2_PROTOCOL * Implement add EFI_TCG2_PROTOCOL.SubmitCommand * Start the implementation of a 64 bit EFI app * Reduce rcar3_salvator-x image size
Diffstat (limited to 'include')
-rw-r--r--include/configs/efi-x86_app.h6
-rw-r--r--include/efi.h8
-rw-r--r--include/tpm-v2.h13
3 files changed, 23 insertions, 4 deletions
diff --git a/include/configs/efi-x86_app.h b/include/configs/efi-x86_app.h
index 33418cf..6061a6d 100644
--- a/include/configs/efi-x86_app.h
+++ b/include/configs/efi-x86_app.h
@@ -10,8 +10,8 @@
#undef CONFIG_TPM_TIS_BASE_ADDRESS
-#define CONFIG_STD_DEVICES_SETTINGS "stdin=usbkbd,vga,serial\0" \
- "stdout=vga,serial\0" \
- "stderr=vga,serial\0"
+#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial\0" \
+ "stdout=vidconsole\0" \
+ "stderr=vidconsole\0"
#endif
diff --git a/include/efi.h b/include/efi.h
index 18c13e0..b583542 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -444,10 +444,16 @@ extern char _binary_u_boot_bin_start[], _binary_u_boot_bin_end[];
*
* @return pointer to EFI system table
*/
-
struct efi_system_table *efi_get_sys_table(void);
/**
+ * efi_get_boot() - Get access to the EFI boot services table
+ *
+ * @return pointer to EFI boot services table
+ */
+struct efi_boot_services *efi_get_boot(void);
+
+/**
* efi_get_ram_base() - Find the base of RAM
*
* This is used when U-Boot is built as an EFI application.
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 13b3db6..947458b 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -641,4 +641,17 @@ u32 tpm2_write_lock(struct udevice *dev, u32 index);
*/
u32 tpm2_disable_platform_hierarchy(struct udevice *dev);
+/**
+ * submit user specified data to the TPM and get response
+ *
+ * @dev TPM device
+ * @sendbuf: Buffer of the data to send
+ * @recvbuf: Buffer to save the response to
+ * @recv_size: Pointer to the size of the response buffer
+ *
+ * @return code of the operation
+ */
+u32 tpm2_submit_command(struct udevice *dev, const u8 *sendbuf,
+ u8 *recvbuf, size_t *recv_size);
+
#endif /* __TPM_V2_H */