Check the BlockSid feature capability through check
BlockSid header in the DiscoveryHeader.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
// 1 - The initial C_PIN_SID PIN value is equal to the C_PIN_MSID PIN value\r
//\r
UINT32 CpinUponRevert : 1;\r
+\r
+ //\r
+ // Media encryption supported (0 - not supported, 1 - supported)\r
+ //\r
+ UINT32 BlockSid : 1;\r
+\r
} OPAL_DISK_SUPPORT_ATTRIBUTE;\r
\r
//\r
SupportedAttributes->MediaEncryption = Feat->Locking.MediaEncryption;\r
}\r
\r
+ Size = 0;\r
+ Feat = (OPAL_LEVEL0_FEATURE_DESCRIPTOR*) TcgGetFeature (DiscoveryHeader, TCG_FEATURE_BLOCK_SID, &Size);\r
+ if (Feat != NULL && Size >= sizeof (TCG_BLOCK_SID_FEATURE_DESCRIPTOR)) {\r
+ SupportedAttributes->BlockSid = TRUE;\r
+ }\r
+\r
DEBUG ((DEBUG_INFO, "Base COMID 0x%04X \n", *OpalBaseComId));\r
\r
\r