lkml.org 
[lkml]   [2017]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [tpmdd-devel] [PATCH] tpm: consolidate the TPM startup code
From
Date
On 6/20/2017 3:31 PM, Jason Gunthorpe wrote:
>>
>> +#define TPM_ORD_STARTUP 153 +#define TPM_ST_CLEAR 1
>
> We should really have a tpm1.h and tpm2.h that has all these various
> constants and things instead of open coding them randomly all over..

While you're doing that, perhaps put the ordinal numbers in hex. The
TPM 1.2 spec uses both hex and decimal, but TPM 2.0 uses hex.

\
 
 \ /
  Last update: 2017-06-20 22:58    [W:0.066 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site