]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add missing files in msa file and add module description in msa file, and reorganize...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Jul 2006 23:37:54 +0000 (23:37 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 12 Jul 2006 23:37:54 +0000 (23:37 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@926 6f19259b-4bc3-4df7-8a09-765794883524

36 files changed:
EdkModulePkg/Universal/Console/ConSplitter/Dxe/ConSplitter.msa
EdkModulePkg/Universal/Console/GraphicsConsole/Dxe/GraphicsConsole.msa
EdkModulePkg/Universal/Console/Terminal/Dxe/Terminal.msa
EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.msa
EdkModulePkg/Universal/DataHub/DataHubStdErr/Dxe/DataHubStdErr.msa
EdkModulePkg/Universal/DebugSupport/Dxe/DebugSupport.msa
EdkModulePkg/Universal/Debugger/Debugport/Dxe/DebugPort.msa
EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.msa
EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.msa
EdkModulePkg/Universal/Disk/UnicodeCollation/English/Dxe/English.msa
EdkModulePkg/Universal/Ebc/Dxe/Ebc.msa
EdkModulePkg/Universal/EmuVariable/RuntimeDxe/EmuVariable.msa
EdkModulePkg/Universal/FirmwareVolume/FaultTolerantWriteLite/Dxe/FtwLite.msa
EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/Crc32SectionExtract.msa
EdkModulePkg/Universal/GenericMemoryTest/Dxe/NullMemoryTest.msa
EdkModulePkg/Universal/GenericMemoryTest/Pei/BaseMemoryTest.msa
EdkModulePkg/Universal/MonotonicCounter/RuntimeDxe/MonotonicCounter.msa
EdkModulePkg/Universal/Network/PxeBc/Dxe/BC.msa
EdkModulePkg/Universal/Network/PxeDhcp4/Dxe/Dhcp4.msa
EdkModulePkg/Universal/Network/Snp32_64/Dxe/SNP.msa
EdkModulePkg/Universal/Security/SecurityStub/Dxe/SecurityStub.msa
EdkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCode.msa
EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.msa [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/Inventory.vfr [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/InventoryStrings.uni [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/NVDataStruc.h [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/Vfr.vfr [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/DriverSample/VfrStrings.uni [new file with mode: 0644]
EdkModulePkg/Universal/UserInterface/HiiDataBase/Dxe/HiiDatabase.msa
EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/DriverSample/DriverSample.msa
EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/SetupBrowser.msa
EdkModulePkg/Universal/Variable/Pei/Variable.msa
EdkModulePkg/Universal/Variable/RuntimeDxe/Variable.msa
EdkModulePkg/Universal/WatchdogTimer/Dxe/WatchDogTimer.msa

index e323dcc96526f6e6f0657aa88b7c8d8c8b5b4b17..74f6b72fe6f0a705500de85ce358071b2b3de322 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>408edcec-cf6d-477c-a5a8-b4844e3de281</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>408edcec-cf6d-477c-a5a8-b4844e3de281</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for ConSplitter module.</Abstract>\r
+    <Description>Any Handle that attatched EFI_CONSOLE_IDENTIFIER_PROTOCOL can be bound by this driver.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index baf2654394a7b9aa06a620ea53b15d3480bbc341..9dd1a1ce5b4ea27505480aa1e3cf2c9e05dfb70d 100644 (file)
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <GuidValue>CCCB0C28-4B24-11d5-9A5A-0090273FC14D</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for GraphicsConsole module</Abstract>\r
     <GuidValue>CCCB0C28-4B24-11d5-9A5A-0090273FC14D</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for GraphicsConsole module</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Description>This is the main routine for initializing the Graphics Console support routines.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 8e949924ff26c0363290731d77c9b3af0dbd7ca5..5d6900e4ebba13cc5f8efadc34c8f13ea1d9bdcd 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>9E863906-A40F-4875-977F-5B93FF237FC6</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>9E863906-A40F-4875-977F-5B93FF237FC6</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for Terminal module.</Abstract>\r
+    <Description>This drivre installs Simple Text In/Out protocol for terminal devices.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index d8d70b44ab596e784b45a1356a77f2872da5e657..0a4daaacd3a28bdb490a62486d94610fe92664ac 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>53BCC14F-C24F-434C-B294-8ED2D4CC1860</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>53BCC14F-C24F-434C-B294-8ED2D4CC1860</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for DataHub module.</Abstract>\r
+    <Description>This driver preloads the data hub with status information copied in from PEI HOBs and produces the Data Hub protocol.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 266f0c081aa6a6ec73eb3bf1d890f5bfdad8b1de..42a2de6d5e0302b5c9138033777e10f2625f1c02 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>CA515306-00CE-4032-874E-11B755FF6866</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>CA515306-00CE-4032-874E-11B755FF6866</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for Data Hub filter driver.</Abstract>\r
+    <Description>This driver takes DEBUG () info from Data Hub and writes it to StdErr if it exists.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 77b91b095fe3933e4d8ffbbc30549738b2ac3920..8ea5fa78c90dc3cb4f29f3ea029be031cc718e42 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>911D584C-35F7-4955-BEF9-B452769DDC3A</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>911D584C-35F7-4955-BEF9-B452769DDC3A</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for DebugSupport module.</Abstract>\r
+    <Description>This driver installs DebugSupport protocol for the selected processor.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 34bba4253c794dd066442d58b9e41c57946acea8..2b8a6eb73f52c03f3d75b1762489b1ae4e038c03 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>73E9457A-CEA1-4917-9A9C-9F1F0F0FD322</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>73E9457A-CEA1-4917-9A9C-9F1F0F0FD322</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for DebugPort module.</Abstract>\r
+    <Description>This driver produces DebugPort Protocol based on SerialIo.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 36d34683c2cabd8e1c4b4c9f7bf8eb40fdb838d9..89e421adefb7b26c19fa3e16a618742934b75055 100644 (file)
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <GuidValue>6B38F7B4-AD98-40e9-9093-ACA2B5A253C4</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for DiskIo module.</Abstract>\r
     <GuidValue>6B38F7B4-AD98-40e9-9093-ACA2B5A253C4</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Description>DiskIo driver that layers it's self on every Block IO protocol in the system.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 0a18213a8b434d8928100c4df4baa42cbd04fbc2..9a45956105498ebef1b6ddb0d29521c1182c7c81 100644 (file)
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <GuidValue>1FA1F39E-FEFF-4aae-BD7B-38A070A3B609</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for Partition module.</Abstract>\r
     <GuidValue>1FA1F39E-FEFF-4aae-BD7B-38A070A3B609</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for Partition module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Description>Partition driver that produces logical BlockIo devices from a physical BlockIo device.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 94ae7f468e6cbd0937fe35f6e6c89c6900eeda44..091ff4b01a85cf4a72caf75289485a89ecf9dd98 100644 (file)
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <GuidValue>CD3BAFB6-50FB-4fe8-8E4E-AB74D2C1A600</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for English module for unicode collation.</Abstract>\r
     <GuidValue>CD3BAFB6-50FB-4fe8-8E4E-AB74D2C1A600</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for English module for unicode collation.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Description>This driver installs EFI_UNICODE_COLLATION_PROTOCOL protocol to provide Unicode strings function.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index de39d24518a398f9a83c196bfb16cce707b46150..44b9bc05322031bd5d513a943745f465c2e3db62 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>13AC6DD0-73D0-11D4-B06B-00AA00BD6DE7</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>13AC6DD0-73D0-11D4-B06B-00AA00BD6DE7</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for Ebc module.</Abstract>\r
+    <Description>This module for the EBC virtual machine implementation.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 1477f3f4da9ca8951111c48b00038c33ef268f94..d5f0fc9140ec5c7ad13c0df264516bd6a1f6c475 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>CBD2E4D5-7068-4FF5-B866-9822B4AD8D60</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>CBD2E4D5-7068-4FF5-B866-9822B4AD8D60</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for EmuVariable module.</Abstract>\r
+    <Description>This module provides three EFI_RUNTIME_SERVICES: SetVariable, GetVariable, GetNextVariableName</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 884f260117856b6de507a315543fce6186d446b7..90f6ad8482e904d63a3b7e508932b0fb5f7ff1a4 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>4C862FC6-0E54-4e36-8C8F-FF6F3167951F</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>4C862FC6-0E54-4e36-8C8F-FF6F3167951F</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for FtwLite module.</Abstract>\r
+    <Description>This driver provides fault tolerant write capability for block devices.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index c146cf24bb412e2fc4ca047db035d5fb8f1bfc6c..8a17160870ac90bb09e9f5778e5ccd59051c57ab 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>51C9F40C-5243-4473-B265-B3C8FFAFF9FA</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>51C9F40C-5243-4473-B265-B3C8FFAFF9FA</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for Crc32SectionExtract module.</Abstract>\r
+    <Description>This driver implements GUIDed section extraction protocol interface with a specific GUID: CRC32.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 023974f072073a5b519e7518ee24abd0d2fadf13..8fe9a67e18224db70ae18d75337d88feee81f08f 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>96B5C032-DF4C-4b6e-8232-438DCF448D0E</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>96B5C032-DF4C-4b6e-8232-438DCF448D0E</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for NullMemoryTest module.</Abstract>\r
+    <Description>This driver installs EFI_GENERIC_MEMORY_TEST_PROTOCOL to provide generic memory test functions.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 09ae249a232dacc186c45887528692f04e9fa2fb..64dd3664b5bfc93609c5b285f21a5afd2ad143eb 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>PEIM</ModuleType>\r
     <GuidValue>736EB068-8C01-47c5-964B-1C57BD5D4D64</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>PEIM</ModuleType>\r
     <GuidValue>736EB068-8C01-47c5-964B-1C57BD5D4D64</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for PeiBaseMemoryTestInit module.</Abstract>\r
+    <Description>This driver supports memory test in Pei Phase</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index ac8630f3f878a985b443756fe263fed6f0ed1f6b..20c1179eecd346f34f3854ce40364d40d28d7bd3 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>AD608272-D07F-4964-801E-7BD3B7888652</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>AD608272-D07F-4964-801E-7BD3B7888652</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for MonotonicCounter module.</Abstract>\r
+    <Description>This module Produced the Monotonic Counter Services as defined in the DXE CIS.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index be8bb310652b94dd85f1d54d83d6e15b1695da94..c23967df7d681904a1cf51e8e675ff3ab83d0e09 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>A3f436EA-A127-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>A3f436EA-A127-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for BC module.</Abstract>\r
+    <Description>This module provides basic network capability.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 423af887690a486384ca5708f91d9bfcfa285364..bd8110baeb184689c0c5e8e4af68ddfa23e073d7 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>a46c3330-be36-4977-9d24-a7cf92eef0fe</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>a46c3330-be36-4977-9d24-a7cf92eef0fe</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for Dhcp4 module.</Abstract>\r
+    <Description>This module can produce PxeDhcp4 protocol on ControllerHandle.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 98f735f3397c11dd94410759454885060f41a367..105977af5855b1a74adbf999a142bf16cfc5ce2b 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>A2f436EA-A127-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>UEFI_DRIVER</ModuleType>\r
     <GuidValue>A2f436EA-A127-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for SNP module.</Abstract>\r
+    <Description>This module attachs the SNP interface to UNDI layer that it finds on the given handle!</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index dae853ea861bc4de5d3e6d9abd76c0bae2db64ff..a6e738054c2115893043425c3c49cda98d0b3eb1 100644 (file)
@@ -14,7 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <GuidValue>F80697E9-7FD6-4665-8646-88E33EF71DFC</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for SecurityStub module</Abstract>\r
     <GuidValue>F80697E9-7FD6-4665-8646-88E33EF71DFC</GuidValue>\r
     <Version>1.0</Version>\r
     <Abstract>Component description file for SecurityStub module</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Description>This driver supports platform security service.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index d4f99b97f24f66a12d424ba317e2edbce24c1ecb..d2ddf09a93dafcef3732e53b67f5a92475e888a3 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>9F455D3B-2B8A-4c06-960B-A71B9714B9CD</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>9F455D3B-2B8A-4c06-960B-A71B9714B9CD</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for StatusCode module.</Abstract>\r
+    <Description>This driver implement Status Code Architectural Protocol and log all status code info. </Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.c
new file mode 100644 (file)
index 0000000..5f3823c
--- /dev/null
@@ -0,0 +1,631 @@
+/*++\r
+Copyright (c) 2006, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+  DriverSample.c\r
+\r
+Abstract:\r
+\r
+  This is an example of how a driver might export data to the HII protocol to be \r
+  later utilized by the Setup Protocol\r
+\r
+--*/\r
+\r
+#include "DriverSample.h"\r
+\r
+#define DISPLAY_ONLY_MY_ITEM  0x0001\r
+\r
+#define STRING_PACK_GUID \\r
+  { \\r
+    0x8160a85f, 0x934d, 0x468b, { 0xa2, 0x35, 0x72, 0x89, 0x59, 0x14, 0xf6, 0xfc } \\r
+  }\r
+\r
+EFI_GUID  mFormSetGuid    = FORMSET_GUID;\r
+EFI_GUID  mStringPackGuid = STRING_PACK_GUID; \r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DriverCallback (\r
+  IN EFI_FORM_CALLBACK_PROTOCOL       *This,\r
+  IN UINT16                           KeyValue,\r
+  IN EFI_IFR_DATA_ARRAY               *Data,\r
+  OUT EFI_HII_CALLBACK_PACKET         **Packet\r
+  )\r
+/*++\r
+\r
+Routine Description:\r
+\r
+  This is the function that is called to provide results data to the driver.  This data\r
+  consists of a unique key which is used to identify what data is either being passed back\r
+  or being asked for. \r
+\r
+Arguments:\r
+\r
+  KeyValue -        A unique value which is sent to the original exporting driver so that it\r
+                    can identify the type of data to expect.  The format of the data tends to\r
+                    vary based on the op-code that geerated the callback.\r
+\r
+  Data -            A pointer to the data being sent to the original exporting driver.\r
+\r
+Returns: \r
+\r
+--*/\r
+{\r
+  EFI_CALLBACK_INFO       *Private;\r
+  EFI_HII_UPDATE_DATA     *UpdateData;\r
+  EFI_STATUS              Status;\r
+  UINT8                   *Location;\r
+  EFI_HII_CALLBACK_PACKET *DataPacket;\r
+  UINT16                  Value;\r
+  CHAR16                  VariableName[40];\r
+  STATIC UINT16           QuestionId = 0;\r
+  IFR_OPTION              *OptionList;\r
+  UINTN                   Index;\r
+  MyIfrNVData             NVStruc;\r
+\r
+  Private     = EFI_CALLBACK_INFO_FROM_THIS (This);\r
+\r
+  //\r
+  // This should tell me the first offset AFTER the end of the compiled NV map\r
+  // If op-code results are not going to be saved to NV locations ensure the QuestionId\r
+  // is beyond the end of the NVRAM mapping.\r
+  //\r
+  if (QuestionId == 0) {\r
+    QuestionId = sizeof (MyIfrNVData);\r
+  }\r
+\r
+  ZeroMem (VariableName, (sizeof (CHAR16) * 40));\r
+\r
+  switch (KeyValue) {\r
+  case 0x0001:\r
+    //\r
+    // Create a small boot order list\r
+    //\r
+    QuestionId = (UINT16) ((UINTN) (&NVStruc.BootOrder) - (UINTN) (&NVStruc));\r
+\r
+    //\r
+    // Need some memory for OptionList. Allow for up to 8 options.\r
+    //\r
+    OptionList = AllocateZeroPool (sizeof (IFR_OPTION) * 8);\r
+\r
+    //\r
+    // Allocate space for creation of Buffer\r
+    //\r
+    UpdateData = AllocateZeroPool (0x1000);\r
+\r
+    //\r
+    // Remove all the op-codes starting with Label 0x2222 to next Label (second label is for convenience\r
+    // so we don't have to keep track of how many op-codes we added or subtracted.  The rules for removal\r
+    // of op-codes are simply that the removal will always stop as soon as a label or the end of a form is\r
+    // encountered.  Therefore, giving a large obnoxious count such as below takes care of other complexities.\r
+    //\r
+    UpdateData->DataCount = 0xFF;\r
+\r
+    //\r
+    // Delete set of op-codes\r
+    //\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x2222,\r
+                    FALSE,  // If we aren't adding, we are deleting\r
+                    UpdateData\r
+                    );\r
+\r
+    //\r
+    // Create 3 options\r
+    //\r
+    for (Index = 0; Index < 3; Index++) {\r
+      OptionList[Index].StringToken = (UINT16) (STR_BOOT_OPTION1 + Index);\r
+      OptionList[Index].Value       = (UINT16) (Index + 1);\r
+      OptionList[Index].Flags       = RESET_REQUIRED;\r
+    }\r
+\r
+    CreateOrderedListOpCode (\r
+      QuestionId,                               // Question ID\r
+      8,                                        // Max Entries\r
+      (UINT16) STRING_TOKEN (STR_BOOT_OPTIONS), // Token value for the Prompt\r
+      (UINT16) STRING_TOKEN (STR_NULL_STRING),  // Token value for the Help\r
+      OptionList,\r
+      3,\r
+      &UpdateData->Data                         // Buffer location to place op-codes\r
+      );\r
+\r
+    //\r
+    // For one-of/ordered lists commands, they really consist of 2 op-codes (a header and a footer)\r
+    // Each option within a one-of/ordered list is also an op-code\r
+    // So this example has 5 op-codes it is adding since we have a one-of header + 3 options + one-of footer\r
+    //\r
+    UpdateData->DataCount = 0x5;\r
+\r
+    //\r
+    // Add one op-code\r
+    //\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x2222,\r
+                    TRUE,\r
+                    UpdateData\r
+                    );\r
+\r
+    gBS->FreePool (UpdateData);\r
+    gBS->FreePool (OptionList);\r
+    break;\r
+\r
+  case 0x0002:\r
+    //\r
+    // Create a large boot order list\r
+    //\r
+    QuestionId = (UINT16) ((UINTN) (&NVStruc.BootOrder) - (UINTN) (&NVStruc));\r
+\r
+    //\r
+    // Need some memory for OptionList. Allow for up to 8 options.\r
+    //\r
+    OptionList = AllocateZeroPool (sizeof (IFR_OPTION) * 8);\r
+\r
+    //\r
+    // Allocate space for creation of Buffer\r
+    //\r
+    UpdateData = AllocateZeroPool (0x1000);\r
+\r
+    //\r
+    // Remove all the op-codes starting with Label 0x2222 to next Label (second label is for convenience\r
+    // so we don't have to keep track of how many op-codes we added or subtracted\r
+    //\r
+    UpdateData->DataCount = 0xFF;\r
+\r
+    //\r
+    // Delete one op-code\r
+    //\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x2222,\r
+                    FALSE,\r
+                    UpdateData\r
+                    );\r
+\r
+    //\r
+    // Create 4 options\r
+    //\r
+    for (Index = 0; Index < 4; Index++) {\r
+      OptionList[Index].StringToken = (UINT16) (STR_BOOT_OPTION1 + Index);\r
+      OptionList[Index].Value       = (UINT16) (Index + 1);\r
+      OptionList[Index].Flags       = RESET_REQUIRED;\r
+    }\r
+\r
+    CreateOrderedListOpCode (\r
+      QuestionId,                               // Question ID\r
+      8,                                        // Max Entries\r
+      (UINT16) STRING_TOKEN (STR_BOOT_OPTIONS), // Token value for the Prompt\r
+      (UINT16) STRING_TOKEN (STR_NULL_STRING),  // Token value for the Help\r
+      OptionList,\r
+      4,\r
+      &UpdateData->Data                         // Buffer location to place op-codes\r
+      );\r
+\r
+    //\r
+    // For one-of commands, they really consist of 2 op-codes (a header and a footer)\r
+    // Each option within a one-of is also an op-code\r
+    // So this example has 6 op-codes it is adding since we have a one-of header + 4 options + one-of footer\r
+    //\r
+    UpdateData->DataCount = 0x6;\r
+\r
+    //\r
+    // Add one op-code\r
+    //\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x2222,\r
+                    TRUE,\r
+                    UpdateData\r
+                    );\r
+\r
+    gBS->FreePool (UpdateData);\r
+    gBS->FreePool (OptionList);\r
+    break;\r
+\r
+  case 0x1234:\r
+    //\r
+    // Allocate space for creation of Buffer\r
+    //\r
+    QuestionId = (UINT16) ((UINTN) (&NVStruc.DynamicCheck));\r
+    Status = gBS->AllocatePool (\r
+                    EfiBootServicesData,\r
+                    0x1000,\r
+                    (VOID **) &UpdateData\r
+                    );\r
+\r
+    ZeroMem (UpdateData, 0x1000);\r
+\r
+    Location                        = (UINT8 *) &UpdateData->Data;\r
+\r
+    UpdateData->FormSetUpdate       = TRUE;\r
+    UpdateData->FormCallbackHandle  = (EFI_PHYSICAL_ADDRESS) (UINTN) Private->CallbackHandle;\r
+    UpdateData->FormUpdate          = FALSE;\r
+    UpdateData->FormTitle           = 0;\r
+    UpdateData->DataCount           = 2;\r
+\r
+    CreateGotoOpCode (\r
+      1,\r
+      STR_GOTO_FORM1,                                   // Token value for the Prompt\r
+      0,                                                // Goto Help\r
+      0,                                                // Flags\r
+      0,                                                // Key\r
+      &UpdateData->Data                                 // Buffer location to place op-codes\r
+      );\r
+\r
+    Location = Location + ((EFI_IFR_OP_HEADER *) &UpdateData->Data)->Length;\r
+\r
+    CreateCheckBoxOpCode (\r
+      QuestionId,                                       // Question ID\r
+      1,                                                // Data width (BOOLEAN = 1)\r
+      (UINT16) STRING_TOKEN (STR_CHECK_DYNAMIC_PROMPT), // Token value for the Prompt\r
+      (UINT16) STRING_TOKEN (STR_CHECK_DYNAMIC_HELP),   // Token value for the Help\r
+      EFI_IFR_FLAG_INTERACTIVE,                         // Flags\r
+      0x1236,   // Key\r
+      Location  // Buffer location to place op-codes\r
+      );\r
+\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x1234,\r
+                    TRUE,\r
+                    UpdateData\r
+                    );\r
+\r
+    gBS->FreePool (UpdateData);\r
+    QuestionId++;\r
+    break;\r
+\r
+  case 0x1235:\r
+    //\r
+    // Allocate space for creation of Buffer\r
+    //\r
+    Status = gBS->AllocatePool (\r
+                    EfiBootServicesData,\r
+                    0x1000,\r
+                    (VOID **)&UpdateData\r
+                    );\r
+\r
+    ZeroMem (UpdateData, 0x1000);\r
+\r
+    //\r
+    // Initialize DataPacket with information intended to remove all\r
+    // previously created op-codes in the dynamic page\r
+    //\r
+    UpdateData->FormSetUpdate       = FALSE;\r
+    UpdateData->FormCallbackHandle  = 0;\r
+    UpdateData->FormUpdate          = FALSE;\r
+    UpdateData->FormTitle           = 0;\r
+    //\r
+    // Unlikely to be more than 0xff op-codes in the dynamic page to remove\r
+    //\r
+    UpdateData->DataCount           = 0xff;\r
+    UpdateData->Data = NULL;\r
+\r
+    //\r
+    // Remove all op-codes from dynamic page\r
+    //\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x1234,  // Label 0x1234\r
+                    FALSE,                    // Remove Op-codes (will never remove form/endform)\r
+                    UpdateData                // Significant value is UpdateData->DataCount\r
+                    );\r
+\r
+    UpdateData->FormSetUpdate       = FALSE;\r
+    UpdateData->FormCallbackHandle  = 0;\r
+    UpdateData->FormUpdate          = FALSE;\r
+    UpdateData->FormTitle           = 0;\r
+    UpdateData->DataCount           = 1;\r
+\r
+    CreateGotoOpCode (\r
+      1,\r
+      STR_GOTO_FORM1,                         // Token value for the Prompt\r
+      0,                                      // Goto Help\r
+      0,                                      // Flags\r
+      0,                                      // Key\r
+      &UpdateData->Data                       // Buffer location to place op-codes\r
+      );\r
+\r
+    Private->Hii->UpdateForm (\r
+                    Private->Hii,\r
+                    Private->RegisteredHandle,\r
+                    (EFI_FORM_LABEL) 0x1234,\r
+                    TRUE,\r
+                    UpdateData\r
+                    );\r
+\r
+    gBS->FreePool (UpdateData);\r
+    break;\r
+\r
+  case 0x1236:\r
+    //\r
+    // If I hit the checkbox, I enter this case statement...\r
+    //\r
+    //\r
+    // Since I am returning an error (for test purposes) I need to pass in the string for the error\r
+    // I will allocate space for the return value.  If an error occurs (which is the case) I can simply return\r
+    // an error and fill in the string parameter, otherwise, I will return information in the DataArray structure.\r
+    // The browser will free this packet structure\r
+    //\r
+    Status = gBS->AllocatePool (\r
+                    EfiBootServicesData,\r
+                    sizeof (EFI_HII_CALLBACK_PACKET) + sizeof (SAMPLE_STRING) + 2,\r
+                    (VOID **) Packet\r
+                    );\r
+\r
+    ZeroMem (*Packet, sizeof (EFI_HII_CALLBACK_PACKET) + sizeof (SAMPLE_STRING) + 2);\r
+\r
+    //\r
+    // Assign the buffer address to DataPacket\r
+    //\r
+    DataPacket = *Packet;\r
+\r
+    StrCpy (DataPacket->String, (CHAR16 *) SAMPLE_STRING);\r
+    return EFI_DEVICE_ERROR;\r
+\r
+  case 0x1237:\r
+\r
+    Status = gBS->AllocatePool (\r
+                    EfiBootServicesData,\r
+                    sizeof (EFI_HII_CALLBACK_PACKET) + 2,\r
+                    (VOID **) Packet\r
+                    );\r
+\r
+    ZeroMem (*Packet, sizeof (EFI_HII_CALLBACK_PACKET) + 2);\r
+\r
+    //\r
+    // Assign the buffer address to DataPacket\r
+    //\r
+    DataPacket                        = *Packet;\r
+\r
+    DataPacket->DataArray.EntryCount  = 1;\r
+    DataPacket->DataArray.NvRamMap    = NULL;\r
+    ((EFI_IFR_DATA_ENTRY *) (&DataPacket->DataArray + 1))->Flags = EXIT_REQUIRED;\r
+    break;\r
+\r
+  case 0x1555:\r
+    Value = 0x0001;\r
+    UnicodeSPrint (VariableName, 0x80, (CHAR16 *) L"%d", VAR_EQ_TEST_NAME);\r
+\r
+    Status = gRT->SetVariable (\r
+                    VariableName,\r
+                    &mFormSetGuid,\r
+                    EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
+                    2,\r
+                    (VOID *) &Value\r
+                    );\r
+    break;\r
+\r
+  case 0x1556:\r
+    Value = 0x1000;\r
+    UnicodeSPrint (VariableName, 0x80, (CHAR16 *) L"%d", VAR_EQ_TEST_NAME);\r
+\r
+    Status = gRT->SetVariable (\r
+                    VariableName,\r
+                    &mFormSetGuid,\r
+                    EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
+                    2,\r
+                    (VOID *) &Value\r
+                    );\r
+    break;\r
+\r
+  case 0x1557:\r
+    Value = 0x0000;\r
+    UnicodeSPrint (VariableName, 0x80, (CHAR16 *) L"%d", VAR_EQ_TEST_NAME);\r
+\r
+    Status = gRT->SetVariable (\r
+                    VariableName,\r
+                    &mFormSetGuid,\r
+                    EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS,\r
+                    2,\r
+                    (VOID *) &Value\r
+                    );\r
+    break;\r
+\r
+  default:\r
+    break;\r
+  }\r
+\r
+  return EFI_SUCCESS;\r
+}\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+DriverSampleInit (\r
+  IN EFI_HANDLE                   ImageHandle,\r
+  IN EFI_SYSTEM_TABLE             *SystemTable\r
+  )\r
+{\r
+  EFI_STATUS          Status;\r
+  EFI_HII_PROTOCOL    *Hii;\r
+  //\r
+  //  EFI_FORM_BROWSER_PROTOCOL       *FormConfig;\r
+  //\r
+  EFI_HII_PACKAGES    *PackageList;\r
+  EFI_HII_HANDLE      HiiHandle;\r
+  STRING_REF          TokenToUpdate;\r
+  STRING_REF          TokenToUpdate2;\r
+  STRING_REF          TokenToUpdate3;\r
+  CHAR16              *NewString;\r
+  EFI_HII_UPDATE_DATA *UpdateData;\r
+  EFI_CALLBACK_INFO   *CallbackInfo;\r
+  EFI_HANDLE          Handle;\r
+  EFI_SCREEN_DESCRIPTOR   Screen;\r
+\r
+  ZeroMem (&Screen, sizeof (EFI_SCREEN_DESCRIPTOR));\r
+\r
+  gST->ConOut->QueryMode (gST->ConOut, gST->ConOut->Mode->Mode, &Screen.RightColumn, &Screen.BottomRow);\r
+\r
+  //\r
+  // Remove 3 characters from top and bottom\r
+  //\r
+  Screen.TopRow     = 3;\r
+  Screen.BottomRow  = Screen.BottomRow - 3;\r
+\r
+  //\r
+  // There should only be one HII protocol\r
+  //\r
+  Status = gBS->LocateProtocol (\r
+                  &gEfiHiiProtocolGuid,\r
+                  NULL,\r
+                  (VOID **) &Hii\r
+                  );\r
+  if (EFI_ERROR (Status)) {\r
+    return Status;;\r
+  }\r
+\r
+  /*\r
+  //\r
+  // There should only be one Form Configuration protocol\r
+  //\r
+  Status = gBS->LocateProtocol (\r
+                 &gEfiFormBrowserProtocolGuid, \r
+                 NULL, \r
+                 &FormConfig\r
+                 );\r
+  if (EFI_ERROR (Status)) {\r
+    return Status;;\r
+  }\r
+*/\r
+  Status = gBS->AllocatePool (\r
+                  EfiBootServicesData,\r
+                  sizeof (EFI_CALLBACK_INFO),\r
+                  (VOID **) &CallbackInfo\r
+                  );\r
+  if (EFI_ERROR (Status)) {\r
+    return Status;\r
+  }\r
+\r
+  CallbackInfo->Signature = EFI_CALLBACK_INFO_SIGNATURE;\r
+  CallbackInfo->Hii       = Hii;\r
+\r
+  //\r
+  // This example does not implement worker functions for the NV accessor functions.  Only a callback evaluator\r
+  //\r
+  CallbackInfo->DriverCallback.NvRead   = NULL;\r
+  CallbackInfo->DriverCallback.NvWrite  = NULL;\r
+  CallbackInfo->DriverCallback.Callback = DriverCallback;\r
+\r
+  //\r
+  // Install protocol interface\r
+  //\r
+  Handle = NULL;\r
+  Status = gBS->InstallProtocolInterface (\r
+                  &Handle,\r
+                  &gEfiFormCallbackProtocolGuid,\r
+                  EFI_NATIVE_INTERFACE,\r
+                  &CallbackInfo->DriverCallback\r
+                  );\r
+\r
+  ASSERT_EFI_ERROR (Status);\r
+\r
+  CallbackInfo->CallbackHandle  = Handle;\r
+\r
+  PackageList                   = PreparePackages (1, &mStringPackGuid, DriverSampleStrings);\r
+  Status                        = Hii->NewPack (Hii, PackageList, &HiiHandle);\r
+  gBS->FreePool (PackageList);\r
+\r
+  PackageList = PreparePackages (1, &mStringPackGuid, InventoryBin);\r
+  Status      = Hii->NewPack (Hii, PackageList, &HiiHandle);\r
+  gBS->FreePool (PackageList);\r
+\r
+  PackageList = PreparePackages (1, &mStringPackGuid, VfrBin);\r
+  Status      = Hii->NewPack (Hii, PackageList, &HiiHandle);\r
+  gBS->FreePool (PackageList);\r
+\r
+  CallbackInfo->RegisteredHandle = HiiHandle;\r
+\r
+  //\r
+  // Very simple example of how one would update a string that is already\r
+  // in the HII database\r
+  //\r
+  TokenToUpdate = (STRING_REF) STR_CPU_STRING2;\r
+  NewString     = (CHAR16 *) L"700 Mhz";\r
+\r
+  Hii->NewString (Hii, NULL, HiiHandle, &TokenToUpdate, NewString);\r
+\r
+  //\r
+  // Add a string - if 0 will be updated with new Token number\r
+  //\r
+  TokenToUpdate = (STRING_REF) 0;\r
+\r
+  //\r
+  // Add a string - if 0 will be updated with new Token number\r
+  //\r
+  TokenToUpdate2 = (STRING_REF) 0;\r
+\r
+  //\r
+  // Add a string - if 0 will be updated with new Token number\r
+  //\r
+  TokenToUpdate3 = (STRING_REF) 0;\r
+\r
+  Hii->NewString (Hii, NULL, HiiHandle, &TokenToUpdate, (CHAR16 *) L"Desired Speed");\r
+  Hii->NewString (Hii, NULL, HiiHandle, &TokenToUpdate2, (CHAR16 *) L"5 Thz");\r
+  Hii->NewString (Hii, NULL, HiiHandle, &TokenToUpdate3, (CHAR16 *) L"This is next year's desired speed - right?");\r
+\r
+  //\r
+  // Allocate space for creation of Buffer\r
+  //\r
+  Status = gBS->AllocatePool (\r
+                  EfiBootServicesData,\r
+                  0x1000,\r
+                  (VOID **) &UpdateData\r
+                  );\r
+\r
+  ZeroMem (UpdateData, 0x1000);\r
+\r
+  //\r
+  // Flag update pending in FormSet\r
+  //\r
+  UpdateData->FormSetUpdate = TRUE;\r
+  //\r
+  // Register CallbackHandle data for FormSet\r
+  //\r
+  UpdateData->FormCallbackHandle = (EFI_PHYSICAL_ADDRESS) (UINTN) CallbackInfo->CallbackHandle;\r
+  UpdateData->FormUpdate  = FALSE;\r
+  UpdateData->FormTitle   = 0;\r
+  UpdateData->DataCount   = 1;\r
+\r
+  CreateTextOpCode (TokenToUpdate, TokenToUpdate2, TokenToUpdate3, 0, 0, &UpdateData->Data);\r
+\r
+  Hii->UpdateForm (Hii, HiiHandle, (EFI_FORM_LABEL) 100, TRUE, UpdateData);\r
+\r
+  gBS->FreePool (UpdateData);\r
+\r
+  //\r
+  // Example of how to display only the item we sent to HII\r
+  //\r
+  if (DISPLAY_ONLY_MY_ITEM == 0x0001) {\r
+    //\r
+    // Have the browser pull out our copy of the data, and only display our data\r
+    //\r
+    //    Status = FormConfig->SendForm (FormConfig, TRUE, HiiHandle, NULL, NULL, NULL, &Screen, NULL);\r
+    //\r
+  } else {\r
+    //\r
+    // Have the browser pull out all the data in the HII Database and display it.\r
+    //\r
+    //    Status = FormConfig->SendForm (FormConfig, TRUE, 0, NULL, NULL, NULL, NULL, NULL);\r
+    //\r
+  }\r
+\r
+  if (EFI_ERROR (Status)) {\r
+    return Status;\r
+  }\r
+\r
+  return EFI_SUCCESS;\r
+}\r
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.h
new file mode 100644 (file)
index 0000000..b1534e8
--- /dev/null
@@ -0,0 +1,60 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+\r
+  DriverSample.h\r
+\r
+Abstract:\r
+\r
+\r
+Revision History\r
+\r
+--*/\r
+\r
+#ifndef _DRIVER_SAMPLE_H\r
+#define _DRIVER_SAMPLE_H\r
+\r
+\r
+#include "NVDataStruc.h"\r
+\r
+//\r
+// This is the generated header file which includes whatever needs to be exported (strings + IFR)\r
+//\r
+#include "DriverSampleStrDefs.h"\r
+\r
+extern UINT8  VfrBin[];\r
+//\r
+// extern UINT8 VfrStringsStr[];\r
+//\r
+extern UINT8  InventoryBin[];\r
+//\r
+// extern UINT8 InventoryStringsStr[];\r
+//\r
+extern UINT8  DriverSampleStrings[];\r
+\r
+#define SAMPLE_STRING               L"This is an error!"\r
+\r
+#define EFI_CALLBACK_INFO_SIGNATURE EFI_SIGNATURE_32 ('C', 'l', 'b', 'k')\r
+\r
+typedef struct {\r
+  UINTN                       Signature;\r
+  EFI_HANDLE                  CallbackHandle;\r
+  EFI_FORM_CALLBACK_PROTOCOL  DriverCallback;\r
+  UINT16                      *KeyList;\r
+  VOID                        *FormBuffer;\r
+  EFI_HII_HANDLE              RegisteredHandle;\r
+  EFI_HII_PROTOCOL            *Hii;\r
+} EFI_CALLBACK_INFO;\r
+\r
+#define EFI_CALLBACK_INFO_FROM_THIS(a)  CR (a, EFI_CALLBACK_INFO, DriverCallback, EFI_CALLBACK_INFO_SIGNATURE)\r
+\r
+#endif\r
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.msa b/EdkModulePkg/Universal/UserInterface/DriverSample/DriverSample.msa
new file mode 100644 (file)
index 0000000..49a6282
--- /dev/null
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--Copyright (c) 2006, 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
+
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->\r
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0">\r
+  <MsaHeader>\r
+    <ModuleName>DriverSample</ModuleName>\r
+    <ModuleType>DXE_DRIVER</ModuleType>\r
+    <GuidValue>FE3542FE-C1D3-4EF8-657C-8048606FF670</GuidValue>\r
+    <Version>1.0</Version>\r
+    <Abstract>Component description file for DriverSample module.</Abstract>\r
+    <Description>This is an example driver to introduce how to export data to the HII protocol to be later utilized by the Setup Protocol. </Description>\r
+    <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
+    <License>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
+      THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+      WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.</License>\r
+    <Specification>FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00000052</Specification>\r
+  </MsaHeader>\r
+  <ModuleDefinitions>\r
+    <SupportedArchitectures>IA32 X64 IPF EBC</SupportedArchitectures>\r
+    <BinaryModule>false</BinaryModule>\r
+    <OutputFileBasename>DriverSample</OutputFileBasename>\r
+  </ModuleDefinitions>\r
+  <LibraryClassDefinitions>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiBootServicesTableLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiRuntimeServicesTableLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>DebugLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiDriverEntryPoint</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>UefiLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>BaseLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>PrintLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>EdkGraphicsLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>EdkIfrSupportLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>BaseMemoryLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>MemoryAllocationLib</Keyword>\r
+    </LibraryClass>\r
+    <LibraryClass Usage="ALWAYS_CONSUMED">\r
+      <Keyword>HiiLib</Keyword>\r
+    </LibraryClass>\r
+  </LibraryClassDefinitions>\r
+  <SourceFiles>\r
+    <Filename>InventoryStrings.uni</Filename>\r
+    <Filename>Inventory.vfr</Filename>\r
+    <Filename>VfrStrings.uni</Filename>\r
+    <Filename>Vfr.vfr</Filename>\r
+    <Filename>DriverSample.c</Filename>\r
+    <Filename>NVDataStruc.h</Filename>\r
+    <Filename>DriverSample.h</Filename>\r
+  </SourceFiles>\r
+  <PackageDependencies>\r
+    <Package PackageGuid="5e0e9358-46b6-4ae2-8218-4ab8b9bbdcec"/>\r
+    <Package PackageGuid="B6EC423C-21D2-490D-85C6-DD5864EAA674"/>\r
+  </PackageDependencies>\r
+  <Protocols>\r
+    <Protocol Usage="ALWAYS_CONSUMED">\r
+      <ProtocolCName>gEfiHiiProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_CONSUMED">\r
+      <ProtocolCName>gEfiUgaDrawProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_CONSUMED">\r
+      <ProtocolCName>gEfiOEMBadgingProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_CONSUMED">\r
+      <ProtocolCName>gEfiFirmwareVolumeProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_CONSUMED">\r
+      <ProtocolCName>gEfiConsoleControlProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+    <Protocol Usage="ALWAYS_PRODUCED">\r
+      <ProtocolCName>gEfiFormCallbackProtocolGuid</ProtocolCName>\r
+    </Protocol>\r
+  </Protocols>\r
+  <Variables>\r
+    <Variable Usage="ALWAYS_PRODUCED">\r
+      <VariableName>0x0032 0x0035</VariableName>\r
+      <GuidC_Name>g25Guid</GuidC_Name>\r
+    </Variable>\r
+  </Variables>\r
+  <Guids>\r
+    <GuidCNames Usage="ALWAYS_CONSUMED">\r
+      <GuidCName>gEfiGlobalVariableGuid</GuidCName>\r
+    </GuidCNames>\r
+  </Guids>\r
+  <Externs>\r
+    <Specification>EFI_SPECIFICATION_VERSION 0x00020000</Specification>\r
+    <Specification>EDK_RELEASE_VERSION 0x00020000</Specification>\r
+    <Extern>\r
+      <ModuleEntryPoint>DriverSampleInit</ModuleEntryPoint>\r
+    </Extern>\r
+  </Externs>\r
+</ModuleSurfaceArea>
\ No newline at end of file
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/Inventory.vfr b/EdkModulePkg/Universal/UserInterface/DriverSample/Inventory.vfr
new file mode 100644 (file)
index 0000000..ff8a6aa
--- /dev/null
@@ -0,0 +1,123 @@
+// *++\r
+//\r
+// Copyright (c) 2006, Intel Corporation                                                         \r
+// All rights reserved. This program and the accompanying materials                          \r
+// are licensed and made available under the terms and conditions of the BSD License         \r
+// which accompanies this distribution.  The full text of the license may be found at        \r
+// http://opensource.org/licenses/bsd-license.php                                            \r
+//                                                                                           \r
+// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+// \r
+// Module Name:\r
+//\r
+//   Inventory.vfr \r
+// \r
+// Abstract:\r
+// \r
+//   Sample Inventory Data.\r
+// \r
+// Revision History: \r
+// \r
+// --*/\r
+\r
+#include "DriverSampleStrDefs.h"\r
+\r
+#define INVENTORY_GUID    { 0xb3f56470, 0x6141, 0x4621, { 0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8 } }\r
\r
+formset \r
+  guid     = INVENTORY_GUID,\r
+  title    = STRING_TOKEN(STR_INV_FORM_SET_TITLE),\r
+  help     = STRING_TOKEN(STR_INV_FORM_SET_HELP),\r
+  class    = 0x04,      \r
+  subclass = 0x03,\r
+\r
+  form formid = 1,\r
+       title  = STRING_TOKEN(STR_INV_FORM1_TITLE);  // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code\r
+  \r
+       text \r
+      help   = STRING_TOKEN(STR_INV_VERSION_HELP),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT2),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT3),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT4),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+    subtitle text = STRING_TOKEN(STR_INV_EMPTY_STRING);\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT5),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT6),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT7),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT8),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT9),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT10),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      text   = STRING_TOKEN(STR_INV_VERSION_TEXT11),\r
+           text   = STRING_TOKEN(STR_INV_EMPTY_STRING),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+    subtitle text = STRING_TOKEN(STR_INV_EMPTY_STRING);\r
+\r
+    subtitle text = STRING_TOKEN(STR_INV_VERSION_TEXT12);\r
+\r
+  endform;\r
+\r
+endformset;\r
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/InventoryStrings.uni b/EdkModulePkg/Universal/UserInterface/DriverSample/InventoryStrings.uni
new file mode 100644 (file)
index 0000000..4946b4a
Binary files /dev/null and b/EdkModulePkg/Universal/UserInterface/DriverSample/InventoryStrings.uni differ
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/NVDataStruc.h b/EdkModulePkg/Universal/UserInterface/DriverSample/NVDataStruc.h
new file mode 100644 (file)
index 0000000..01369eb
--- /dev/null
@@ -0,0 +1,62 @@
+/*++\r
+\r
+Copyright (c) 2006, Intel Corporation                                                         \r
+All rights reserved. This program and the accompanying materials                          \r
+are licensed and made available under the terms and conditions of the BSD License         \r
+which accompanies this distribution.  The full text of the license may be found at        \r
+http://opensource.org/licenses/bsd-license.php                                            \r
+                                                                                          \r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+Module Name:\r
+\r
+  NVDataStruc.h \r
\r
+Abstract:\r
\r
+  NVData structure used by the sample driver\r
\r
+Revision History: \r
\r
+--*/\r
+\r
+#ifndef _NVDATASTRUC_H\r
+#define _NVDATASTRUC_H\r
+\r
+#define FORMSET_GUID \\r
+  { \\r
+    0xA04A27f4, 0xDF00, 0x4D42, { 0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D } \\r
+  }\r
+\r
+#define INVENTORY_GUID \\r
+  { \\r
+    0xb3f56470, 0x6141, 0x4621, { 0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8 } \\r
+  }\r
+\r
+#define VAR_EQ_TEST_NAME  0x100\r
+\r
+#pragma pack(1)\r
+typedef struct {\r
+  UINT16  WhatIsThePassword[20];\r
+  UINT16  WhatIsThePassword2[20];\r
+  UINT16  MyStringData[20];\r
+  UINT16  SomethingHiddenForHtml;\r
+  UINT8   HowOldAreYouInYearsManual;\r
+  UINT16  HowTallAreYouManual;\r
+  UINT8   HowOldAreYouInYears;\r
+  UINT16  HowTallAreYou;\r
+  UINT8   MyFavoriteNumber;\r
+  UINT8   TestLateCheck;\r
+  UINT8   TestLateCheck2;\r
+  UINT8   QuestionAboutTreeHugging;\r
+  UINT8   ChooseToActivateNuclearWeaponry;\r
+  UINT8   SuppressGrayOutSomething;\r
+  UINT8   OrderedList[8];\r
+  UINT8   BootOrder[8];\r
+  UINT8   BootOrderLarge;\r
+  UINT8   DynamicCheck;\r
+} MyIfrNVData;\r
+#pragma pack()\r
+\r
+#endif\r
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/Vfr.vfr b/EdkModulePkg/Universal/UserInterface/DriverSample/Vfr.vfr
new file mode 100644 (file)
index 0000000..6509a66
--- /dev/null
@@ -0,0 +1,622 @@
+// *++\r
+//\r
+// Copyright (c) 2006, Intel Corporation                                                         \r
+// All rights reserved. This program and the accompanying materials                          \r
+// are licensed and made available under the terms and conditions of the BSD License         \r
+// which accompanies this distribution.  The full text of the license may be found at        \r
+// http://opensource.org/licenses/bsd-license.php                                            \r
+//                                                                                           \r
+// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+// \r
+// Module Name:\r
+//\r
+//   Vfr.vfr \r
+// \r
+// Abstract:\r
+// \r
+//   Sample Setup formset\r
+// \r
+// Revision History: \r
+// \r
+// --*/\r
+\r
+\r
+#include "DriverSampleStrDefs.h" \r
\r
+#include "NVDataStruc.h"\r
+\r
+\r
+typedef struct {\r
+  UINT8         Field8;\r
+  UINT16        Field16;\r
+  UINT8         OrderedList[3];\r
+} MyIfrNVData2;\r
+\r
+typedef struct {\r
+  UINT8         Field8;\r
+  UINT16        Field16;\r
+  UINT8         OrderedList[3];\r
+} MyIfrNVData3;\r
+\r
+#define MY_TEXT_KEY                 0x100 \r
+\r
+#define LABEL_1_VALUE               0x01\r
+#define LABEL_2_VALUE               0x1000\r
+#define LABEL_UPDATE_BBS            0x2222\r
+#define LABEL_END_UPDATE_BBS        0x2223\r
+\r
+formset \r
+  guid     = FORMSET_GUID,\r
+  title    = STRING_TOKEN(STR_FORM_SET_TITLE),  \r
+  help     = STRING_TOKEN(STR_FORM_SET_TITLE_HELP), \r
+  class    = 0x10,      \r
+  subclass = 0,\r
+\r
+  varstore MyIfrNVData2, key = 0x1234, name = MY_DATA2, guid = FORMSET_GUID;\r
+\r
+\r
+  varstore MyIfrNVData3, key = 0x4321, name = MY_DATA3, guid = FORMSET_GUID;\r
+\r
+  form formid = 1,\r
+       title  = STRING_TOKEN(STR_FORM1_TITLE);  // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code\r
+  \r
+    subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT);\r
+\r
+    subtitle text = STRING_TOKEN(STR_SUBTITLE_TEXT2);\r
+\r
+    banner \r
+      title = STRING_TOKEN(STR_BANNER_TITLE),\r
+      line  1,\r
+      align center;\r
+    \r
+    banner \r
+      title = STRING_TOKEN(STR_BANNER_TITLE),\r
+      line  2,\r
+      align left;\r
+\r
+    banner \r
+      title = STRING_TOKEN(STR_BANNER_TITLE),\r
+      line  2,\r
+      align right;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_TEXT_HELP),  \r
+      text   = STRING_TOKEN(STR_CPU_STRING),\r
+           text   = STRING_TOKEN(STR_CPU_STRING2),\r
+      flags  = 0,\r
+      key    = 0;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_EXIT_TEXT),  \r
+      text   = STRING_TOKEN(STR_EXIT_TEXT), \r
+           text   = STRING_TOKEN(STR_EXIT_TEXT),\r
+      flags  = INTERACTIVE,\r
+      key    = 0x1237;\r
+\r
+    oneof varid  = MyIfrNVData.SuppressGrayOutSomething,\r
+      prompt      = STRING_TOKEN(STR_ONE_OF_PROMPT),\r
+      help        = STRING_TOKEN(STR_ONE_OF_HELP),  \r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT4), value = 0x0, flags = 0; \r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT5), value = 0x1, flags = 0;\r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT6), value = 0x2, flags = DEFAULT;\r
+    endoneof;\r
+\r
+    oneof varid  = MyIfrNVData.BootOrderLarge,\r
+      prompt      = STRING_TOKEN(STR_ONE_OF_PROMPT),\r
+      help        = STRING_TOKEN(STR_ONE_OF_HELP),  \r
+      option text = STRING_TOKEN(STR_BOOT_ORDER1), value = 0x0, flags = INTERACTIVE, key = 1; \r
+      option text = STRING_TOKEN(STR_BOOT_ORDER2), value = 0x1, flags = INTERACTIVE | DEFAULT, key = 2;\r
+    endoneof;\r
+\r
+    grayoutif  ideqval MyIfrNVData.SuppressGrayOutSomething == 0x1;\r
+    suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x0;\r
+      label 0;\r
+      checkbox varid    = MyIfrNVData.ChooseToActivateNuclearWeaponry,\r
+              prompt   = STRING_TOKEN(STR_CHECK_BOX_PROMPT),\r
+              help     = STRING_TOKEN(STR_CHECK_BOX_HELP),  \r
+              flags    = 1,                  // Flags behavior for checkbox is overloaded so that it equals a DEFAULT value.  1 = ON, 0 = off\r
+              key      = 0,\r
+      endcheckbox;\r
+    endif;\r
+\r
+\r
+    //\r
+    // Ordered list: \r
+    //   sizeof(MyIfrNVData) storage must be UINT8 array, and\r
+    //   size written for the variable must be size of the entire\r
+    //   variable.\r
+    //\r
+    //\r
+    suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x0;\r
+      label LABEL_UPDATE_BBS;\r
+      orderedlist\r
+                varid       = MyIfrNVData.BootOrder,\r
+                prompt      = STRING_TOKEN(STR_BOOT_OPTIONS),\r
+                help        = STRING_TOKEN(STR_NULL_STRING),\r
+                option text = STRING_TOKEN(STR_BOOT_OPTION2), value = 2, flags = RESET_REQUIRED;\r
+                option text = STRING_TOKEN(STR_BOOT_OPTION1), value = 1, flags = RESET_REQUIRED;\r
+                option text = STRING_TOKEN(STR_BOOT_OPTION3), value = 3, flags = RESET_REQUIRED;\r
+                option text = STRING_TOKEN(STR_BOOT_OPTION4), value = 4, flags = RESET_REQUIRED;\r
+      endlist;      \r
+      label LABEL_END_UPDATE_BBS;\r
+    endif;\r
\r
+    suppressif ideqval MyIfrNVData.SuppressGrayOutSomething == 0x2;\r
+      orderedlist    \r
+        varid       = MyIfrNVData.OrderedList,\r
+        prompt      = STRING_TOKEN(STR_TEST_OPCODE),\r
+        help        = STRING_TOKEN(STR_TEXT_HELP),  \r
+        option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 4, flags = RESET_REQUIRED;\r
+        option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 3, flags = RESET_REQUIRED;\r
+        option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 2, flags = RESET_REQUIRED;\r
+        option text = STRING_TOKEN(STR_TEXT_HELP),    value = 1, flags = RESET_REQUIRED;\r
+      endlist;\r
+    endif;\r
+     \r
+    label 100;\r
+\r
+    goto 0x1234, \r
+      prompt  = STRING_TOKEN(STR_GOTO_DYNAMIC), \r
+      help    = STRING_TOKEN(STR_GOTO_HELP),\r
+      flags   = INTERACTIVE, \r
+      key     = 0x1234;\r
+\r
+    goto 0x1234, \r
+      prompt  = STRING_TOKEN(STR_GOTO_DYNAMIC2), \r
+      help    = STRING_TOKEN(STR_GOTO_HELP),\r
+      flags   = INTERACTIVE, \r
+      key     = 0x1235;\r
+    \r
+    //\r
+    // VARSTORE tests\r
+    //\r
+    // Till now, been using variable NvData (must be reserved)\r
+    // now we do a varselect for variable NvData3\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqid MyIfrNVData3.Field16 == MyIfrNVData3.Field16\r
+    endif;\r
+    // now we do a varselect_pair for variable NvData2 and NvData3\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqid MyIfrNVData2.Field16 == MyIfrNVData3.Field16\r
+    endif;\r
+\r
+\r
+    // now we do a varselect_pair for variable NvData and NvData2\r
+//    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+//      ideqid MyIfrNVData2.Field16 == MyIfrNVData.TestLateCheck\r
+//    endif;\r
+\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqid MyIfrNVData.TestLateCheck == MyIfrNVData.TestLateCheck2\r
+    endif;\r
+\r
+    oneof varid  = MyIfrNVData.TestLateCheck,\r
+      prompt      = STRING_TOKEN(STR_TEST_OPCODE),\r
+      help        = STRING_TOKEN(STR_ONE_OF_HELP),  \r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = LATE_CHECK | RESET_REQUIRED;\r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = LATE_CHECK | DEFAULT | RESET_REQUIRED;\r
+    endoneof;\r
+\r
+    oneof varid  = MyIfrNVData.TestLateCheck2,\r
+      prompt      = STRING_TOKEN(STR_TEST_OPCODE2),\r
+      help        = STRING_TOKEN(STR_ONE_OF_HELP),  \r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = LATE_CHECK | DEFAULT | RESET_REQUIRED;\r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = LATE_CHECK | RESET_REQUIRED;\r
+\r
+    endoneof;\r
+\r
+    oneof varid  = MyIfrNVData.QuestionAboutTreeHugging,\r
+      prompt      = STRING_TOKEN(STR_ONE_OF_PROMPT),\r
+      help        = STRING_TOKEN(STR_ONE_OF_HELP),  \r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT1), value = 0, flags = RESET_REQUIRED;\r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT2), value = 1, flags = DEFAULT | RESET_REQUIRED;\r
+      option text = STRING_TOKEN(STR_ONE_OF_TEXT3), value = 0x03, flags = RESET_REQUIRED;\r
+\r
+    endoneof;\r
+\r
+    string    varid    = MyIfrNVData.MyStringData,\r
+              prompt   = STRING_TOKEN(STR_MY_STRING_PROMPT2),\r
+              help     = STRING_TOKEN(STR_MY_STRING_HELP2),\r
+              flags    = INTERACTIVE,\r
+              key      = 0x1234,\r
+              minsize  = 6,\r
+              maxsize  = 0x14,\r
+    endstring; \r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_GRAYOUT_TEST),  \r
+      text   = STRING_TOKEN(STR_GRAYOUT_TEST),\r
+           text   = STRING_TOKEN(STR_GRAYOUT_TEST),\r
+      flags  = INTERACTIVE,\r
+      key    = 0x1555;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_SUPPRESS_TEST),  \r
+      text   = STRING_TOKEN(STR_SUPPRESS_TEST),\r
+           text   = STRING_TOKEN(STR_SUPPRESS_TEST),\r
+      flags  = INTERACTIVE,\r
+      key    = 0x1556;\r
+\r
+       text \r
+      help   = STRING_TOKEN(STR_CLEAR_TEST),  \r
+      text   = STRING_TOKEN(STR_CLEAR_TEST),\r
+           text   = STRING_TOKEN(STR_CLEAR_TEST),\r
+      flags  = INTERACTIVE,\r
+      key    = 0x1557;\r
+\r
+    grayoutif  vareqval var(VAR_EQ_TEST_NAME) == 0x1;\r
+    suppressif vareqval var(VAR_EQ_TEST_NAME) == 0x1000; \r
+      label 30;\r
+      checkbox varid    = MyIfrNVData.ChooseToActivateNuclearWeaponry,\r
+              prompt   = STRING_TOKEN(STR_CHECK_BOX_PROMPT),\r
+              help     = STRING_TOKEN(STR_CHECK_BOX_HELP),  \r
+              flags    = 1,\r
+              key      = 0,\r
+      endcheckbox;\r
+    endif;\r
+\r
+\r
+    numeric varid   = MyIfrNVData.HowOldAreYouInYearsManual, \r
+            prompt  = STRING_TOKEN(STR_NUMERIC_MANUAL_PROMPT),\r
+            help    = STRING_TOKEN(STR_NUMERIC_HELP0),\r
+            minimum = 0,\r
+            maximum = 0xf0,      // 0xf0 = 240 in decimal\r
+            step    = 0,         // Stepping of 0 equates to a manual entering\r
+                                 // of a value, otherwise it will auto-increment\r
+                                 // with a left/right arrow\r
+            default = 21, \r
+\r
+    endnumeric;\r
+\r
+    numeric varid   = MyIfrNVData.HowTallAreYouManual, \r
+            prompt  = STRING_TOKEN(STR_TALL_MANUAL_PROMPT),\r
+            help    = STRING_TOKEN(STR_NUMERIC_HELP1),\r
+            minimum = 0,\r
+            maximum = 300,\r
+            step    = 0,         // Stepping of 0 equates to a manual entering\r
+                                 // of a value, otherwise it will auto-increment\r
+                                 // with a left/right arrow\r
+            default = 175, \r
+\r
+    endnumeric;\r
+\r
+    inventory\r
+      help    = STRING_TOKEN(STR_INVENTORY_HELP),\r
+      text    = STRING_TOKEN(STR_INVENTORY_TEXT1),\r
+      text    = STRING_TOKEN(STR_INVENTORY_TEXT2);\r
+\r
+      \r
+    restore defaults,\r
+      formid  = 4,\r
+      prompt  = STRING_TOKEN(STR_RESTORE_DEFAULTS_PROMPT),\r
+      help    = STRING_TOKEN(STR_RESTORE_DEFAULTS_HELP),\r
+      flags   = 0,\r
+      key     = 0;\r
+\r
+    save defaults,\r
+      formid  = 4,\r
+      prompt  = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),\r
+      help    = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP),\r
+      flags   = 0,\r
+      key     = 0;\r
+\r
+    // \r
+    // Case with no flags or key\r
+    //\r
+    save defaults,\r
+      formid  = 4,\r
+      prompt  = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),\r
+      help    = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP);\r
+    //\r
+    // Case with no key\r
+    //\r
+    save defaults,\r
+      formid  = 4,\r
+      prompt  = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),\r
+      help    = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP),\r
+      flags   = 0;\r
+    //\r
+    // Case with no flags\r
+    //\r
+    save defaults,\r
+      formid  = 4,\r
+      prompt  = STRING_TOKEN(STR_SAVE_DEFAULTS_PROMPT),\r
+      help    = STRING_TOKEN(STR_SAVE_DEFAULTS_HELP),\r
+      key     = 0;\r
+\r
+    label LABEL_2_VALUE;\r
+\r
+    grayoutif  ideqval MyIfrNVData.HowOldAreYouInYearsManual == 23 AND ideqval MyIfrNVData.SuppressGrayOutSomething == 0x1;\r
+    numeric varid   = MyIfrNVData.HowOldAreYouInYears,   \r
+            prompt  = STRING_TOKEN(STR_NUMERIC_PROMPT),\r
+            help    = STRING_TOKEN(STR_NUMERIC_HELP2),\r
+            minimum = 0,\r
+            maximum = 243,\r
+            step    = 3,\r
+            default = 18,\r
+\r
+    endnumeric;\r
+\r
+    label LABEL_1_VALUE;\r
+\r
+    //\r
+    // Numeric with no step or default specified\r
+    //\r
+    numeric varid   = MyIfrNVData.HowTallAreYou, \r
+            prompt  = STRING_TOKEN(STR_NUMERIC_PROMPT1),\r
+            help    = STRING_TOKEN(STR_NUMERIC_HELP3),\r
+            minimum = 0,\r
+            maximum = 190,\r
+    //        step    = 1,       // Stepping of 1 if not specified\r
+    //        default = minimum; // if not specified\r
+    endnumeric;\r
+    endif;\r
+\r
+    string    varid    = MyIfrNVData.MyStringData,\r
+              prompt   = STRING_TOKEN(STR_MY_STRING_PROMPT),\r
+              help     = STRING_TOKEN(STR_MY_STRING_HELP),\r
+              minsize  = 6,\r
+              maxsize  = 0x14,\r
+    endstring; \r
+        \r
+    password  varid    = MyIfrNVData.WhatIsThePassword,\r
+              prompt   = STRING_TOKEN(STR_PASSWORD_PROMPT),\r
+              help     = STRING_TOKEN(STR_PASSWORD_HELP),\r
+              minsize  = 6,\r
+              maxsize  = 20, // new opcode \r
+              encoding = 1,\r
+    endpassword; \r
+    password  varid    = MyIfrNVData.WhatIsThePassword2,\r
+              prompt   = STRING_TOKEN(STR_PASSWORD_PROMPT),\r
+              help     = STRING_TOKEN(STR_PASSWORD_HELP),\r
+              minsize  = 6,\r
+              maxsize  = 20, // new opcode \r
+              encoding = 1,\r
+    endpassword; \r
+    //\r
+    // Test with flags and key fields\r
+    //\r
+    password  varid    = MyIfrNVData.WhatIsThePassword,\r
+              prompt   = STRING_TOKEN(STR_PASSWORD_PROMPT),\r
+              help     = STRING_TOKEN(STR_PASSWORD_HELP),\r
+              flags    = INTERACTIVE,\r
+              key      = 0x2000,\r
+              minsize  = 6,\r
+              maxsize  = 20, // new opcode \r
+              encoding = 1,\r
+    endpassword;\r
+\r
+    goto 2, \r
+      prompt = STRING_TOKEN(STR_GOTO_FORM2), //SecondSetupPage  // this too has no end-op and basically it's a jump to a form ONLY\r
+      help   = STRING_TOKEN(STR_GOTO_HELP);\r
+\r
+    goto 3, \r
+      prompt = STRING_TOKEN(STR_GOTO_FORM3), //ThirdSetupPage  // this too has no end-op and basically it's a jump to a form ONLY\r
+      help   = STRING_TOKEN(STR_GOTO_HELP);\r
+\r
+  endform;\r
+\r
+  form formid = 2,               // SecondSetupPage, \r
+       title = STRING_TOKEN(STR_FORM2_TITLE);  // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code\r
+\r
+\r
+    date    year varid  = Date.Year,    // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_DATE_PROMPT),\r
+            help        = STRING_TOKEN(STR_DATE_YEAR_HELP),\r
+            minimum     = 1998,\r
+            maximum     = 2099,\r
+            step        = 1,\r
+            default     = 2004,\r
+\r
+            month varid = Date.Month,    // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_DATE_PROMPT),\r
+            help        = STRING_TOKEN(STR_DATE_MONTH_HELP),\r
+            minimum     = 1,\r
+            maximum     = 12,\r
+            step        = 1,\r
+            default     = 1,\r
+\r
+            day varid   = Date.Day,          // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_DATE_PROMPT),\r
+            help        = STRING_TOKEN(STR_DATE_DAY_HELP),\r
+            minimum     = 1,\r
+            maximum     = 31,\r
+            step        = 0x1,\r
+            default     = 1,\r
+\r
+    enddate;\r
+\r
+    time    hour varid  = Time.Hours,         // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_TIME_PROMPT),\r
+            help        = STRING_TOKEN(STR_TIME_HOUR_HELP),\r
+            minimum     = 0,\r
+            maximum     = 23,\r
+            step        = 1,\r
+            default     = 0,\r
+\r
+            minute varid  = Time.Minutes,       // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt        = STRING_TOKEN(STR_TIME_PROMPT),\r
+            help          = STRING_TOKEN(STR_TIME_MINUTE_HELP),\r
+            minimum       = 0,\r
+            maximum       = 59,\r
+            step          = 1,\r
+            default       = 0,\r
+\r
+            second varid  = Time.Seconds,       // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt        = STRING_TOKEN(STR_TIME_PROMPT),\r
+            help          = STRING_TOKEN(STR_TIME_SECOND_HELP),\r
+            minimum       = 0,\r
+            maximum       = 59,\r
+            step          = 1,\r
+            default       = 0,\r
+\r
+    endtime;\r
+\r
+    date    year varid  = Date.Year,    // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_DATE_PROMPT),\r
+            help        = STRING_TOKEN(STR_DATE_YEAR_HELP),\r
+            minimum     = 1939,\r
+            maximum     = 2101,\r
+            step        = 1,\r
+            default     = 1964,\r
+\r
+            month varid = Date.Month,    // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_DATE_PROMPT),\r
+            help        = STRING_TOKEN(STR_DATE_MONTH_HELP),\r
+            minimum     = 1,\r
+            maximum     = 12,\r
+            step        = 1,\r
+            default     = 1,\r
+\r
+            day varid   = Date.Day,          // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_DATE_PROMPT),\r
+            help        = STRING_TOKEN(STR_DATE_DAY_HELP),\r
+            minimum     = 1,\r
+            maximum     = 31,\r
+            step        = 0x1,\r
+            default     = 1,\r
+\r
+    enddate;\r
+\r
+    time    hour varid  = Time.Hours,         // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt      = STRING_TOKEN(STR_TIME_PROMPT),\r
+            help        = STRING_TOKEN(STR_TIME_HOUR_HELP),\r
+            minimum     = 0,\r
+            maximum     = 23,\r
+            step        = 1,\r
+            default     = 0,\r
+\r
+            minute varid  = Time.Minutes,       // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt        = STRING_TOKEN(STR_TIME_PROMPT),\r
+            help          = STRING_TOKEN(STR_TIME_MINUTE_HELP),\r
+            minimum       = 0,\r
+            maximum       = 59,\r
+            step          = 1,\r
+            default       = 0,\r
+\r
+            second varid  = Time.Seconds,       // Note that it is a member of NULL, so the RTC will be the system resource to retrieve and save from\r
+            prompt        = STRING_TOKEN(STR_TIME_PROMPT),\r
+            help          = STRING_TOKEN(STR_TIME_SECOND_HELP),\r
+            minimum       = 0,\r
+            maximum       = 59,\r
+            step          = 1,\r
+            default       = 0,\r
+\r
+    endtime;\r
+\r
+    grayoutif \r
+      ideqval Date.Day == 21\r
+      AND\r
+      ideqval Date.Month == 8;\r
+    \r
+    hidden  value = 32, key = 0x7777;\r
+\r
+    endif; // grayoutif\r
+\r
+    suppressif\r
+      ideqval Date.Day == 8\r
+      AND\r
+      ideqval Date.Month == 21; \r
+    \r
+    hidden  value = 32, key = 0x7777;\r
+\r
+    endif; // suppressif\r
+\r
+\r
+    hidden  value = 32, key = 0x1234;\r
+\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqval MyIfrNVData.HowOldAreYouInYearsManual == 4\r
+    endif;\r
+     \r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqvallist MyIfrNVData.HowOldAreYouInYearsManual == 1 2 3 4\r
+    endif;\r
+\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqid MyIfrNVData.HowOldAreYouInYearsManual == MyIfrNVData.MyFavoriteNumber\r
+    endif;\r
+\r
+//    grayoutif \r
+//\r
+// If the day is 31 AND months is any of the following 2, 4, 6, 9, 11\r
+//\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqval Date.Day == 31 \r
+      AND\r
+      ideqvallist Date.Month == 2 4 6 9 11\r
+    endif;\r
+\r
+//\r
+// If the day is 30 AND month is 2\r
+//\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqval Date.Day == 30\r
+      AND\r
+      ideqval Date.Month == 2\r
+    endif;\r
+\r
+//\r
+// If the day is 29 AND month is 2 AND it year is NOT a leapyear\r
+//\r
+    inconsistentif prompt = STRING_TOKEN(STR_ERROR_POPUP),\r
+      ideqval Date.Day == 0x1D\r
+      AND\r
+      ideqval Date.Month == 2 \r
+      AND\r
+      NOT\r
+      ideqvallist Date.Year == 2004 2008 20012 20016 2020 2024 2028 2032 2036\r
+    endif;\r
+\r
+    checkbox varid    = MyIfrNVData.ChooseToActivateNuclearWeaponry,\r
+            prompt   = STRING_TOKEN(STR_CHECK_BOX_PROMPT),\r
+            help     = STRING_TOKEN(STR_CHECK_BOX_HELP),  \r
+            flags    = 1,\r
+            key      = 0,\r
+    endcheckbox;\r
+\r
+    text  \r
+      help = STRING_TOKEN(STR_TEXT_HELP),  \r
+      text = STRING_TOKEN(STR_TEXT_TEXT_1);\r
+    \r
+    text \r
+      help   = STRING_TOKEN(STR_TEXT_HELP),  \r
+      text   = STRING_TOKEN(STR_TEXT_TEXT_1),\r
+      text   = STRING_TOKEN(STR_TEXT_TEXT_2),\r
+      flags  = 0,\r
+      key    = MY_TEXT_KEY;\r
+         \r
+    goto 1, \r
+      prompt = STRING_TOKEN(STR_GOTO_FORM1), //MainSetupPage  // this too has no end-op and basically it's a jump to a form ONLY\r
+      help   = STRING_TOKEN(STR_GOTO_HELP);\r
+\r
+  endform;\r
+\r
+  form formid = 3, title = STRING_TOKEN(STR_FORM3_TITLE);  // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code\r
+\r
+    grayoutif  ideqval MyIfrNVData.SuppressGrayOutSomething == 0x1;\r
+      text  \r
+        help = STRING_TOKEN(STR_TEXT_HELP),  \r
+        text = STRING_TOKEN(STR_TEXT_TEXT_1);\r
+        \r
+    endif; //end grayoutif\r
+    \r
+    text  \r
+      help = STRING_TOKEN(STR_TEXT_HELP),  \r
+      text = STRING_TOKEN(STR_TEXT_TEXT_1);\r
+    \r
+  endform;\r
+  \r
+  form formid = 4, title = STRING_TOKEN(STR_FORM3_TITLE);\r
+\r
+  endform;\r
+\r
+  form formid = 0x1234,            // Dynamically created page, \r
+       title = STRING_TOKEN(STR_DYNAMIC_TITLE);  // note formid is a variable (for readability) (UINT16) - also added Form to the line to signify the Op-Code\r
+\r
+    label 0x1234;\r
+\r
+  endform;\r
+\r
+endformset;\r
diff --git a/EdkModulePkg/Universal/UserInterface/DriverSample/VfrStrings.uni b/EdkModulePkg/Universal/UserInterface/DriverSample/VfrStrings.uni
new file mode 100644 (file)
index 0000000..9e9dbf5
Binary files /dev/null and b/EdkModulePkg/Universal/UserInterface/DriverSample/VfrStrings.uni differ
index 65669af7d7834150279a477dfc0009f79376b04f..60c4440365203474eab427dbea7c7fc354ea4476 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>FCD337AB-B1D3-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>FCD337AB-B1D3-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for HiiDatabase module.</Abstract>\r
+    <Description>This module inits HII database and installs HII protocol.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 1b99a17ee64d5958e8f3e21e377c29b52f90ca33..49a6282981a3156bfd74d847b415cb57cd67a28d 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>FE3542FE-C1D3-4EF8-657C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>FE3542FE-C1D3-4EF8-657C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for DriverSample module.</Abstract>\r
+    <Description>This is an example driver to introduce how to export data to the HII protocol to be later utilized by the Setup Protocol. </Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index beb4f81d655a393fb6c0bc591fdaf0d7c1f486b6..6b91ca80c0f91f7b801a68a67b20d1937359884b 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>EBf342FE-B1D3-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>EBf342FE-B1D3-4EF8-957C-8048606FF670</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for SetupBrowser module.</Abstract>\r
+    <Description>This driver initializes Setup for the brower and installs FormBrowser protocol.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 9bee91f48899859e9b84361383407e4949070ab3..f8cf68b6cd2e0a0ecfa0ce40e3fb04614f1ad316 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>PEIM</ModuleType>\r
     <GuidValue>34C8C28F-B61C-45a2-8F2E-89E46BECC63B</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>PEIM</ModuleType>\r
     <GuidValue>34C8C28F-B61C-45a2-8F2E-89E46BECC63B</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for PeiVariable module.</Abstract>\r
+    <Description>Framework PEIM to provide the Variable functionality.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index 063c4aef3d2b35d708a6859645f831a741705768..65fade34304bde975d42906de6714a68ca2016fb 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>CBD2E4D5-7068-4FF5-B462-9822B4AD8D60</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_RUNTIME_DRIVER</ModuleType>\r
     <GuidValue>CBD2E4D5-7068-4FF5-B462-9822B4AD8D60</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for Variable module.</Abstract>\r
+    <Description>This module installs three EFI_RUNTIME_SERVICES: SetVariable, GetVariable, GetNextVariableName.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
index dbb918e6cffcf1b7dcfa65719af63ca3453e1429..1771e329d1133e20ff4a0534e93558de1bbcf958 100644 (file)
@@ -13,8 +13,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.-->
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>F099D67F-71AE-4c36-B2A3-DCEB0EB2B7D8</GuidValue>\r
     <Version>1.0</Version>\r
     <ModuleType>DXE_DRIVER</ModuleType>\r
     <GuidValue>F099D67F-71AE-4c36-B2A3-DCEB0EB2B7D8</GuidValue>\r
     <Version>1.0</Version>\r
-    <Abstract>Component description file for DiskIo module.</Abstract>\r
-    <Description>FIX ME!</Description>\r
+    <Abstract>Component description file for WatchDogTimer module.</Abstract>\r
+    <Description>Generic watchdog timer implemenetation using EFI APIs.</Description>\r
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License
     <Copyright>Copyright (c) 2006, Intel Corporation</Copyright>\r
     <License>All rights reserved. This program and the accompanying materials
       are licensed and made available under the terms and conditions of the BSD License