Introduce a #define for the TPM command tag 0x00c1.
Signed-off-by: Stefan Berger stefanb@linux.vnet.ibm.com --- src/tcgbios.c | 2 +- src/tcgbios.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/tcgbios.c b/src/tcgbios.c index 4bf6fe9..94d54d8 100644 --- a/src/tcgbios.c +++ b/src/tcgbios.c @@ -333,7 +333,7 @@ build_and_send_cmd_od(u8 locty, u32 ordinal, const u8 *append, u32 append_size, memset(ibuffer, 0x0, sizeof(ibuffer)); memset(obuffer, 0x0, sizeof(obuffer));
- trqh->tag = cpu_to_be16(0xc1); + trqh->tag = cpu_to_be16(TPM_TAG_RQU_CMD); trqh->totlen = cpu_to_be32(TPM_REQ_HEADER_SIZE + append_size + otherdata_size); trqh->ordinal = cpu_to_be32(ordinal); diff --git a/src/tcgbios.h b/src/tcgbios.h index 8b107bb..df89579 100644 --- a/src/tcgbios.h +++ b/src/tcgbios.h @@ -91,6 +91,8 @@ #define TPM_INVALID_POSTINIT 0x26 #define TPM_BAD_LOCALITY 0x3d
+/* TPM command tags */ +#define TPM_TAG_RQU_CMD 0x00c1
/* interrupt identifiers (al register) */ enum irq_ids {