view tools/firmware/rombios/32bit/tcgbios/tpm_drivers.h @ 13681:c07326324f8d

[HVM] Add TCG BIOS extensions to the high memory area along with
some often-used libc utility functions. The TCG extensions are
described here:

I have tried to keep the patching with rombios.c to a minimum, but
some amount of code needs to be inserted at various locations.

The code is currently deactivated, but can be activated by setting
BX_TCGBIOS to '1'.

Signed-off-by: Stefan Berger <>
author kaf24@localhost.localdomain
date Fri Jan 26 16:38:32 2007 +0000 (2007-01-26)
line source
1 #ifndef TPM_DRIVER_H
2 /* low level driver implementation */
3 struct tpm_driver {
4 uint32_t baseaddr;
5 uint32_t (*activate)(uint32_t baseaddr);
6 uint32_t (*ready)(uint32_t baseaddr);
7 uint32_t (*senddata)(uint32_t baseaddr, unsigned char *data, uint32_t len);
8 uint32_t (*readresp)(uint32_t baseaddr, unsigned char *buffer, uint32_t len);
9 uint32_t (*waitdatavalid)(uint32_t baseaddr);
10 uint32_t (*waitrespready)(uint32_t baseaddr, uint32_t timeout);
11 uint32_t (*probe)(uint32_t baseaddr);
12 };
14 #define TPM_NUM_DRIVERS 1
16 #define TPM_INVALID_DRIVER -1
18 #endif