summaryrefslogtreecommitdiffstats
path: root/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2018-05-07 13:27:40 +0800
committerEric Dong <eric.dong@intel.com>2018-05-07 15:03:24 +0800
commit40d32e79428b5b006ef213daf119224c9c0a59d5 (patch)
tree076a346be374f00430c76b52daa5273543ed89c2 /SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h
parenta3068f06e69ffaac94eb08e5d3b17097c264748b (diff)
downloadedk2-40d32e79428b5b006ef213daf119224c9c0a59d5.tar.gz
edk2-40d32e79428b5b006ef213daf119224c9c0a59d5.tar.bz2
edk2-40d32e79428b5b006ef213daf119224c9c0a59d5.zip
SecurityPkg/OpalPassword: Add support for pyrite 2.0 devices.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
Diffstat (limited to 'SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h')
-rw-r--r--SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h
index 2154523e93..3cfa80051f 100644
--- a/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h
+++ b/SecurityPkg/Tcg/Opal/OpalPassword/OpalDriver.h
@@ -75,6 +75,13 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gOpalComponentName2;
#define PSID_CHARACTER_LENGTH 0x20
#define MAX_PSID_TRY_COUNT 5
+//
+// The max timeout value assume the user can wait for the revert action. The unit of this macro is second.
+// If the revert time value bigger than this one, driver needs to popup a dialog to let user confirm the
+// revert action.
+//
+#define MAX_ACCEPTABLE_REVERTING_TIME 10
+
#pragma pack(1)
//
@@ -140,6 +147,8 @@ typedef struct {
TCG_LOCKING_FEATURE_DESCRIPTOR LockingFeature; // Locking Feature Descriptor retrieved from performing a Level 0 Discovery
UINT8 PasswordLength;
UINT8 Password[OPAL_MAX_PASSWORD_SIZE];
+
+ UINT32 EstimateTimeCost;
} OPAL_DISK;
//