X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=DuetPkg%2FFSVariable%2FFSVariable.h;h=cb37c29cc2a5819c5cd16010f7f8ad44bb5c2d37;hb=40b39d5e6cff7c8ba9fdf7ffc5723aebddc07759;hp=2abec3eebaba7bc84a7c019f409d2b6f1cf9e180;hpb=a24b4043cdea93ada372dacfb18ebd4c7e4ba7f1;p=mirror_edk2.git diff --git a/DuetPkg/FSVariable/FSVariable.h b/DuetPkg/FSVariable/FSVariable.h index 2abec3eeba..cb37c29cc2 100644 --- a/DuetPkg/FSVariable/FSVariable.h +++ b/DuetPkg/FSVariable/FSVariable.h @@ -1,7 +1,13 @@ /*++ -Copyright (c) 2006 - 2007, Intel Corporation -All rights reserved. This program and the accompanying materials +Caution: This file is used for Duet platform only, do not use them in real platform. +All variable code, variable metadata, and variable data used by Duet platform are on +disk. They can be changed by user. BIOS is not able to protoect those. +Duet trusts all meta data from disk. If variable code, variable metadata and variable +data is modified in inproper way, the behavior is undefined. + +Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -28,6 +34,7 @@ Abstract: #include #include #include +#include #include #include #include @@ -91,10 +98,10 @@ typedef struct { VOID *Scratch; // Buffer used during reclaim UINTN CommonVariableTotalSize; UINTN HwErrVariableTotalSize; - CHAR8 PlatformLangCodes[256]; //Pre-allocate 256 bytes space to accommodate the PlatformlangCodes. - CHAR8 LangCodes[256]; //Pre-allocate 256 bytes space to accommodate the langCodes. - CHAR8 PlatformLang[8]; //Pre-allocate 8 bytes space to accommodate the Platformlang variable. - CHAR8 Lang[4]; //Pre-allocate 4 bytes space to accommodate the lang variable. + CHAR8 *PlatformLangCodes; + CHAR8 *LangCodes; + CHAR8 *PlatformLang; + CHAR8 Lang[ISO_639_2_ENTRY_SIZE + 1]; } VARIABLE_GLOBAL; // @@ -122,7 +129,7 @@ DuetGetVariable ( IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes OPTIONAL, IN OUT UINTN *DataSize, - OUT VOID *Data + OUT VOID *Data OPTIONAL ); EFI_STATUS @@ -143,7 +150,6 @@ SetVariable ( IN VOID *Data ); -#if (EFI_SPECIFICATION_VERSION >= 0x00020000) EFI_STATUS EFIAPI QueryVariableInfo ( @@ -152,6 +158,5 @@ QueryVariableInfo ( OUT UINT64 *RemainingVariableStorageSize, OUT UINT64 *MaximumVariableSize ); -#endif // EFI_SPECIFICATION_VERSION >= 0x00020000 #endif