-/**\r
- Check if Capsule On Disk is supported.\r
-\r
- @retval TRUE Capsule On Disk is supported.\r
- @retval FALSE Capsule On Disk is not supported.\r
-\r
-**/\r
-BOOLEAN\r
-IsCapsuleOnDiskSupported (\r
- VOID\r
- )\r
-{\r
- EFI_STATUS Status;\r
- UINT64 OsIndicationsSupported;\r
- UINTN DataSize;\r
-\r
- DataSize = sizeof(UINT64);\r
- Status = gRT->GetVariable (\r
- L"OsIndicationsSupported",\r
- &gEfiGlobalVariableGuid,\r
- NULL,\r
- &DataSize,\r
- &OsIndicationsSupported\r
- );\r
- if (EFI_ERROR (Status)) {\r
- return FALSE;\r
- }\r
-\r
- if (OsIndicationsSupported & EFI_OS_INDICATIONS_FILE_CAPSULE_DELIVERY_SUPPORTED) {\r
- return TRUE;\r
- }\r
-\r
- return FALSE;\r
-}\r
-\r