aboutsummaryrefslogtreecommitdiffstats
path: root/src/tcgbios.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2015-06-09 19:56:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2015-06-11 18:36:17 -0400
commitd2f01e63fefc0abe3ddad14ddd29fbb00981ee57 (patch)
treec1ede28245e9d2483e04244bb9426ad5bf297397 /src/tcgbios.c
parentb972a962f73cd6511bcddd84f8da244b3867406b (diff)
downloadseabios-d2f01e63fefc0abe3ddad14ddd29fbb00981ee57.tar.gz
tpm: Introduce a #define for command tag
Introduce a #define for the TPM command tag 0x00c1. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Diffstat (limited to 'src/tcgbios.c')
-rw-r--r--src/tcgbios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcgbios.c b/src/tcgbios.c
index 4bf6fe97..94d54d80 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);