Commit Graph

56 Commits

Author SHA1 Message Date
qwang12 0368663fd6 Bug fixes for FrameworkHiiToUefiHiiThunk;
1) Update variable name to better names.
2) Change List Entry in all data structure to "Link".
3) Update to use proper list manipulation functions in BaseLib.
4) Add in more comments and clean up HiiNewString.
5) Clean up for HiiNewPack, HiiRemovePack and the notify functions.
6) Create better name such as GetPackageCount and AssignFrameworkHiiHandle
7) Clean up the InitializeHiiDatabase entry point.
8) Remove the confusing data field in the HII_THUNK_ENTRY HiiDatabase.h.
9) Add in cleanup code for DestoryThunkContext
10) Add in code to handle the save of browser data after invoke callback 
11) Map the UEFI One Of Option code to Framework One Of Option code before calling Framework Callback.
12) Add in CreatePopUp support.
13) Add in SendForm support.
14) HiiGetPrimaryLanguages and HiiGetSecondaryLanguages should support language code in RFC639 format from Caller. Then, they should conver them to 3066 format before calling UEFI HII interfaces.
15) Make ResetStrings a NOP.
16) Remove the unnecessary dependency.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5659 6f19259b-4bc3-4df7-8a09-765794883524
2008-08-18 05:56:23 +00:00
vanjeff dee6b58df6 case UINTN to UINT32.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5457 6f19259b-4bc3-4df7-8a09-765794883524
2008-07-14 02:26:07 +00:00
qhuang8 fd0d281b3c Remove unrecognized chars in comment for all source C/h files.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5354 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-19 11:15:44 +00:00
qwang12 456f6922d3 Name the module based on the rule below
Thunk Module Name = (Produced)To(Consumed)Thunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5349 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 08:03:36 +00:00
qwang12 79c144086a Name the module based on the rule below
Thunk Module Name = (Produced)To(Consumed)Thunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5348 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 07:00:08 +00:00
qwang12 d00d0b12ac Rename the module based on the naming rule
Thunk Module Name = (Produced)To(Consumed)Thunk

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5347 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:56:36 +00:00
qwang12 b6b2bb74df add a comment about why gEfiPeiMemoryDiscoveredPpiGuid is used as dpx.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5346 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:15:06 +00:00
qwang12 b1a025efdb Add FvHobToFvInfoThunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5345 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:13:38 +00:00
qwang12 9161f07ce2 Remove unused include file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5344 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-17 06:12:19 +00:00
qwang12 07567c3c32 Add more comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5343 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-12 08:56:55 +00:00
qwang12 f21c37708d install mReadOnlyVariableThunkPresent PPI to insure that only one ReadOnlyVariable thunk driver can be present in the platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5337 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-10 07:21:00 +00:00
qwang12 185be2e02b Change notification function to the correct protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5336 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-10 06:11:27 +00:00
qwang12 cd28997564 fix a typo.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5335 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-10 06:09:26 +00:00
qwang12 008a518953 change >> to RShiftU64 function call to avoid compiler to insert __aullshr intrinsic.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5332 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-05 06:31:24 +00:00
qwang12 137c54acda Install a Framework SetupBrowser protocol interface. But this interface will return EFI_UNSUPPORTED. This is to satisfy that some platform/chipset code may located this protocol but never invoke either of these two interfaces in the protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5331 6f19259b-4bc3-4df7-8a09-765794883524
2008-06-05 06:19:12 +00:00
qwang12 2be3c94664 Update to doxygen comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5310 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 09:02:49 +00:00
qwang12 001d920c76 1) Add in FvFileLoaderToLoadFileThunk.
2) Update some doxygen comments.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5309 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 08:50:42 +00:00
qwang12 6ea838c360 Layer AllocateBuffer and FreeBuffer on the PciRootBridgeIo too.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5307 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-29 06:22:28 +00:00
qwang12 fd4ae73375 add in DeviceIoToPciRootBridgeIoThunk.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5306 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-28 09:11:50 +00:00
qwang12 1668bd49c9 1) Add BufToHexString, HexStringToBuf and IsHexDigit to BaseLib.
2) Remove the duplicated functions implementation  from the modules that reference these APIs 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5284 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-23 05:31:39 +00:00
qwang12 766dca7fa0 Fix a bug and update comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5262 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-21 07:25:07 +00:00
qwang12 0004d1401e Update the comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5261 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-21 07:24:14 +00:00
qwang12 cd66067cf7 Update package dependency.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5234 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 09:17:45 +00:00
qwang12 f73d6a720a Update package dependency.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5233 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 09:16:54 +00:00
qwang12 4e17db14a0 Update comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5232 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 09:16:08 +00:00
qwang12 c98d6f4728 1) Add in Doxygen comment.
2) Update package dependency list.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5231 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 09:15:21 +00:00
qwang12 cc5c33d779 1) Make Compatibility/Include the public include directory.
2) Add two PPI 

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5229 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 09:12:25 +00:00
qwang12 d79eed91e3 Update doxygen comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5227 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 07:52:50 +00:00
qwang12 a432c703fe Add UcToUc2Thunk
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5225 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 01:41:25 +00:00
qwang12 29ec49a58a 1) Fix a bug in UC2_PRIVATE_DATA_FROM_THIS
2) Fix a typo

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5224 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20 01:40:17 +00:00
qwang12 03e6b4b213 Add in Uc2ToUcThunk module.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5222 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-19 09:37:05 +00:00
qwang12 6c45955b04 Update the file header comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5220 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-19 02:42:39 +00:00
qwang12 c8eb679ca9 1) Update the file headers
2) Make sure ReadOnlyVariableToReadOnlyVariable2Thunk and ReadOnlyVariable2ToReadOnlyVariableThunk are not included in the platform at the same time.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5219 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-19 02:40:45 +00:00
qwang12 ec3d17dcef Update the file header comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5218 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-19 01:48:54 +00:00
qwang12 0d6945396d Update Comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5215 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-16 09:45:41 +00:00
qwang12 3e5b452743 1) Update comments.
2) Remove reference to ">>" as it cause the generated code to link with other libraries.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5214 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-16 09:45:09 +00:00
qwang12 d7152a15f5 Make the module GCC clean.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5213 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-16 09:43:38 +00:00
qwang12 bcf79fc866 1) Add Doxygen Comments
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5207 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-15 09:17:46 +00:00
qwang12 1a6cdbd9c5 1) Add Doxygen Comments
2) Add some ASSERTs to assist debug.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5206 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-15 09:14:36 +00:00
qwang12 57cbd269f0 Update MapUefiHiiHandles to return EFI_SUCCESS if there is no packages registered in UEFI HII database.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5202 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-14 09:19:06 +00:00
qwang12 b47694b968 1) Use 0xFFEE as the VarId the reason is as follows:
// VARSTORE ID of 0 for Buffer Storage Type Storage is reserved in UEFI IFR form. But VARSTORE ID
// 0 in Framework IFR is the default VarStore ID for storage without explicit declaration. So we have
// to reseved 0xFFEE in UEFI VARSTORE ID to represetn default storage id in Framework IFR.
// Framework VFR has to be ported or pre-processed to change the default VARSTORE to a VARSTORE
// with ID equal to 0xFFEE.

2) Update some comments

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5201 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-14 08:18:48 +00:00
qwang12 63dd6a961c 1) Fix a bug. Before this fix, a Module that calling UEFI HII Interface to get the String Information will fail to locate the Package List based on a Package GUID if a required String Pack is registered using Framework HII NewPack instance.
2) Correct a few other minor issues.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5185 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-08 08:57:58 +00:00
qwang12 ea58467bf7 Add in supports for platform Setup module which is programmed using Framework HII interface.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5175 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-07 08:49:04 +00:00
qwang12 c64feb92ef Fix a bug which cause the thunk code failed to handle creation of "One Of" and "Ordered List" UEFI opcode from Framework counterparts.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5156 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-30 15:51:00 +00:00
vanjeff 22f5582e62 fixed bug for special case.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5154 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-30 07:30:25 +00:00
qwang12 f274810c8d Add in code to support the deletion of opcode from a form.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5153 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-30 06:35:24 +00:00
qwang12 5391c4f160 Add support to map more Framework Opcode (such as OrderedList, OneOf, etc) to Uefi Opcode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5152 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-30 03:20:10 +00:00
qwang12 46b5ebc877 For UNI file, some String may not be defined for a language. This has been true for a lot of platform code. For this case, EFI_NOT_FOUND will be returned. To allow the old code to be run without porting, we don't assert on EFI_NOT_FOUND. The missing String will be declared if user select differnt languages for the platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5149 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-29 07:06:10 +00:00
qwang12 59336178ac 1) Add in IfrParser so that the FrameworkHii->GetDefaultImage can scan UEFI IFR opcodes and get the default value embedded in the IFR.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5119 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-24 07:08:46 +00:00
qwang12 f62c116eba add in data type cast to ensure stringent compilers are happy.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5086 6f19259b-4bc3-4df7-8a09-765794883524
2008-04-17 13:54:29 +00:00