mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 10:45:02 +00:00
Add missing TPM constant and fix test code.
Review URL: http://codereview.chromium.org/2320001
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
#define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff)
|
#define TPM_NV_INDEX_LOCK ((uint32_t)0xffffffff)
|
||||||
#define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14)
|
#define TPM_NV_PER_WRITE_STCLEAR (((uint32_t)1)<<14)
|
||||||
#define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0)
|
#define TPM_NV_PER_PPWRITE (((uint32_t)1)<<0)
|
||||||
|
#define TPM_NV_PER_GLOBALLOCK (((uint32_t)1)<<15)
|
||||||
|
|
||||||
typedef uint8_t TSS_BOOL;
|
typedef uint8_t TSS_BOOL;
|
||||||
typedef uint16_t TPM_STRUCTURE_TAG;
|
typedef uint16_t TPM_STRUCTURE_TAG;
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ int main(void)
|
|||||||
SetupTPM();
|
SetupTPM();
|
||||||
GetStoredVersion(0);
|
GetStoredVersion(0);
|
||||||
WriteStoredVersion(0, 0);
|
WriteStoredVersion(0, 0);
|
||||||
LockStoredVersion(0);
|
LockFirmwareVersions();
|
||||||
|
LockKernelVersionsByLockingPP();
|
||||||
|
|
||||||
// tlcl.h
|
// tlcl.h
|
||||||
TlclLibinit();
|
TlclLibinit();
|
||||||
@@ -53,8 +54,8 @@ int main(void)
|
|||||||
TlclSetNvLocked();
|
TlclSetNvLocked();
|
||||||
TlclIsOwned();
|
TlclIsOwned();
|
||||||
TlclForceClear();
|
TlclForceClear();
|
||||||
TlclPhysicalEnable();
|
TlclSetEnable();
|
||||||
TlclPhysicalSetDeactivated(0);
|
TlclSetDeactivated(0);
|
||||||
TlclGetFlags(0, 0);
|
TlclGetFlags(0, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user