aboutsummaryrefslogtreecommitdiff
path: root/src/tcgbios.h
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2015-11-30 11:14:19 -0500
committerKevin O'Connor <kevin@koconnor.net>2015-12-20 14:36:15 -0500
commit320df85010401c6d3ee189a54c63b937d1dcade9 (patch)
treef075892f01d684d7b8d8a6e8da44ebef06141059 /src/tcgbios.h
parent4cdbc4105499f9ec872fff929e9ab5296b294903 (diff)
downloadseabios-hppa-320df85010401c6d3ee189a54c63b937d1dcade9.zip
seabios-hppa-320df85010401c6d3ee189a54c63b937d1dcade9.tar.gz
seabios-hppa-320df85010401c6d3ee189a54c63b937d1dcade9.tar.bz2
tpm: Add a menu for TPM configuration
This patch adds an new menu entry to the main menu. This menu item enables the user to enter a TPM control menu which allows control of those aspects of the TPM's state that can only be controlled while in the firmware and while physical presence can be asserted. If the machine has a TPM, the boot menu will look as follows, with the new menu item accessible by pressing the 't' key. Select boot device: 1. ata0-1: QEMU HARDDISK ATA-7 Hard-Disk (6144 MiBytes) 2. Legacy option rom 3. iPXE (PCI 00:03.0) t. TPM Menu Upon pressing t the TPM submenu will be shown: The Trusted Platform Module (TPM) is a hardware device in this machine. It can help verify the integrity of system software. The current state of the TPM is: Enabled and active Ownership has not been taken A user can take ownership of the TPM Available options are: d. Disable the TPM v. Deactivate the TPM p. Prevent installation of an owner If no change is desired or if this menu was reached by mistake, press ESC to reboot the machine. The TPM menu only shows those options that are currently accessible considering the state of the TPM. The patch adds several functions for sending those messages to the TPM required for supporting those menu items. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/tcgbios.h')
-rw-r--r--src/tcgbios.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tcgbios.h b/src/tcgbios.h
index 4d69b1e..7934fc3 100644
--- a/src/tcgbios.h
+++ b/src/tcgbios.h
@@ -13,5 +13,7 @@ u32 tpm_add_bcv(u32 bootdrv, const u8 *addr, u32 length);
u32 tpm_add_cdrom(u32 bootdrv, const u8 *addr, u32 length);
u32 tpm_add_cdrom_catalog(const u8 *addr, u32 length);
u32 tpm_option_rom(const void *addr, u32 len);
+int tpm_is_working(void);
+void tpm_menu(void);
#endif /* TCGBIOS_H */