SecurityPkg:Tpm2DeviceLibDTpm: Support TPM command cancel
Support TPM Command cancel if executing command timeouts. Cancel could happen in long running command case Cc: Yao Jiewen <jiewen.yao@intel.com> Cc: Chinnusamy Rajkumar K <rajkumar.k.chinnusamy@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
TPM Interface Specification definition.
|
||||
It covers both TPM1.2 and TPM2.0.
|
||||
|
||||
Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -142,6 +142,10 @@ typedef TIS_PC_REGISTERS *TIS_PC_REGISTERS_PTR;
|
||||
///
|
||||
#define TIS_PC_ACC_ESTABLISH BIT0
|
||||
|
||||
///
|
||||
/// Write a 1 to this bit to notify TPM to cancel currently executing command
|
||||
///
|
||||
#define TIS_PC_STS_CANCEL BIT24
|
||||
///
|
||||
/// This field indicates that STS_DATA and STS_EXPECT are valid
|
||||
///
|
||||
@@ -180,4 +184,4 @@ typedef TIS_PC_REGISTERS *TIS_PC_REGISTERS_PTR;
|
||||
#define TIS_TIMEOUT_C (750 * 1000) // 750ms
|
||||
#define TIS_TIMEOUT_D (750 * 1000) // 750ms
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user