IN VOID *Context\r
)\r
{\r
- EFI_STATUS Status;\r
- OPAL_DRIVER_DEVICE* Itr;\r
- TCG_RESULT Result;\r
- OPAL_EXTRA_INFO_VAR OpalExtraInfo;\r
- UINTN DataSize;\r
- OPAL_SESSION Session;\r
+ OPAL_DRIVER_DEVICE *Itr;\r
+ TCG_RESULT Result;\r
+ OPAL_SESSION Session;\r
+ UINT32 PpStorageFlag;\r
\r
gBS->CloseEvent (Event);\r
\r
- DataSize = sizeof (OPAL_EXTRA_INFO_VAR);\r
- Status = gRT->GetVariable (\r
- OPAL_EXTRA_INFO_VAR_NAME,\r
- &gOpalExtraInfoVariableGuid,\r
- NULL,\r
- &DataSize,\r
- &OpalExtraInfo\r
- );\r
- if (EFI_ERROR (Status)) {\r
- return;\r
- }\r
-\r
- if (OpalExtraInfo.EnableBlockSid == TRUE) {\r
+ PpStorageFlag = TcgPhysicalPresenceStorageLibReturnStorageFlags();\r
+ if ((PpStorageFlag & TCG_BIOS_STORAGE_MANAGEMENT_FLAG_ENABLE_BLOCK_SID) != 0) {\r
//\r
// Send BlockSID command to each Opal disk\r
//\r