53 UINT32 OpalSscLite : 1;
73 UINT32 SpIeee1667 : 1;
78 UINT32 MediaEncryption : 1;
85 UINT32 InitCpinIndicator : 1;
92 UINT32 CpinUponRevert : 1;
102 UINT32 PyriteSscV2 : 1;
107 UINT32 DataRemoval : 1;
119 OpalOwnershipUnknown,
135 UINT32 HostSessionId;
136 UINT32 TperSessionId;
137 UINT16 ComIdExtension;
139 UINT16 OpalBaseComId;
206 UINT32 HostChallengeLength,
207 const VOID *HostChallenge,
251 UINT32 MsidBufferSize,
354 BOOLEAN ReadLockEnabled,
355 BOOLEAN WriteLockEnabled,
414 BOOLEAN KeepUserData,
543 BOOLEAN HardwareReset
560 UINT16 *OpalBaseComId
595 const VOID *GeneratedSid,
597 const VOID *Password,
622 const VOID *Password,
627 BOOLEAN ReadLockEnabled,
628 BOOLEAN WriteLockEnabled,
649 const VOID *OldPassword,
650 UINT32 OldPasswordLength,
651 const VOID *NewPassword,
652 UINT32 NewPasswordLength
670 const VOID *OldPassword,
671 UINT32 OldPasswordLength,
672 const VOID *NewPassword,
673 UINT32 NewPasswordLength
689 const VOID *Password,
690 UINT32 PasswordLength,
708 const VOID *Password,
709 UINT32 PasswordLength,
710 BOOLEAN *PasswordFailed
726 const VOID *Password,
727 UINT32 PasswordLength,
728 BOOLEAN *PasswordFailed
747 BOOLEAN KeepUserData,
748 const VOID *Password,
749 UINT32 PasswordLength,
750 BOOLEAN *PasswordFailed,
769 const VOID *Password,
770 UINT32 PasswordLength,
789 const VOID *Password,
790 UINT32 PasswordLength,
809 UINT32 MsidBufferLength,
864 const VOID *GeneratedSid,
866 UINT8 *ActiveDataRemovalMechanism
880 OUT UINT32 *RemovalMechanismLists
UINT64 TCG_UID
UID in host native byte order.
TCG_RESULT EFIAPI OpalGetSupportedAttributesInfo(OPAL_SESSION *Session, OPAL_DISK_SUPPORT_ATTRIBUTE *SupportedAttributes, UINT16 *OpalBaseComId)
BOOLEAN EFIAPI OpalFeatureSupported(OPAL_DISK_SUPPORT_ATTRIBUTE *SupportedAttributes)
TCG_RESULT EFIAPI OpalSetPassword(OPAL_SESSION *Session, TCG_UID CpinRowUid, const VOID *NewPin, UINT32 NewPinLength, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalUtilGetActiveDataRemovalMechanism(OPAL_SESSION *Session, const VOID *GeneratedSid, UINT32 SidLength, UINT8 *ActiveDataRemovalMechanism)
TCG_RESULT EFIAPI OpalUtilSetAdminPasswordAsSid(OPAL_SESSION *AdminSpSession, const VOID *GeneratedSid, UINT32 SidLength, const VOID *Password, UINT32 PassLength)
TCG_RESULT EFIAPI OpalSetLockingSpAuthorityEnabledAndPin(OPAL_SESSION *LockingSpSession, TCG_UID CpinRowUid, TCG_UID AuthorityUid, const VOID *NewPin, UINT32 NewPinLength, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalUtilSecureErase(OPAL_SESSION *LockingSpSession, const VOID *Password, UINT32 PasswordLength, BOOLEAN *PasswordFailed)
TCG_RESULT EFIAPI OpalBlockSid(OPAL_SESSION *Session, BOOLEAN HardwareReset)
TCG_RESULT EFIAPI OpalUtilUpdateGlobalLockingRange(OPAL_SESSION *LockingSpSession, const VOID *Password, UINT32 PasswordLength, BOOLEAN ReadLocked, BOOLEAN WriteLocked)
TCG_RESULT EFIAPI OpalUtilSetSIDtoMSID(OPAL_SESSION *AdminSpSession, const VOID *Password, UINT32 PasswordLength, UINT8 *Msid, UINT32 MsidLength)
TCG_RESULT EFIAPI OpalGetLockingInfo(OPAL_SESSION *Session, TCG_LOCKING_FEATURE_DESCRIPTOR *LockingFeature)
TCG_RESULT EFIAPI OpalEndSession(OPAL_SESSION *Session)
TCG_RESULT EFIAPI OpalSetLockingRange(OPAL_SESSION *LockingSpSession, TCG_UID LockingRangeUid, UINT64 RangeStart, UINT64 RangeLength, BOOLEAN ReadLockEnabled, BOOLEAN WriteLockEnabled, BOOLEAN ReadLocked, BOOLEAN WriteLocked, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalGetTryLimit(OPAL_SESSION *LockingSpSession, TCG_UID RowUid, UINT32 *TryLimit)
TCG_RESULT EFIAPI OpalStartSession(OPAL_SESSION *Session, TCG_UID SpId, BOOLEAN Write, UINT32 HostChallengeLength, const VOID *HostChallenge, TCG_UID HostSigningAuthority, UINT8 *MethodStatus)
BOOLEAN OpalDeviceLocked(OPAL_DISK_SUPPORT_ATTRIBUTE *SupportedAttributes, TCG_LOCKING_FEATURE_DESCRIPTOR *LockingFeature)
TCG_RESULT EFIAPI OpalUtilVerifyPassword(OPAL_SESSION *LockingSpSession, const VOID *Password, UINT32 PasswordLength, TCG_UID HostSigningAuthority)
TCG_RESULT EFIAPI OpalGetMsid(OPAL_SESSION *AdminSpSession, UINT32 MsidBufferSize, UINT8 *Msid, UINT32 *MsidLength)
TCG_RESULT EFIAPI OpalParseRetrieveGlobalLockingRangeActiveKey(TCG_PARSE_STRUCT *ParseStruct, TCG_UID *ActiveKey)
TCG_RESULT EFIAPI OpalRetrieveLevel0DiscoveryHeader(OPAL_SESSION *Session, UINTN BufferSize, VOID *BuffAddress)
TCG_RESULT EFIAPI OpalActivateLockingSp(OPAL_SESSION *AdminSpSession, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalUtilDisableUser(OPAL_SESSION *LockingSpSession, const VOID *Password, UINT32 PasswordLength, BOOLEAN *PasswordFailed)
BOOLEAN EFIAPI OpalUtilAdminPasswordExists(IN UINT16 OwnerShip, IN TCG_LOCKING_FEATURE_DESCRIPTOR *LockingFeature)
TCG_RESULT EFIAPI OpalUtilSetAdminPassword(OPAL_SESSION *AdminSpSession, const VOID *OldPassword, UINT32 OldPasswordLength, const VOID *NewPassword, UINT32 NewPasswordLength)
TCG_RESULT EFIAPI OpalCreateRetrieveGlobalLockingRangeActiveKey(const OPAL_SESSION *Session, TCG_CREATE_STRUCT *CreateStruct, UINT32 *Size)
OPAL_OWNER_SHIP EFIAPI OpalUtilDetermineOwnership(OPAL_SESSION *Session, UINT8 *Msid, UINT32 MsidLength)
TCG_RESULT EFIAPI OpalRetrieveSupportedProtocolList(OPAL_SESSION *Session, UINTN BufferSize, VOID *BuffAddress)
TCG_RESULT EFIAPI OpalAdminRevert(OPAL_SESSION *LockingSpSession, BOOLEAN KeepUserData, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalDisableUser(OPAL_SESSION *LockingSpSession, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalUtilRevert(OPAL_SESSION *LockingSpSession, BOOLEAN KeepUserData, const VOID *Password, UINT32 PasswordLength, BOOLEAN *PasswordFailed, UINT8 *Msid, UINT32 MsidLength)
TCG_RESULT EFIAPI OpalGlobalLockingRangeGenKey(OPAL_SESSION *LockingSpSession, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalUtilGetDataRemovalMechanismLists(IN OPAL_SESSION *Session, OUT UINT32 *RemovalMechanismLists)
TCG_RESULT EFIAPI OpalPsidRevert(OPAL_SESSION *AdminSpSession)
TCG_RESULT EFIAPI OpalUtilPsidRevert(OPAL_SESSION *AdminSpSession, const VOID *Psid, UINT32 PsidLength)
TCG_RESULT EFIAPI OpalUtilGetMsid(OPAL_SESSION *Session, UINT8 *Msid, UINT32 MsidBufferLength, UINT32 *MsidLength)
TCG_RESULT EFIAPI OpalUpdateGlobalLockingRange(OPAL_SESSION *LockingSpSession, BOOLEAN ReadLocked, BOOLEAN WriteLocked, UINT8 *MethodStatus)
TCG_RESULT EFIAPI OpalUtilSetUserPassword(OPAL_SESSION *LockingSpSession, const VOID *OldPassword, UINT32 OldPasswordLength, const VOID *NewPassword, UINT32 NewPasswordLength)
TCG_RESULT EFIAPI OpalUtilSetOpalLockingRange(OPAL_SESSION *LockingSpSession, const VOID *Password, UINT32 PassLength, TCG_UID LockingRangeUid, UINT64 RangeStart, UINT64 RangeLength, BOOLEAN ReadLockEnabled, BOOLEAN WriteLockEnabled, BOOLEAN ReadLocked, BOOLEAN WriteLocked)
BOOLEAN EFIAPI OpalFeatureEnabled(OPAL_DISK_SUPPORT_ATTRIBUTE *SupportedAttributes, TCG_LOCKING_FEATURE_DESCRIPTOR *LockingFeature)