summaryrefslogtreecommitdiffstats
path: root/DuetPkg/FSVariable
Commit message (Collapse)AuthorAgeFilesLines
* DuetPkg FSVariable: return error for empty str VariableName to GetVariableStar Zeng2016-05-151-0/+4
| | | | | | | | | | | | | | | | Current GetVariable implementation will return the first variable for empty str VariableName, it is because GetVariable and GetNextVariablename are sharing same function FindVariable. But UEFI sepc defines SetVariable that If VariableName is an empty string, then EFI_INVALID_PARAMETER is returned, that means an empty string variable could never be set successfully, so GetVariable should return error for empty string VariableName. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
* DuetPkg FSVariable: Minor update to the Data parameter for GetVariable()Star Zeng2016-01-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | UEFI 2.6 spec has minor update to the Data parameter for GetVariable(), and no real functional behavior change. The modifier of Data parameter: OUT VOID *Data -> OUT VOID *Data OPTIONAL The comments of Data parameter: Data The buffer to return the contents of the variable. -> Data The buffer to return the contents of the variable. May be NULL with a zero DataSize in order to determine the size buffer needed. The patch is to follow the spec to update the implementation. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19772 6f19259b-4bc3-4df7-8a09-765794883524
* Add comments for FSVariable driver which used by Duet platform only, trust ↵Eric Dong2014-10-151-0/+6
| | | | | | | | | | all meta data for this platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16218 6f19259b-4bc3-4df7-8a09-765794883524
* Add comments for FSVariable driver which used by Duet platform only, trust ↵Eric Dong2014-10-155-5/+35
| | | | | | | | | | | all meta data for this platform. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16217 6f19259b-4bc3-4df7-8a09-765794883524
* Solve a wrong pointer reference in QueryVariableInfo().erictian2011-04-271-3/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11594 6f19259b-4bc3-4df7-8a09-765794883524
* DuetPkg, MdeModulePkg: Fix variable services hang with GCC44 X64jljusten2010-12-061-0/+1
| | | | | | | | The C ellipses parameters are passed to functions differently by default with GCC 4.4. To make sure they are properly sent to VariableGetBestLanguage, we add 'EFIAPI' to this function. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11119 6f19259b-4bc3-4df7-8a09-765794883524
* Fix a bug in GetLangFromSupportedLangCodes()niruiyu2010-11-251-0/+5
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11092 6f19259b-4bc3-4df7-8a09-765794883524
* Fix AutoUpdateLangVariable() logic to handle the case PlatformLang/Lang is ↵niruiyu2010-11-243-75/+297
| | | | | | | | set before PlatformLangCodes/LangCodes. Pre-allocate pool for runtime phase. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11088 6f19259b-4bc3-4df7-8a09-765794883524
* Update the copyright notice formathhtian2010-04-286-12/+12
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10438 6f19259b-4bc3-4df7-8a09-765794883524
* Remove the work around as the Fat driver's lock issue was found and fixed.niruiyu2010-03-231-4/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10304 6f19259b-4bc3-4df7-8a09-765794883524
* variable driver doesn't support EFI_AUTHENTICATED_WRITE_ACCESS. we use:erictian2010-03-181-2/+13
| | | | | | | 1. EFI_INVALID_PARAMETER as a return value of SetVariable() to indicate it does not support this feature. 2. EFI_NOT_FOUND will be a return value of QueryVariableInfo() to indicate it does not support this feature. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10280 6f19259b-4bc3-4df7-8a09-765794883524
* Remove EFI_SPECIFICATION_VERSION macro reference in code.niruiyu2010-03-031-3/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10157 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up EFI_SPECIFICATION_VERSION and PI_SPECIFICATION_VERSION.klu22010-02-251-2/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10078 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Correct File header to ## @filelgao42010-02-241-4/+4
| | | | | | 2. Remove unnecessary .common] postfix on section. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10052 6f19259b-4bc3-4df7-8a09-765794883524
* Remove unnecessary use of FixedPcdxxx() functions and [FixedPcd] INF ↵mdkinney2010-01-301-12/+12
| | | | | | | | | | sections. These should only be used for PCDs that are used to pre-init global variables, pre-init global structures, or size arrays. Do some minor clean ups to INF files git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9872 6f19259b-4bc3-4df7-8a09-765794883524
* Use GetFirstGuidHob() instead of GetNextGuidHob() when only the first GUID ↵mdkinney2010-01-251-2/+3
| | | | | | | | instance is required Remove extra references to gEfiHobListGuid in INF files. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9797 6f19259b-4bc3-4df7-8a09-765794883524
* add DataSize check to avoid PlatformLang/Lang variable is auto-mapped when ↵eric_tian2010-01-141-3/+3
| | | | | | try to delete these variables. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9748 6f19259b-4bc3-4df7-8a09-765794883524
* add error handling for input parameter.eric_tian2009-12-221-0/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9582 6f19259b-4bc3-4df7-8a09-765794883524
* Use to use UEFI EFI_FILE_PROTOCOL to replace EFI_FILE qhuang82009-09-221-7/+7
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9299 6f19259b-4bc3-4df7-8a09-765794883524
* Detab in DuetPkgqhuang82009-08-211-3/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9170 6f19259b-4bc3-4df7-8a09-765794883524
* Fix a bug that L"PlatformLang" must be a null-terminated ASCII string ↵qhuang82009-05-041-1/+1
| | | | | | according to UEFI spec. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8233 6f19259b-4bc3-4df7-8a09-765794883524
* Replace references to RFC 3066 with RFC 4646. gikidy2009-04-301-9/+9
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8221 6f19259b-4bc3-4df7-8a09-765794883524
* improve platformlangcodes/langcodes and platformlang/lang autoupdate mechanism. eric_tian2009-04-293-256/+664
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8197 6f19259b-4bc3-4df7-8a09-765794883524
* Fix name conflict for GetVariable defined in UefiLib.hklu22009-03-252-3/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7947 6f19259b-4bc3-4df7-8a09-765794883524
* remove comment lineeric_tian2009-03-021-1/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7749 6f19259b-4bc3-4df7-8a09-765794883524
* Fix build broken for variable's header modification.klu22009-02-283-3/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7734 6f19259b-4bc3-4df7-8a09-765794883524
* 1. delete Include/Guid/VariableInfo.heric_tian2009-02-276-10/+15
| | | | | | | | | | 2. move VariableFormat.h into GUID directory and change the “Signature” field of the VARIABLE_STORE_HEADER to gEfiVariableGuid value. 3. merging VARIABLE_INFO_ENTRY structure into the new Include/Guid/VariableFormat.h 4. change gEfiVariableInfoGuid into gEfiVariableGuid. 5. modify FDF files to use new guid value instead of the original signature. 6. all code related to signature is changed to use guid value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7728 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up FSVariable:qhuang82009-02-031-26/+0
| | | | | | Remove the unused DXS file. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7406 6f19259b-4bc3-4df7-8a09-765794883524
* Move Varialbe common definitions (GET_PAD_SIZE and HEADER_ALIGN macro) into ↵lgao42009-01-092-19/+10
| | | | | | | | MdeModulePackage Include VariableFormat.h And Use PCD to replace macros in source code to reduce confusion.(FixedPcdGet32(PcdMaxVariableSize) replaces MAX_VARIABLE_SIZE, and FixedPcdGet32(PcdMaxHardwareErrorVariableSize) replaces MAX_HARDWARE_ERROR_VARIABLE_SIZE. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7230 6f19259b-4bc3-4df7-8a09-765794883524
* Clean up to update the reference of the these macros:qhuang82008-12-161-2/+2
| | | | | | | | | | | | | EFI_SIGNATURE_16 -> SIGNATURE_16 EFI_SIGNATURE_32 -> SIGNATURE_32 EFI_SIGNATURE_64 -> SIGNATURE_64 EFI_FIELD_OFFSET -> OFFSET_OF EFI_MAX_BIT -> MAX_BIT EFI_MAX_ADDRESS -> MAX_ADDRESS These macros are not defined in UEFI spec. It makes more sense to use the equivalent macros in Base.h to avoid alias. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7049 6f19259b-4bc3-4df7-8a09-765794883524
* Fix bundle of issue for ICC buildklu22008-11-261-2/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6740 6f19259b-4bc3-4df7-8a09-765794883524
* Resolved several warnings generated by GCC.jljusten2008-11-233-14/+14
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6685 6f19259b-4bc3-4df7-8a09-765794883524
* Patch to remove STATIC modifier. This is on longer recommended by EFI ↵jji42008-10-303-34/+8
| | | | | | Framework coding style. All duplicated symbols has been renamed accordingly. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6302 6f19259b-4bc3-4df7-8a09-765794883524
* clean up the un-suitable ';' location when declaring the functions.vanjeff2008-09-041-12/+6
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5820 6f19259b-4bc3-4df7-8a09-765794883524
* remove EFI_EVENT_ alias, replace them with EVT_vanjeff2008-09-041-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5813 6f19259b-4bc3-4df7-8a09-765794883524
* 1) Fix some casting working in X64 buildingklu22008-05-081-1/+5
| | | | | | 2) Use SetMem/CopyMem function to do structure initialization to avoid X64 compiler call standard C library. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5180 6f19259b-4bc3-4df7-8a09-765794883524
* Fix many bugs in DUET package and now DUET package is enabled for floppy ↵klu22008-05-052-3/+5
| | | | | | successful. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5158 6f19259b-4bc3-4df7-8a09-765794883524
* Fix some bugs in FSVariable and BdsPlatform for duet platform.klu22008-04-302-26/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5155 6f19259b-4bc3-4df7-8a09-765794883524
* Add 8254 module and fix the hob operation for R9 library.klu22008-04-292-18/+10
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5150 6f19259b-4bc3-4df7-8a09-765794883524
* Add missing module for duet package.klu22008-04-187-0/+2300
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5088 6f19259b-4bc3-4df7-8a09-765794883524