]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Clean up the private GUID definition in module Level.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 18 Sep 2011 12:21:01 +0000 (12:21 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 18 Sep 2011 12:21:01 +0000 (12:21 +0000)
0. Remove the unused private GUID from module source files.
1. Use gEfiCallerIdGuid replace of the private module GUID.
2. Add the public header files to define HII FormSet and PackageList GUID used in every HII driver.
3. Move two EBC protocols for debug purpose from EBC driver to MdeModulePkg Include directory.

Signed-off-by: lgao4
Reviewed-by: ydong10 gdong1 tye jfan12 wli12 rsun3 jyao1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12373 6f19259b-4bc3-4df7-8a09-765794883524

58 files changed:
MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.c
MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBus.h
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h
MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.h
MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c
MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
MdeModulePkg/Include/Guid/DriverSampleHii.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/HiiResourceSampleHii.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/Ip4ConfigHii.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/Ip4IScsiConfigHii.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/MtcVendor.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/PlatDriOverrideHii.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/UsbKeyBoardLayout.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/VlanConfigHii.h [new file with mode: 0644]
MdeModulePkg/Include/Guid/ZeroGuid.h [new file with mode: 0644]
MdeModulePkg/Include/Protocol/EbcSimpleDebugger.h [new file with mode: 0644]
MdeModulePkg/Include/Protocol/EbcVmTest.h [new file with mode: 0644]
MdeModulePkg/MdeModulePkg.dec
MdeModulePkg/MdeModulePkg.dsc
MdeModulePkg/Universal/DriverSampleDxe/DriverSample.c
MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
MdeModulePkg/Universal/DriverSampleDxe/Inventory.vfr
MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
MdeModulePkg/Universal/EbcDxe/EbcExecute.c
MdeModulePkg/Universal/EbcDxe/EbcExecute.h
MdeModulePkg/Universal/EbcDxe/EbcInt.c
MdeModulePkg/Universal/EbcDxe/EbcInt.h
MdeModulePkg/Universal/HiiDatabaseDxe/Database.c
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabase.h
MdeModulePkg/Universal/HiiResourcesSampleDxe/HiiResourcesSample.c
MdeModulePkg/Universal/HiiResourcesSampleDxe/Sample.vfr
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounter.c
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.c
MdeModulePkg/Universal/Network/IScsiDxe/IScsiCHAP.h
MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfig.c
MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfigDxe.vfr
MdeModulePkg/Universal/Network/IScsiDxe/IScsiConfigNVDataStruc.h
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.c
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDriver.h
MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
MdeModulePkg/Universal/Network/IScsiDxe/IScsiIbft.c
MdeModulePkg/Universal/Network/IScsiDxe/IScsiMisc.c
MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.c
MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4NvData.h
MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfig.vfr
MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDriver.c
MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigImpl.c
MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigNvData.h
MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatDriOverrideDxe.c
MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatOverMngr.h
MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf

index 83c2ca3afe628b80c36c664a5cff141c810c51e2..b1c4d207f9de8bf415b3b7a157906391dcba334e 100644 (file)
@@ -26,14 +26,6 @@ EFI_DRIVER_BINDING_PROTOCOL gSCSIBusDriverBinding = {
   NULL\r
 };\r
 \r
-\r
-//\r
-// The ScsiBusProtocol is just used to locate ScsiBusDev\r
-// structure in the SCSIBusDriverBindingStop(). Then we can\r
-// Close all opened protocols and release this structure.\r
-//\r
-EFI_GUID  mScsiBusProtocolGuid = EFI_SCSI_BUS_PROTOCOL_GUID;\r
-\r
 VOID  *mWorkingBuffer;\r
 \r
 /**\r
@@ -389,7 +381,7 @@ SCSIBusDriverBindingStart (
     // \r
     Status = gBS->InstallProtocolInterface (\r
                     &Controller,\r
-                    &mScsiBusProtocolGuid,\r
+                    &gEfiCallerIdGuid,\r
                     EFI_NATIVE_INTERFACE,\r
                     &ScsiBusDev->BusIdentify\r
                     );\r
@@ -403,7 +395,7 @@ SCSIBusDriverBindingStart (
     //\r
     Status = gBS->OpenProtocol (\r
                     Controller,\r
-                    &mScsiBusProtocolGuid,\r
+                    &gEfiCallerIdGuid,\r
                     (VOID **) &BusIdentify,\r
                     This->DriverBindingHandle,\r
                     Controller,\r
@@ -560,7 +552,7 @@ SCSIBusDriverBindingStop (
     //\r
     Status = gBS->OpenProtocol (\r
                     Controller,\r
-                    &mScsiBusProtocolGuid,\r
+                    &gEfiCallerIdGuid,\r
                     (VOID **) &Scsidentifier,\r
                     This->DriverBindingHandle,\r
                     Controller,\r
@@ -578,7 +570,7 @@ SCSIBusDriverBindingStop (
     //\r
     gBS->UninstallProtocolInterface (\r
            Controller,\r
-           &mScsiBusProtocolGuid,\r
+           &gEfiCallerIdGuid,\r
            &ScsiBusDev->BusIdentify\r
            );\r
 \r
index a9e5da7deffc089b4d80a4ec7e64ec9672189c7f..8f86444a4ce432c3d998a11ba5a77824aa026670 100644 (file)
@@ -75,11 +75,14 @@ typedef struct {
 //\r
 // SCSI Bus Controller device strcuture\r
 //\r
-#define EFI_SCSI_BUS_PROTOCOL_GUID \\r
-  { \\r
-    0x5261213D, 0x3A3D, 0x441E, {0xB3, 0xAF, 0x21, 0xD3, 0xF7, 0xA4, 0xCA, 0x17} \\r
-  }\r
 \r
+//\r
+// The ScsiBusProtocol is just used to locate ScsiBusDev\r
+// structure in the SCSIBusDriverBindingStop(). Then we can\r
+// Close all opened protocols and release this structure.\r
+// ScsiBusProtocol is the private protocol.\r
+// gEfiCallerIdGuid will be used as its protocol guid.\r
+//\r
 typedef struct _EFI_SCSI_BUS_PROTOCOL {\r
   UINT64  Reserved;\r
 } EFI_SCSI_BUS_PROTOCOL;\r
index 63480f62a9a5257f01afc32b9362de7ee36ec6cb..30bf43cb36070951d19beb107825e358bcb7c8c3 100644 (file)
@@ -15,11 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "UsbBus.h"\r
 \r
-//\r
-// USB_BUS_PROTOCOL is only used to locate USB_BUS\r
-//\r
-EFI_GUID  mUsbBusProtocolGuid = EFI_USB_BUS_PROTOCOL_GUID;\r
-\r
 EFI_USB_IO_PROTOCOL mUsbIoProtocol = {\r
   UsbIoControlTransfer,\r
   UsbIoBulkTransfer,\r
@@ -982,7 +977,7 @@ UsbBusBuildProtocol (
   //\r
   Status = gBS->InstallProtocolInterface (\r
                   &Controller,\r
-                  &mUsbBusProtocolGuid,\r
+                  &gEfiCallerIdGuid,\r
                   EFI_NATIVE_INTERFACE,\r
                   &UsbBus->BusId\r
                   );\r
@@ -1045,7 +1040,7 @@ FREE_ROOTHUB:
   }\r
 \r
 UNINSTALL_USBBUS:\r
-  gBS->UninstallProtocolInterface (Controller, &mUsbBusProtocolGuid, &UsbBus->BusId);\r
+  gBS->UninstallProtocolInterface (Controller, &gEfiCallerIdGuid, &UsbBus->BusId);\r
 \r
 CLOSE_HC:\r
   if (UsbBus->Usb2Hc != NULL) {\r
@@ -1277,7 +1272,7 @@ UsbBusControllerDriverStart (
   //\r
   Status = gBS->OpenProtocol (\r
                   Controller,\r
-                  &mUsbBusProtocolGuid,\r
+                  &gEfiCallerIdGuid,\r
                   (VOID **) &UsbBusId,\r
                   This->DriverBindingHandle,\r
                   Controller,\r
@@ -1298,7 +1293,7 @@ UsbBusControllerDriverStart (
     //\r
     Status = gBS->OpenProtocol (\r
                     Controller,\r
-                    &mUsbBusProtocolGuid,\r
+                    &gEfiCallerIdGuid,\r
                     (VOID **) &UsbBusId,\r
                     This->DriverBindingHandle,\r
                     Controller,\r
@@ -1417,7 +1412,7 @@ UsbBusControllerDriverStop (
   //\r
   Status = gBS->OpenProtocol (\r
                   Controller,\r
-                  &mUsbBusProtocolGuid,\r
+                  &gEfiCallerIdGuid,\r
                   (VOID **) &BusId,\r
                   This->DriverBindingHandle,\r
                   Controller,\r
@@ -1460,7 +1455,7 @@ UsbBusControllerDriverStop (
   //\r
   // Uninstall the bus identifier and close USB_HC/USB2_HC protocols\r
   //\r
-  gBS->UninstallProtocolInterface (Controller, &mUsbBusProtocolGuid, &Bus->BusId);\r
+  gBS->UninstallProtocolInterface (Controller, &gEfiCallerIdGuid, &Bus->BusId);\r
 \r
   if (Bus->Usb2Hc != NULL) {\r
     gBS->CloseProtocol (\r
index 14454da28a5bff3608d3e60f32717dd0d6250d21..f6e323239a46fe5223c2c983e2b5b83a1dc21311 100644 (file)
@@ -138,9 +138,6 @@ typedef struct _USB_HUB_API    USB_HUB_API;
 #define USB_BIT(a)                  ((UINTN)(1 << (a)))\r
 #define USB_BIT_IS_SET(Data, Bit)   ((BOOLEAN)(((Data) & (Bit)) == (Bit)))\r
 \r
-#define EFI_USB_BUS_PROTOCOL_GUID \\r
-          {0x2B2F68CC, 0x0CD2, 0x44cf, {0x8E, 0x8B, 0xBB, 0xA2, 0x0B, 0x1B, 0x5B, 0x75}}\r
-\r
 #define USB_INTERFACE_FROM_USBIO(a) \\r
           CR(a, USB_INTERFACE, UsbIo, USB_INTERFACE_SIGNATURE)\r
 \r
@@ -149,6 +146,8 @@ typedef struct _USB_HUB_API    USB_HUB_API;
 \r
 //\r
 // Used to locate USB_BUS\r
+// UsbBusProtocol is the private protocol.\r
+// gEfiCallerIdGuid will be used as its protocol guid.\r
 //\r
 typedef struct _EFI_USB_BUS_PROTOCOL {\r
   UINT64                    Reserved;\r
index 8a12d0fa3f43abffde817ffd8484c0f1885904cc..2066c38e7e9a654b8caf0b5ffad66b87efa8e251 100644 (file)
@@ -24,6 +24,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Protocol/DevicePath.h>\r
 \r
 #include <Guid/HiiKeyBoardLayout.h>\r
+#include <Guid/UsbKeyBoardLayout.h>\r
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/ReportStatusCodeLib.h>\r
index 859a4dece399e01ce5baf877e3d950f12bc29818..000430ae78d3353e635d27b6cd350cbb1e39af39 100644 (file)
@@ -14,9 +14,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "KeyBoard.h"\r
 \r
-EFI_GUID  mUsbKeyboardLayoutPackageGuid = USB_KEYBOARD_LAYOUT_PACKAGE_GUID;\r
-EFI_GUID  mUsbKeyboardLayoutKeyGuid = USB_KEYBOARD_LAYOUT_KEY_GUID;\r
-\r
 USB_KEYBOARD_LAYOUT_PACK_BIN  mUsbKeyboardLayoutBin = {\r
   sizeof (USB_KEYBOARD_LAYOUT_PACK_BIN),   // Binary size\r
 \r
@@ -338,7 +335,7 @@ InstallDefaultKeyboardLayout (
   // Install Keyboard Layout package to HII database\r
   //\r
   HiiHandle = HiiAddPackages (\r
-                &mUsbKeyboardLayoutPackageGuid,\r
+                &gUsbKeyboardLayoutPackageGuid,\r
                 UsbKeyboardDevice->ControllerHandle,\r
                 &mUsbKeyboardLayoutBin,\r
                 NULL\r
@@ -350,7 +347,7 @@ InstallDefaultKeyboardLayout (
   //\r
   // Set current keyboard layout\r
   //\r
-  Status = HiiDatabase->SetKeyboardLayout (HiiDatabase, &mUsbKeyboardLayoutKeyGuid);\r
+  Status = HiiDatabase->SetKeyboardLayout (HiiDatabase, &gUsbKeyboardLayoutKeyGuid);\r
 \r
   return Status;\r
 }\r
index 73efef8f62c2e1ca4f6429e45c3024cf44a4d66c..c41a0727f1ecb3760f0dc9898e338235d6294307 100644 (file)
@@ -18,16 +18,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "EfiKey.h"\r
 \r
-#define USB_KEYBOARD_LAYOUT_PACKAGE_GUID \\r
-  { \\r
-    0xc0f3b43, 0x44de, 0x4907, { 0xb4, 0x78, 0x22, 0x5f, 0x6f, 0x62, 0x89, 0xdc } \\r
-  }\r
-\r
-#define USB_KEYBOARD_LAYOUT_KEY_GUID \\r
-  { \\r
-    0x3a4d7a7c, 0x18a, 0x4b42, { 0x81, 0xb3, 0xdc, 0x10, 0xe3, 0xb5, 0x91, 0xbd } \\r
-  }\r
-\r
 #define USB_KEYBOARD_KEY_COUNT            104\r
 \r
 #define USB_KEYBOARD_LANGUAGE_STR_LEN     5         // RFC4646 Language Code: "en-US"\r
index 6c2c7f43150ac36eaeb283b52525e90303c2fcb1..b1da4b7786d95ef4b01b46921bb00dde54808f76 100644 (file)
@@ -74,6 +74,8 @@
   # which will be triggered by EFI_HII_DATABASE_PROTOCOL.SetKeyboardLayout().\r
   #\r
   gEfiHiiKeyBoardLayoutGuid                     ## SOMETIME_CONSUMES  ## Event\r
+  gUsbKeyboardLayoutPackageGuid\r
+  gUsbKeyboardLayoutKeyGuid\r
 \r
 [Protocols]\r
   gEfiUsbIoProtocolGuid                         ## TO_START\r
diff --git a/MdeModulePkg/Include/Guid/DriverSampleHii.h b/MdeModulePkg/Include/Guid/DriverSampleHii.h
new file mode 100644 (file)
index 0000000..01c571f
--- /dev/null
@@ -0,0 +1,41 @@
+/** @file\r
+  GUIDs used as HII FormSet and HII Package list GUID in Driver Sample driver. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __DRIVER_SAMPLE_HII_GUID_H__\r
+#define __DRIVER_SAMPLE_HII_GUID_H__\r
+\r
+#define DRIVER_SAMPLE_FORMSET_GUID \\r
+  { \\r
+    0xA04A27f4, 0xDF00, 0x4D42, {0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D} \\r
+  }\r
+\r
+#define DRIVER_SAMPLE_INVENTORY_GUID \\r
+  { \\r
+    0xb3f56470, 0x6141, 0x4621, {0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8} \\r
+  }\r
+\r
+#define EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \\r
+  { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }\r
+\r
+#define EFI_IFR_REFRESH_ID_OP_GUID \\r
+  { \\r
+    0xF5E655D9, 0x02A6, 0x46f2, {0x9E, 0x76, 0xB8, 0xBE, 0x8E, 0x60, 0xAB, 0x22} \\r
+  }\r
+\r
+extern EFI_GUID gDriverSampleFormSetGuid;\r
+extern EFI_GUID gDriverSampleInventoryGuid;\r
+extern EFI_GUID gEfiUserInfoAccessSetupAdminGuid;\r
+extern EFI_GUID gEfiIfrRefreshIdOpGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/HiiResourceSampleHii.h b/MdeModulePkg/Include/Guid/HiiResourceSampleHii.h
new file mode 100644 (file)
index 0000000..2a86cad
--- /dev/null
@@ -0,0 +1,23 @@
+/** @file\r
+  GUID used as HII FormSet GUID in HII Resource Sample driver. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __HII_RESOURCE_SAMPLE_HII_GUID_H__\r
+#define __HII_RESOURCE_SAMPLE_HII_GUID_H__\r
+\r
+#define HII_RESOURCE_SAMPLE_FORM_SET_GUID  \\r
+    { 0x4f4ef7f0, 0xaa29, 0x4ce9, { 0xba, 0x41, 0x64, 0x3e, 0x1, 0x23, 0xa9, 0x9f }}\r
+\r
+extern EFI_GUID gHiiResourceSamleFormSetGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/Ip4ConfigHii.h b/MdeModulePkg/Include/Guid/Ip4ConfigHii.h
new file mode 100644 (file)
index 0000000..87c54a0
--- /dev/null
@@ -0,0 +1,25 @@
+/** @file\r
+  GUIDs used as HII FormSet and HII Package list GUID in Ip4ConfigDxe driver. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __IP4_CONFIG_HII_GUID_H__\r
+#define __IP4_CONFIG_HII_GUID_H__\r
+\r
+#define EFI_NIC_IP4_CONFIG_NVDATA_GUID \\r
+  { \\r
+    0x9d5b53f, 0xf4b0, 0x4f59, { 0xa0, 0xb1, 0x7b, 0x57, 0xd3, 0x5c, 0xe, 0x5 } \\r
+  }\r
+\r
+extern EFI_GUID gNicIp4ConfigNvDataGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/Ip4IScsiConfigHii.h b/MdeModulePkg/Include/Guid/Ip4IScsiConfigHii.h
new file mode 100644 (file)
index 0000000..4eb4c82
--- /dev/null
@@ -0,0 +1,31 @@
+/** @file\r
+  GUIDs used as HII FormSet and HII Package list GUID in IP4 IScsiDxe driver. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __IP4_ISCSI_CONFIG_HII_GUID_H__\r
+#define __IP4_ISCSI_CONFIG_HII_GUID_H__\r
+\r
+#define IP4_ISCSI_CONFIG_GUID \\r
+  { \\r
+    0x6456ed61, 0x3579, 0x41c9, { 0x8a, 0x26, 0x0a, 0x0b, 0xd6, 0x2b, 0x78, 0xfc } \\r
+  }\r
+\r
+#define ISCSI_CHAP_AUTH_INFO_GUID \\r
+  { \\r
+    0x786ec0ac, 0x65ae, 0x4d1b, {0xb1, 0x37, 0xd, 0x11, 0xa, 0x48, 0x37, 0x97} \\r
+  }\r
+\r
+extern EFI_GUID gIp4IScsiConfigGuid;\r
+extern EFI_GUID gIScsiCHAPAuthInfoGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/MtcVendor.h b/MdeModulePkg/Include/Guid/MtcVendor.h
new file mode 100644 (file)
index 0000000..77bc2ae
--- /dev/null
@@ -0,0 +1,31 @@
+/** @file\r
+  GUID is for MTC variable. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __MTC_VENDOR_GUID_H__\r
+#define __MTC_VENDOR_GUID_H__\r
+\r
+//\r
+// Vendor GUID of the variable for the high part of monotonic counter (UINT32).\r
+//\r
+#define MTC_VENDOR_GUID \\r
+  { 0xeb704011, 0x1402, 0x11d3, { 0x8e, 0x77, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } }\r
+\r
+//\r
+// Name of the variable for the high part of monotonic counter\r
+//\r
+#define MTC_VARIABLE_NAME L"MTC"\r
+\r
+extern EFI_GUID gMtcVendorGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/PlatDriOverrideHii.h b/MdeModulePkg/Include/Guid/PlatDriOverrideHii.h
new file mode 100644 (file)
index 0000000..bd8e493
--- /dev/null
@@ -0,0 +1,25 @@
+/** @file\r
+  GUIDs used as HII FormSet and HII Package list GUID in PlatDriOverride driver. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __PLATFORM_DRIVER_OVERRIDE_HII_GUID_H__\r
+#define __PLATFORM_DRIVER_OVERRIDE_HII_GUID_H__\r
+\r
+#define PLAT_OVER_MNGR_GUID \\r
+  { \\r
+    0x8614567d, 0x35be, 0x4415, {0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0} \\r
+  }\r
+\r
+extern EFI_GUID gPlatformOverridesManagerGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/UsbKeyBoardLayout.h b/MdeModulePkg/Include/Guid/UsbKeyBoardLayout.h
new file mode 100644 (file)
index 0000000..57d8164
--- /dev/null
@@ -0,0 +1,37 @@
+/** @file\r
+  USB KeyBoard Layout GUIDs\r
+\r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __USB_KEYBOARD_LAYOUT_GUID_H__\r
+#define __USB_KEYBOARD_LAYOUT_GUID_H__\r
+\r
+//\r
+// GUID for USB keyboard HII package list.\r
+//\r
+#define USB_KEYBOARD_LAYOUT_PACKAGE_GUID \\r
+  { \\r
+    0xc0f3b43, 0x44de, 0x4907, { 0xb4, 0x78, 0x22, 0x5f, 0x6f, 0x62, 0x89, 0xdc } \\r
+  }\r
+\r
+//\r
+// GUID for USB keyboard layout\r
+//\r
+#define USB_KEYBOARD_LAYOUT_KEY_GUID \\r
+  { \\r
+    0x3a4d7a7c, 0x18a, 0x4b42, { 0x81, 0xb3, 0xdc, 0x10, 0xe3, 0xb5, 0x91, 0xbd } \\r
+  }\r
+\r
+extern EFI_GUID  gUsbKeyboardLayoutPackageGuid;\r
+extern EFI_GUID  gUsbKeyboardLayoutKeyGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/VlanConfigHii.h b/MdeModulePkg/Include/Guid/VlanConfigHii.h
new file mode 100644 (file)
index 0000000..3848ce7
--- /dev/null
@@ -0,0 +1,25 @@
+/** @file\r
+  GUIDs used as HII FormSet and HII Package list GUID in VlanConfig driver. \r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __VLAN_CONFIG_HII_GUID_H__\r
+#define __VLAN_CONFIG_HII_GUID_H__\r
+\r
+#define VLAN_CONFIG_FORM_SET_GUID \\r
+  { \\r
+    0xd79df6b0, 0xef44, 0x43bd, {0x97, 0x97, 0x43, 0xe9, 0x3b, 0xcf, 0x5f, 0xa8 } \\r
+  }\r
+\r
+extern EFI_GUID gVlanConfigFormSetGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Guid/ZeroGuid.h b/MdeModulePkg/Include/Guid/ZeroGuid.h
new file mode 100644 (file)
index 0000000..7ba8dda
--- /dev/null
@@ -0,0 +1,25 @@
+/** @file\r
+  GUID has all zero values.\r
+  \r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under \r
+the terms and conditions of the BSD License that accompanies this distribution.  \r
+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
+**/\r
+\r
+#ifndef __ZERO_GUID_H__\r
+#define __ZERO_GUID_H__\r
+\r
+#define ZERO_GUID \\r
+  { \\r
+    0x0, 0x0, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} \\r
+  }\r
+\r
+extern EFI_GUID gZeroGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Protocol/EbcSimpleDebugger.h b/MdeModulePkg/Include/Protocol/EbcSimpleDebugger.h
new file mode 100644 (file)
index 0000000..1db01e3
--- /dev/null
@@ -0,0 +1,124 @@
+/** @file\r
+  EBC Simple Debugger protocol for debug EBC code.\r
+\r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions\r
+of the BSD License which accompanies this distribution.  The\r
+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
+**/\r
+\r
+#ifndef _EBC_SIMPLE_DEBUGGER_PROTOCOL_H_\r
+#define _EBC_SIMPLE_DEBUGGER_PROTOCOL_H_\r
+\r
+#include <Protocol\DebugSupport.h>\r
+#include <Protocol\EbcVmTest.h>\r
+\r
+#define EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL_GUID \\r
+  { \\r
+    0x2a72d11e, 0x7376, 0x40f6, { 0x9c, 0x68, 0x23, 0xfa, 0x2f, 0xe3, 0x63, 0xf1 } \\r
+  }\r
+\r
+//\r
+// Defines for a simple EBC debugger interface\r
+//\r
+typedef struct _EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL;\r
+\r
+/**\r
+  Trig Exception on EBC VM.\r
+\r
+  @param[in] This           A pointer to the EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL structure.\r
+  @param[in] VmPtr          A pointer to a VM context.\r
+  @param[in] ExceptionType  Exception to be trigged.\r
+\r
+  @retval EFI_UNSUPPORTED       No support for it.\r
+  @retval EFI_SUCCESS           Exception is trigged.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EBC_DEBUGGER_SIGNAL_EXCEPTION) (\r
+  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
+  IN VM_CONTEXT                                 *VmPtr,\r
+  IN EFI_EXCEPTION_TYPE                         ExceptionType\r
+  );\r
+\r
+/**\r
+  Given a pointer to a new VM context, debug one or more instructions.\r
+\r
+  @param[in] This           A pointer to the EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL structure.\r
+  @param[in] VmPtr          A pointer to a VM context.\r
+\r
+  @retval EFI_UNSUPPORTED       No support for it.\r
+  @retval EFI_SUCCESS           Debug one or more instructions.\r
+\r
+**/\r
+typedef\r
+VOID\r
+(EFIAPI *EBC_DEBUGGER_DEBUG) (\r
+  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
+  IN VM_CONTEXT                                 *VmPtr\r
+  );\r
+\r
+/**\r
+  Given a pointer to a new VM context, dump one or more instructions.\r
+\r
+  @param[in] This           A pointer to the EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL structure.\r
+  @param[in] VmPtr          A pointer to a VM context.\r
+  @param[in] DasmString     Dump string buffer. \r
+  @param[in] DasmStringSize Dump string size.\r
+\r
+  @retval EFI_UNSUPPORTED       No support for it.\r
+  @retval EFI_SUCCESS           Dump one or more instructions.\r
+\r
+**/\r
+typedef\r
+UINT32\r
+(EFIAPI *EBC_DEBUGGER_DASM) (\r
+  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
+  IN VM_CONTEXT                                 *VmPtr,\r
+  IN UINT16                                     *DasmString OPTIONAL,\r
+  IN UINT32                                     DasmStringSize\r
+  );\r
+\r
+/**\r
+  This interface allows you to configure the EBC debug support\r
+  driver. For example, turn on or off saving and printing of\r
+  delta VM even if called. Or to even disable the entire interface,\r
+  in which case all functions become no-ops.\r
+\r
+  @param[in] This           A pointer to the EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL structure.\r
+  @param[in] ConfigId       ID to be configured.\r
+  @param[in] ConfigValue    Value to be set.\r
+\r
+  @retval EFI_UNSUPPORTED       No support for it.\r
+  @retval EFI_SUCCESS           Configure EBC debug.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EBC_DEBUGGER_CONFIGURE) (\r
+  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
+  IN UINT32                                     ConfigId,\r
+  IN UINTN                                      ConfigValue\r
+  );\r
+\r
+//\r
+// Prototype for the actual EBC debug support protocol interface\r
+//\r
+struct _EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL {\r
+  EBC_DEBUGGER_DEBUG            Debugger;\r
+  EBC_DEBUGGER_SIGNAL_EXCEPTION SignalException;\r
+  EBC_DEBUGGER_DASM             Dasm;\r
+  EBC_DEBUGGER_CONFIGURE        Configure;\r
+};\r
+\r
+extern EFI_GUID gEfiEbcSimpleDebuggerProtocolGuid;\r
+\r
+#endif\r
diff --git a/MdeModulePkg/Include/Protocol/EbcVmTest.h b/MdeModulePkg/Include/Protocol/EbcVmTest.h
new file mode 100644 (file)
index 0000000..b846083
--- /dev/null
@@ -0,0 +1,142 @@
+/** @file\r
+  EBC VM Test protocol for test purposes.\r
+\r
+Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+\r
+This program and the accompanying materials\r
+are licensed and made available under the terms and conditions\r
+of the BSD License which accompanies this distribution.  The\r
+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
+**/\r
+\r
+#ifndef _EBC_VM_TEST_PROTOCOL_H_\r
+#define _EBC_VM_TEST_PROTOCOL_H_\r
+\r
+//\r
+// Define a protocol for an EBC VM test interface.\r
+//\r
+#define EFI_EBC_VM_TEST_PROTOCOL_GUID \\r
+  { \\r
+    0xAAEACCFD, 0xF27B, 0x4C17, { 0xB6, 0x10, 0x75, 0xCA, 0x1F, 0x2D, 0xFB, 0x52 } \\r
+  }\r
+\r
+//\r
+// Define for forward reference.\r
+//\r
+typedef struct _EFI_EBC_VM_TEST_PROTOCOL EFI_EBC_VM_TEST_PROTOCOL;\r
+\r
+///\r
+/// instruction pointer for the VM\r
+///\r
+typedef UINT8   *VMIP;\r
+\r
+typedef INT64   VM_REGISTER;\r
+typedef UINT32  EXCEPTION_FLAGS;\r
+\r
+typedef struct {\r
+  VM_REGISTER       Gpr[8];                 ///< General purpose registers.\r
+                                            ///< Flags register:\r
+                                            ///<   0  Set to 1 if the result of the last compare was true\r
+                                            ///<   1  Set to 1 if stepping\r
+  UINT64            Flags;                  ///<   2..63 Reserved.\r
+  VMIP              Ip;                     ///< Instruction pointer.\r
+  UINTN             LastException;\r
+  EXCEPTION_FLAGS   ExceptionFlags;         ///< to keep track of exceptions\r
+  UINT32            StopFlags;\r
+  UINT32            CompilerVersion;        ///< via break(6)\r
+  UINTN             HighStackBottom;        ///< bottom of the upper stack\r
+  UINTN             LowStackTop;            ///< top of the lower stack\r
+  UINT64            StackRetAddr;           ///< location of final return address on stack\r
+  UINTN             *StackMagicPtr;         ///< pointer to magic value on stack to detect corruption\r
+  EFI_HANDLE        ImageHandle;            ///< for this EBC driver\r
+  EFI_SYSTEM_TABLE  *SystemTable;           ///< for debugging only\r
+  UINTN             LastAddrConverted;      ///< for debug\r
+  UINTN             LastAddrConvertedValue; ///< for debug\r
+  VOID              *FramePtr;\r
+  VOID              *EntryPoint;            ///< entry point of EBC image\r
+  UINTN             ImageBase;\r
+  VOID              *StackPool;\r
+  VOID              *StackTop;\r
+} VM_CONTEXT;\r
+\r
+/**\r
+  Given a pointer to a new VM context, execute one or more instructions. This\r
+  function is only used for test purposes.\r
+\r
+  @param[in]      This              A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.\r
+  @param[in]      VmPtr             A pointer to a VM context.\r
+  @param[in, out] InstructionCount  A pointer to a UINTN value holding the number of\r
+                                    instructions to execute. If it holds value of 0,\r
+                                    then the instruction to be executed is 1.\r
+\r
+  @retval EFI_UNSUPPORTED       At least one of the opcodes is not supported.\r
+  @retval EFI_SUCCESS           All of the instructions are executed successfully.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EBC_VM_TEST_EXECUTE) (\r
+  IN EFI_EBC_VM_TEST_PROTOCOL         *This,\r
+  IN VM_CONTEXT                       *VmPtr,\r
+  IN OUT UINTN                        *InstructionCount\r
+  );\r
+\r
+/**\r
+  Convert AsmText to the instruction. This function is only used for test purposes.\r
+\r
+  @param[in]  This              A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.\r
+  @param[in]  AsmText           A pointer to EBC ASM text code.\r
+  @param[out] Buffer            Buffer to store the instruction.\r
+  @param[out] BufferLen         Size of buffer that is requried to store data.\r
+\r
+  @retval EFI_UNSUPPORTED       This functionality is unsupported.\r
+  @retval EFI_SUCCESS           Successfully convert AsmText to the instruction. \r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EBC_VM_TEST_ASM) (\r
+  IN EFI_EBC_VM_TEST_PROTOCOL         *This,\r
+  IN CHAR16                           *AsmText,\r
+  IN OUT INT8                         *Buffer,\r
+  IN OUT UINTN                        *BufferLen\r
+  );\r
+\r
+/**\r
+  Dump the executed instruction. This function is only used for test purposes.\r
+\r
+  @param[in]  This              A pointer to the EFI_EBC_VM_TEST_PROTOCOL structure.\r
+  @param[out] AsmText           Contain the disasm text.\r
+  @param[out] Buffer            Buffer to store the instruction.\r
+  @param[out] BufferLen         Size of buffer that is requried to store data.\r
+\r
+  @retval EFI_UNSUPPORTED       This functionality is unsupported.\r
+  @retval EFI_SUCCESS           Successfully dump the executed instruction.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EBC_VM_TEST_DASM) (\r
+  IN EFI_EBC_VM_TEST_PROTOCOL         *This,\r
+  IN OUT CHAR16                       *AsmText,\r
+  IN OUT INT8                         *Buffer,\r
+  IN OUT UINTN                        *Len\r
+  );\r
+\r
+//\r
+// Prototype for the actual EBC test protocol interface\r
+//\r
+struct _EFI_EBC_VM_TEST_PROTOCOL {\r
+  EBC_VM_TEST_EXECUTE Execute;\r
+  EBC_VM_TEST_ASM     Assemble;\r
+  EBC_VM_TEST_DASM    Disassemble;\r
+};\r
+\r
+extern EFI_GUID gEfiEbcVmTestProtocolGuid;\r
+\r
+#endif\r
index 1731ae91ade5b88c8a8bc351e4c037806c67da82..409729273304932af8b10bcf87b9e71e80ef692e 100644 (file)
   gEfiBootScriptExecutorVariableGuid = { 0x3079818c, 0x46d4, 0x4a73, { 0xae, 0xf3, 0xe3, 0xe4, 0x6c, 0xf1, 0xee, 0xdb }}\r
   gEfiBootScriptExecutorContextGuid  = { 0x79cb58c4, 0xac51, 0x442f, { 0xaf, 0xd7, 0x98, 0xe4, 0x7d, 0x2e, 0x99, 0x8 }}\r
 \r
+  ## Include/Guid/UsbKeyBoardLayout.h\r
+  gUsbKeyboardLayoutPackageGuid      = { 0xc0f3b43, 0x44de, 0x4907, { 0xb4, 0x78, 0x22, 0x5f, 0x6f, 0x62, 0x89, 0xdc }}\r
+  gUsbKeyboardLayoutKeyGuid          = { 0x3a4d7a7c, 0x18a, 0x4b42, { 0x81, 0xb3, 0xdc, 0x10, 0xe3, 0xb5, 0x91, 0xbd }}\r
+  \r
+  ## Include/Guid/HiiResourceSampleHii.h\r
+  gHiiResourceSamleFormSetGuid       = { 0x4f4ef7f0, 0xaa29, 0x4ce9, { 0xba, 0x41, 0x64, 0x3e, 0x1, 0x23, 0xa9, 0x9f }}\r
+\r
+  ## Include/Guid/DriverSampleHii.h\r
+  gDriverSampleFormSetGuid           = { 0xA04A27f4, 0xDF00, 0x4D42, { 0xB5, 0x52, 0x39, 0x51, 0x13, 0x02, 0x11, 0x3D }}\r
+  gDriverSampleInventoryGuid         = { 0xb3f56470, 0x6141, 0x4621, { 0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8 }}\r
+  gEfiUserInfoAccessSetupAdminGuid   = { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee }}\r
+  gEfiIfrRefreshIdOpGuid             = { 0xF5E655D9, 0x02A6, 0x46f2, { 0x9E, 0x76, 0xB8, 0xBE, 0x8E, 0x60, 0xAB, 0x22 }}\r
+\r
+  ## Include/Guid/PlatDriOverrideHii.h\r
+  gPlatformOverridesManagerGuid      = { 0x8614567d, 0x35be, 0x4415, { 0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0 }}\r
+\r
+  ## Include/Guid/Ip4ConfigHii.h\r
+  gNicIp4ConfigNvDataGuid            = { 0x9d5b53f, 0xf4b0, 0x4f59, { 0xa0, 0xb1, 0x7b, 0x57, 0xd3, 0x5c, 0xe, 0x5 }}\r
+\r
+  ## Include/Guid/VlanConfigHii.h\r
+  gVlanConfigFormSetGuid             = { 0xd79df6b0, 0xef44, 0x43bd, { 0x97, 0x97, 0x43, 0xe9, 0x3b, 0xcf, 0x5f, 0xa8 }}\r
+\r
+  ## Include/Guid/Ip4IScsiConfigHii.h\r
+  gIp4IScsiConfigGuid                = { 0x6456ed61, 0x3579, 0x41c9, { 0x8a, 0x26, 0x0a, 0x0b, 0xd6, 0x2b, 0x78, 0xfc }}\r
+  gIScsiCHAPAuthInfoGuid             = { 0x786ec0ac, 0x65ae, 0x4d1b, { 0xb1, 0x37, 0xd, 0x11, 0xa, 0x48, 0x37, 0x97 }}\r
+\r
+  ## Include/Guid/ZeroGuid.h\r
+  gZeroGuid                          = { 0x0, 0x0, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}\r
+  \r
+  ## Include/Guid/MtcVendor.h\r
+  gMtcVendorGuid                     = { 0xeb704011, 0x1402, 0x11d3, { 0x8e, 0x77, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }}\r
+\r
 [Ppis]\r
   ## Include/Ppi/AtaController.h\r
   gPeiAtaControllerPpiGuid       = { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0, 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }}\r
   ## Include/Protocol/FormBrowserEx.h\r
   gEfiFormBrowserExProtocolGuid = { 0x1f73b18d, 0x4630, 0x43c1, { 0xa1, 0xde, 0x6f, 0x80, 0x85, 0x5d, 0x7d, 0xa4 } }\r
 \r
+  ## Include/Protocol/EbcVmTest.h\r
+  gEfiEbcVmTestProtocolGuid = { 0xAAEACCFD, 0xF27B, 0x4C17, { 0xB6, 0x10, 0x75, 0xCA, 0x1F, 0x2D, 0xFB, 0x52 } }\r
+\r
+  ## Include/Protocol/EbcSimpleDebugger.h\r
+  gEfiEbcSimpleDebuggerProtocolGuid = { 0x2a72d11e, 0x7376, 0x40f6, { 0x9c, 0x68, 0x23, 0xfa, 0x2f, 0xe3, 0x63, 0xf1 } }\r
 [PcdsFeatureFlag]\r
   ## Indicate whether platform can support update capsule across a system reset\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|FALSE|BOOLEAN|0x0001001d\r
index 7a42d12c857074e757f7fa1b7ac8ca19e562961f..7884d702c3a874f1cc55c2845beefb9dbb6a89c0 100644 (file)
@@ -20,7 +20,7 @@
   DSC_SPECIFICATION              = 0x00010005\r
   OUTPUT_DIRECTORY               = Build/MdeModule\r
   SUPPORTED_ARCHITECTURES        = IA32|IPF|X64|EBC|ARM\r
-  BUILD_TARGETS                  = DEBUG|RELEASE\r
+  BUILD_TARGETS                  = DEBUG|RELEASE|NOOPT\r
   SKUID_IDENTIFIER               = DEFAULT\r
 \r
 [LibraryClasses]\r
index 1484404687e5cc789a29f972d87a6e060a5de817..b6621a93e275033a0c21edc50d306bd52537e80a 100644 (file)
@@ -18,10 +18,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #define DISPLAY_ONLY_MY_ITEM  0x0002\r
 \r
-EFI_GUID   mFormSetGuid = FORMSET_GUID;\r
-EFI_GUID   mInventoryGuid = INVENTORY_GUID;\r
-EFI_GUID   MyEventGroupGuid = EFI_IFR_REFRESH_ID_OP_GUID;\r
-\r
 CHAR16     VariableName[] = L"MyIfrNVData";\r
 CHAR16     MyEfiVar[] = L"MyEfiVar";\r
 EFI_HANDLE                      DriverHandle[2] = {NULL, NULL};\r
@@ -38,10 +34,7 @@ HII_VENDOR_DEVICE_PATH  mHiiVendorDevicePath0 = {
         (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
       }\r
     },\r
-    //\r
-    // {C153B68D-EBFC-488e-B110-662867745B87}\r
-    //\r
-    { 0xc153b68d, 0xebfc, 0x488e, { 0xb1, 0x10, 0x66, 0x28, 0x67, 0x74, 0x5b, 0x87 } }\r
+    DRIVER_SAMPLE_FORMSET_GUID\r
   },\r
   {\r
     END_DEVICE_PATH_TYPE,\r
@@ -63,10 +56,7 @@ HII_VENDOR_DEVICE_PATH  mHiiVendorDevicePath1 = {
         (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
       }\r
     },\r
-    //\r
-    // {06F37F07-0C48-40e9-8436-0A08A0BB76B0}\r
-    //\r
-    { 0x6f37f07, 0xc48, 0x40e9, { 0x84, 0x36, 0xa, 0x8, 0xa0, 0xbb, 0x76, 0xb0 } }\r
+    DRIVER_SAMPLE_INVENTORY_GUID\r
   },\r
   {\r
     END_DEVICE_PATH_TYPE,\r
@@ -293,7 +283,7 @@ ValidatePassword (
   BufferSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);\r
   Status = gRT->GetVariable (\r
                   VariableName,\r
-                  &mFormSetGuid,\r
+                  &gDriverSampleFormSetGuid,\r
                   NULL,\r
                   &BufferSize,\r
                   &PrivateData->Configuration\r
@@ -386,7 +376,7 @@ SetPassword (
   BufferSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);\r
   Status = gRT->GetVariable (\r
                   VariableName,\r
-                  &mFormSetGuid,\r
+                  &gDriverSampleFormSetGuid,\r
                   NULL,\r
                   &BufferSize,\r
                   &PrivateData->Configuration\r
@@ -418,7 +408,7 @@ SetPassword (
   //\r
   Configuration = AllocateZeroPool (sizeof (DRIVER_SAMPLE_CONFIGURATION));\r
   ASSERT (Configuration != NULL);\r
-  if (HiiGetBrowserData (&mFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration)) {\r
+  if (HiiGetBrowserData (&gDriverSampleFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration)) {\r
     //\r
     // Update password's clear text in the screen\r
     //\r
@@ -428,7 +418,7 @@ SetPassword (
     // Update uncommitted data of Browser\r
     //\r
     HiiSetBrowserData (\r
-       &mFormSetGuid,\r
+       &gDriverSampleFormSetGuid,\r
        VariableName,\r
        sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
        (UINT8 *) Configuration,\r
@@ -448,7 +438,7 @@ SetPassword (
   EncodePassword (Password, StrLen (Password) * 2);\r
   Status = gRT->SetVariable(\r
                   VariableName,\r
-                  &mFormSetGuid,\r
+                  &gDriverSampleFormSetGuid,\r
                   EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
                   sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
                   &PrivateData->Configuration\r
@@ -834,7 +824,7 @@ ExtractConfig (
   BufferSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);\r
   Status = gRT->GetVariable (\r
             VariableName,\r
-            &mFormSetGuid,\r
+            &gDriverSampleFormSetGuid,\r
             NULL,\r
             &BufferSize,\r
             &PrivateData->Configuration\r
@@ -852,7 +842,7 @@ ExtractConfig (
     // Allocate and fill a buffer large enough to hold the <ConfigHdr> template\r
     // followed by "&OFFSET=0&WIDTH=WWWWWWWWWWWWWWWW" followed by a Null-terminator\r
     //\r
-    ConfigRequestHdr = HiiConstructConfigHdr (&mFormSetGuid, VariableName, PrivateData->DriverHandle[0]);\r
+    ConfigRequestHdr = HiiConstructConfigHdr (&gDriverSampleFormSetGuid, VariableName, PrivateData->DriverHandle[0]);\r
     Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16);\r
     ConfigRequest = AllocateZeroPool (Size);\r
     ASSERT (ConfigRequest != NULL);\r
@@ -865,14 +855,14 @@ ExtractConfig (
     // Check routing data in <ConfigHdr>.\r
     // Note: if only one Storage is used, then this checking could be skipped.\r
     //\r
-    if (!HiiIsConfigHdrMatch (Request, &mFormSetGuid, NULL)) {\r
+    if (!HiiIsConfigHdrMatch (Request, &gDriverSampleFormSetGuid, NULL)) {\r
       return EFI_NOT_FOUND;\r
     }\r
     //\r
     // Check whether request for EFI Varstore. EFI varstore get data\r
     // through hii database, not support in this path.\r
     //\r
-    if (HiiIsConfigHdrMatch(Request, &mFormSetGuid, MyEfiVar)) {\r
+    if (HiiIsConfigHdrMatch(Request, &gDriverSampleFormSetGuid, MyEfiVar)) {\r
       return EFI_UNSUPPORTED;\r
     }\r
     //\r
@@ -996,7 +986,7 @@ ExtractConfig (
                                   Progress\r
                                   );\r
     if (!EFI_ERROR (Status)) {\r
-      ConfigRequestHdr = HiiConstructConfigHdr (&mFormSetGuid, VariableName, PrivateData->DriverHandle[0]);\r
+      ConfigRequestHdr = HiiConstructConfigHdr (&gDriverSampleFormSetGuid, VariableName, PrivateData->DriverHandle[0]);\r
       AppendAltCfgString(Results, ConfigRequestHdr);\r
     }\r
   }\r
@@ -1074,7 +1064,7 @@ RouteConfig (
   // Check routing data in <ConfigHdr>.\r
   // Note: if only one Storage is used, then this checking could be skipped.\r
   //\r
-  if (!HiiIsConfigHdrMatch (Configuration, &mFormSetGuid, NULL)) {\r
+  if (!HiiIsConfigHdrMatch (Configuration, &gDriverSampleFormSetGuid, NULL)) {\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -1082,7 +1072,7 @@ RouteConfig (
   // Check whether request for EFI Varstore. EFI varstore get data\r
   // through hii database, not support in this path.\r
   //\r
-  if (HiiIsConfigHdrMatch(Configuration, &mFormSetGuid, MyEfiVar)) {\r
+  if (HiiIsConfigHdrMatch(Configuration, &gDriverSampleFormSetGuid, MyEfiVar)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
@@ -1092,7 +1082,7 @@ RouteConfig (
   BufferSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);\r
   Status = gRT->GetVariable (\r
             VariableName,\r
-            &mFormSetGuid,\r
+            &gDriverSampleFormSetGuid,\r
             NULL,\r
             &BufferSize,\r
             &PrivateData->Configuration\r
@@ -1211,7 +1201,7 @@ RouteConfig (
     //\r
     Status = gRT->SetVariable(\r
       VariableName,\r
-      &mFormSetGuid,\r
+      &gDriverSampleFormSetGuid,\r
       EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
       sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
       &PrivateData->Configuration\r
@@ -1240,7 +1230,7 @@ RouteConfig (
   //\r
   Status = gRT->SetVariable(\r
                   VariableName,\r
-                  &mFormSetGuid,\r
+                  &gDriverSampleFormSetGuid,\r
                   EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
                   sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
                   &PrivateData->Configuration\r
@@ -1340,7 +1330,7 @@ DriverCallback (
 \r
         HiiUpdateForm (\r
           PrivateData->HiiHandle[0],  // HII handle\r
-          &mFormSetGuid,              // Formset GUID\r
+          &gDriverSampleFormSetGuid,  // Formset GUID\r
           0x3,                        // Form ID\r
           StartOpCodeHandle,          // Label for where to insert opcodes\r
           NULL                        // Insert data\r
@@ -1498,7 +1488,7 @@ DriverCallback (
       PrivateData->Configuration.DynamicOneof = 2;\r
       Status = gRT->SetVariable(\r
                       VariableName,\r
-                      &mFormSetGuid,\r
+                      &gDriverSampleFormSetGuid,\r
                       EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
                       sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
                       &PrivateData->Configuration\r
@@ -1509,14 +1499,14 @@ DriverCallback (
       //\r
       Configuration = AllocateZeroPool (sizeof (DRIVER_SAMPLE_CONFIGURATION));\r
       ASSERT (Configuration != NULL);\r
-      if (HiiGetBrowserData (&mFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration)) {\r
+      if (HiiGetBrowserData (&gDriverSampleFormSetGuid, VariableName, sizeof (DRIVER_SAMPLE_CONFIGURATION), (UINT8 *) Configuration)) {\r
         Configuration->DynamicOneof = 2;\r
 \r
         //\r
         // Update uncommitted data of Browser\r
         //\r
         HiiSetBrowserData (\r
-          &mFormSetGuid,\r
+          &gDriverSampleFormSetGuid,\r
           VariableName,\r
           sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
           (UINT8 *) Configuration,\r
@@ -1595,7 +1585,7 @@ DriverCallback (
 \r
       HiiUpdateForm (\r
         PrivateData->HiiHandle[0],  // HII handle\r
-        &mFormSetGuid,              // Formset GUID\r
+        &gDriverSampleFormSetGuid,  // Formset GUID\r
         0x1234,                     // Form ID\r
         StartOpCodeHandle,          // Label for where to insert opcodes\r
         EndOpCodeHandle             // Replace data\r
@@ -1644,7 +1634,7 @@ DriverCallback (
 \r
       HiiUpdateForm (\r
         PrivateData->HiiHandle[0],  // HII handle\r
-        &mFormSetGuid,              // Formset GUID\r
+        &gDriverSampleFormSetGuid,              // Formset GUID\r
         FormId,                        // Form ID\r
         StartOpCodeHandle,          // Label for where to insert opcodes\r
         NULL                        // Insert data\r
@@ -1657,7 +1647,7 @@ DriverCallback (
       //\r
       Status = gRT->SetVariable(\r
                       VariableName,\r
-                      &mFormSetGuid,\r
+                      &gDriverSampleFormSetGuid,\r
                       EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
                       sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
                       &PrivateData->Configuration\r
@@ -1669,10 +1659,10 @@ DriverCallback (
         //\r
         EfiData = AllocateZeroPool (sizeof (MY_EFI_VARSTORE_DATA));\r
         ASSERT (EfiData != NULL);\r
-        if (HiiGetBrowserData (&mFormSetGuid, MyEfiVar, sizeof (MY_EFI_VARSTORE_DATA), (UINT8 *) EfiData)) {\r
+        if (HiiGetBrowserData (&gDriverSampleFormSetGuid, MyEfiVar, sizeof (MY_EFI_VARSTORE_DATA), (UINT8 *) EfiData)) {\r
           EfiData->Field8 = 111;\r
           HiiSetBrowserData (\r
-            &mFormSetGuid,\r
+            &gDriverSampleFormSetGuid,\r
             MyEfiVar,\r
             sizeof (MY_EFI_VARSTORE_DATA),\r
             (UINT8 *) EfiData,\r
@@ -1886,7 +1876,7 @@ DriverSampleInit (
   // Publish our HII data\r
   //\r
   HiiHandle[0] = HiiAddPackages (\r
-                   &mFormSetGuid,\r
+                   &gDriverSampleFormSetGuid,\r
                    DriverHandle[0],\r
                    DriverSampleStrings,\r
                    VfrBin,\r
@@ -1912,7 +1902,7 @@ DriverSampleInit (
   PrivateData->DriverHandle[1] = DriverHandle[1];\r
 \r
   HiiHandle[1] = HiiAddPackages (\r
-                   &mInventoryGuid,\r
+                   &gDriverSampleInventoryGuid,\r
                    DriverHandle[1],\r
                    DriverSampleStrings,\r
                    InventoryBin,\r
@@ -1954,18 +1944,18 @@ DriverSampleInit (
   //\r
   // Try to read NV config EFI variable first\r
   //\r
-  ConfigRequestHdr = HiiConstructConfigHdr (&mFormSetGuid, VariableName, DriverHandle[0]);\r
+  ConfigRequestHdr = HiiConstructConfigHdr (&gDriverSampleFormSetGuid, VariableName, DriverHandle[0]);\r
   ASSERT (ConfigRequestHdr != NULL);\r
 \r
   BufferSize = sizeof (DRIVER_SAMPLE_CONFIGURATION);\r
-  Status = gRT->GetVariable (VariableName, &mFormSetGuid, NULL, &BufferSize, Configuration);\r
+  Status = gRT->GetVariable (VariableName, &gDriverSampleFormSetGuid, NULL, &BufferSize, Configuration);\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // Store zero data Buffer Storage to EFI variable\r
     //\r
     Status = gRT->SetVariable(\r
                     VariableName,\r
-                    &mFormSetGuid,\r
+                    &gDriverSampleFormSetGuid,\r
                     EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
                     sizeof (DRIVER_SAMPLE_CONFIGURATION),\r
                     Configuration\r
@@ -1992,18 +1982,18 @@ DriverSampleInit (
   VarStoreConfig = &PrivateData->VarStoreConfig;\r
   ZeroMem (VarStoreConfig, sizeof (MY_EFI_VARSTORE_DATA));\r
 \r
-  ConfigRequestHdr = HiiConstructConfigHdr (&mFormSetGuid, MyEfiVar, DriverHandle[0]);\r
+  ConfigRequestHdr = HiiConstructConfigHdr (&gDriverSampleFormSetGuid, MyEfiVar, DriverHandle[0]);\r
   ASSERT (ConfigRequestHdr != NULL);\r
 \r
   BufferSize = sizeof (MY_EFI_VARSTORE_DATA);\r
-  Status = gRT->GetVariable (MyEfiVar, &mFormSetGuid, NULL, &BufferSize, VarStoreConfig);\r
+  Status = gRT->GetVariable (MyEfiVar, &gDriverSampleFormSetGuid, NULL, &BufferSize, VarStoreConfig);\r
   if (EFI_ERROR (Status)) {\r
     //\r
     // Store zero data to EFI variable Storage.\r
     //\r
     Status = gRT->SetVariable(\r
                     MyEfiVar,\r
-                    &mFormSetGuid,\r
+                    &gDriverSampleFormSetGuid,\r
                     EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
                     sizeof (MY_EFI_VARSTORE_DATA),\r
                     VarStoreConfig\r
@@ -2029,7 +2019,7 @@ DriverSampleInit (
         TPL_NOTIFY,\r
         DriverSampleInternalEmptyFunction,\r
         NULL,\r
-        &MyEventGroupGuid,\r
+        &gEfiIfrRefreshIdOpGuid,\r
         &mEvent\r
         );\r
   ASSERT_EFI_ERROR (Status);\r
index 81a51864142a48a947765707e6707953d53dd7f8..cffd2f351cafebbd7009190f507cec03bbbad364 100644 (file)
@@ -58,6 +58,9 @@
 \r
 [Guids]\r
   gEfiIfrTianoGuid                              ## CONSUMES ## Guid\r
+  gDriverSampleFormSetGuid                      ## PRODUCES ## Guid\r
+  gDriverSampleInventoryGuid                    ## PRODUCES ## Guid\r
+  gEfiIfrRefreshIdOpGuid                        ## SOMETIMES_PRODUCES ## EventGuid\r
 \r
 [Protocols]\r
   gEfiHiiStringProtocolGuid                     ## CONSUMES\r
index 6aa7b460147317ef65e0b13d5f69f7183baf100a..b835dfc3929125e70dbb1abcdbe05399434befb3 100644 (file)
@@ -2,7 +2,7 @@
 //\r
 //    Sample Inventory Data\r
 //\r
-//  Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+//  Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 //  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
 //\r
 //**/\r
 \r
-#define INVENTORY_GUID    { 0xb3f56470, 0x6141, 0x4621, 0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8 }\r
+#include "NVDataStruc.h"\r
 \r
 formset\r
-  guid     = INVENTORY_GUID,\r
+  guid     = DRIVER_SAMPLE_INVENTORY_GUID,\r
   title    = STRING_TOKEN(STR_INV_FORM_SET_TITLE),\r
   help     = STRING_TOKEN(STR_INV_FORM_SET_HELP),\r
   class    = 0x04,\r
index 06953ca6cb4a606634baa489cdaa97abaa337d88..3c317cdb7bb67c097a8e09119f9c60e2cbf737f2 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -27,29 +27,8 @@ Revision History:
 \r
 #include <Guid/HiiPlatformSetupFormset.h>\r
 #include <Guid/HiiFormMapMethodGuid.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 EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \\r
-  { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }\r
-\r
-#define EFI_IFR_REFRESH_ID_OP_GUID \\r
-  { \\r
-    0xF5E655D9, 0x02A6, 0x46f2, {0x9E, 0x76, 0xB8, 0xBE, 0x8E, 0x60, 0xAB, 0x22} \\r
-  }\r
-\r
-#define ZERO_GUID \\r
-  { \\r
-    0x0, 0x0, 0x0, {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0} \\r
-  } \r
+#include <Guid/DriverSampleHii.h>\r
+#include <Guid/ZeroGuid.h>\r
 \r
 #define CONFIGURATION_VARSTORE_ID    0x1234\r
 \r
index d3165111336558fe3fde3baff93cb37079481d5f..78c93d0ebff3a4bb7495f559d4267781d25c415d 100644 (file)
@@ -51,7 +51,7 @@
 #define LABEL_UPDATE_BBS            0x2222\r
 \r
 formset\r
-  guid      = FORMSET_GUID,\r
+  guid      = DRIVER_SAMPLE_FORMSET_GUID,\r
   title     = STRING_TOKEN(STR_FORM_SET_TITLE),\r
   help      = STRING_TOKEN(STR_FORM_SET_TITLE_HELP),\r
   classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,\r
@@ -71,7 +71,7 @@ formset
   varstore DRIVER_SAMPLE_CONFIGURATION,     // This is the data structure type\r
     varid = CONFIGURATION_VARSTORE_ID,      // Optional VarStore ID\r
     name  = MyIfrNVData,                    // Define referenced name in vfr\r
-    guid  = FORMSET_GUID;                   // GUID of this buffer storage\r
+    guid  = DRIVER_SAMPLE_FORMSET_GUID;     // GUID of this buffer storage\r
 \r
   //\r
   // Define a EFI variable Storage (EFI_IFR_VARSTORE_EFI)\r
@@ -79,7 +79,7 @@ formset
   efivarstore MY_EFI_VARSTORE_DATA,\r
     attribute = EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_NON_VOLATILE,  // EFI variable attribures  \r
     name  = MyEfiVar,\r
-    guid  = FORMSET_GUID;\r
+    guid  = DRIVER_SAMPLE_FORMSET_GUID;\r
 \r
   //\r
   // Define a Name/Value Storage (EFI_IFR_VARSTORE_NAME_VALUE)\r
@@ -88,7 +88,7 @@ formset
     name = STRING_TOKEN(STR_NAME_VALUE_VAR_NAME0), // Define Name list of this storage, refer it by MyNameValueVar[0]\r
     name = STRING_TOKEN(STR_NAME_VALUE_VAR_NAME1), // Define Name list of this storage, refer it by MyNameValueVar[1]\r
     name = STRING_TOKEN(STR_NAME_VALUE_VAR_NAME2), // Define Name list of this storage, refer it by MyNameValueVar[2]\r
-    guid = FORMSET_GUID;                           // GUID of this Name/Value storage\r
+    guid = DRIVER_SAMPLE_FORMSET_GUID;             // GUID of this Name/Value storage\r
 \r
   defaultstore MyStandardDefault,\r
     prompt      = STRING_TOKEN(STR_STANDARD_DEFAULT_PROMPT),\r
@@ -492,7 +492,7 @@ formset
       help   = STRING_TOKEN(STR_GOTO_HELP);\r
 \r
     guidop \r
-      guid = FORMSET_GUID,\r
+      guid = DRIVER_SAMPLE_FORMSET_GUID,\r
       datatype = MY_EFI_VARSTORE_DATA,\r
         data.Field8  = 0x21, \r
         data.Field16 = 0x2121,\r
@@ -680,7 +680,7 @@ formset
 \r
   formmap formid = 4,            \r
     maptitle = STRING_TOKEN(STR_SAMPL_MAP_METHOD);  \r
-    mapguid  = FORMSET_GUID;\r
+    mapguid  = DRIVER_SAMPLE_FORMSET_GUID;\r
     maptitle = STRING_TOKEN(STR_STANDARD_MAP_METHOD);  \r
     mapguid  = EFI_HII_STANDARD_FORM_GUID;\r
 \r
index 56f10dad329a7273aeb14e9790ef4258fa17054b..c0e156348cfea740590d32d874bd27bc72e2bcba 100644 (file)
@@ -5,7 +5,7 @@
 #  platform and processor-independent mechanisms for loading and executing EFI\r
 #  device drivers.\r
 #\r
-#  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 #  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
@@ -54,7 +54,7 @@
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r
-\r
+  MdeModulePkg/MdeModulePkg.dec\r
 \r
 [LibraryClasses]\r
   MemoryAllocationLib\r
@@ -68,6 +68,8 @@
 [Protocols]\r
   gEfiDebugSupportProtocolGuid                  ## PRODUCES\r
   gEfiEbcProtocolGuid                           ## PRODUCES\r
+  gEfiEbcVmTestProtocolGuid                     ## SOMETIMES_PRODUCES\r
+  gEfiEbcSimpleDebuggerProtocolGuid             ## SOMETIMES_CONSUMES\r
 \r
 [Depex]\r
   TRUE\r
index 0d987043c1cadc83a5d343507acc6dab402256ea..07e2f0a9f7fcdf0ca7038a2f07bf388068359c53 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Contains code that implements the virtual machine.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -1344,12 +1344,6 @@ CONST VM_TABLE_ENTRY           mVmOpcodeTable[] = {
 //\r
 CONST UINT8                    mJMPLen[] = { 2, 2, 6, 10 };\r
 \r
-//\r
-// Simple Debugger Protocol GUID\r
-//\r
-EFI_GUID mEbcSimpleDebuggerProtocolGuid = EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL_GUID;\r
-\r
-\r
 /**\r
   Given a pointer to a new VM context, execute one or more instructions. This\r
   function is only used for test purposes via the EBC VM test protocol.\r
@@ -1365,6 +1359,7 @@ EFI_GUID mEbcSimpleDebuggerProtocolGuid = EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL_GUID;
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EbcExecuteInstructions (\r
   IN EFI_EBC_VM_TEST_PROTOCOL *This,\r
   IN VM_CONTEXT               *VmPtr,\r
@@ -1452,7 +1447,7 @@ EbcExecute (
   //\r
   DEBUG_CODE_BEGIN ();\r
     Status = gBS->LocateProtocol (\r
-                    &mEbcSimpleDebuggerProtocolGuid,\r
+                    &gEfiEbcSimpleDebuggerProtocolGuid,\r
                     NULL,\r
                     (VOID **) &EbcSimpleDebugger\r
                     );\r
index bd405d3fac2d95a26c46bbefa0f8a79b97b77293..bdc70b1d436843b7f18074a7f28224de2c48a616 100644 (file)
@@ -3,7 +3,7 @@
   be of use to a disassembler for the most part. Also provides function\r
   prototypes for VM functions.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -314,54 +314,6 @@ VmWriteMem64 (
   IN UINT64       Data\r
   );\r
 \r
-//\r
-// Define a protocol for an EBC VM test interface.\r
-//\r
-#define EFI_EBC_VM_TEST_PROTOCOL_GUID \\r
-  { \\r
-    0xAAEACCFDL, 0xF27B, 0x4C17, { 0xB6, 0x10, 0x75, 0xCA, 0x1F, 0x2D, 0xFB, 0x52 } \\r
-  }\r
-\r
-//\r
-// Define for forward reference.\r
-//\r
-typedef struct _EFI_EBC_VM_TEST_PROTOCOL EFI_EBC_VM_TEST_PROTOCOL;\r
-\r
-typedef\r
-EFI_STATUS\r
-(*EBC_VM_TEST_EXECUTE) (\r
-  IN EFI_EBC_VM_TEST_PROTOCOL         * This,\r
-  IN VM_CONTEXT                       * VmPtr,\r
-  IN OUT UINTN                        *InstructionCount\r
-  );\r
-\r
-typedef\r
-EFI_STATUS\r
-(*EBC_VM_TEST_ASM) (\r
-  IN EFI_EBC_VM_TEST_PROTOCOL         * This,\r
-  IN CHAR16                           *AsmText,\r
-  IN OUT INT8                         *Buffer,\r
-  IN OUT UINTN                        *BufferLen\r
-  );\r
-\r
-typedef\r
-EFI_STATUS\r
-(*EBC_VM_TEST_DASM) (\r
-  IN EFI_EBC_VM_TEST_PROTOCOL         * This,\r
-  IN OUT CHAR16                       *AsmText,\r
-  IN OUT INT8                         *Buffer,\r
-  IN OUT UINTN                        *Len\r
-  );\r
-\r
-//\r
-// Prototype for the actual EBC test protocol interface\r
-//\r
-struct _EFI_EBC_VM_TEST_PROTOCOL {\r
-  EBC_VM_TEST_EXECUTE Execute;\r
-  EBC_VM_TEST_ASM     Assemble;\r
-  EBC_VM_TEST_DASM    Disassemble;\r
-};\r
-\r
 /**\r
   Given a pointer to a new VM context, execute one or more instructions. This\r
   function is only used for test purposes via the EBC VM test protocol.\r
@@ -377,6 +329,7 @@ struct _EFI_EBC_VM_TEST_PROTOCOL {
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EbcExecuteInstructions (\r
   IN EFI_EBC_VM_TEST_PROTOCOL *This,\r
   IN VM_CONTEXT               *VmPtr,\r
index e94ed8e6c366614694167fb5c0629814b9f4ba13..609f103995423e3d7dc7331d4e6f5fe38213e58b 100644 (file)
@@ -3,7 +3,7 @@
   Provides auxiliary support routines for the VM. That is, routines\r
   that are not particularly related to VM execution of EBC instructions.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -191,6 +191,7 @@ InitEbcVmTestProtocol (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EbcVmTestUnsupported (\r
   VOID\r
   );\r
@@ -336,7 +337,6 @@ EBC_ICACHE_FLUSH       mEbcICacheFlush;
 //\r
 EFI_PERIODIC_CALLBACK  mDebugPeriodicCallback = NULL;\r
 EFI_EXCEPTION_CALLBACK mDebugExceptionCallback[MAX_EBC_EXCEPTION + 1] = {NULL};\r
-EFI_GUID               mEfiEbcVmTestProtocolGuid = EFI_EBC_VM_TEST_PROTOCOL_GUID;\r
 \r
 VOID                   *mStackBuffer[MAX_STACK_NUM];\r
 EFI_HANDLE             mStackBufferIndex[MAX_STACK_NUM];\r
@@ -1328,7 +1328,7 @@ InitEbcVmTestProtocol (
   // Publish the protocol\r
   //\r
   Handle  = NULL;\r
-  Status  = gBS->InstallProtocolInterface (&Handle, &mEfiEbcVmTestProtocolGuid, EFI_NATIVE_INTERFACE, EbcVmTestProtocol);\r
+  Status  = gBS->InstallProtocolInterface (&Handle, &gEfiEbcVmTestProtocolGuid, EFI_NATIVE_INTERFACE, EbcVmTestProtocol);\r
   if (EFI_ERROR (Status)) {\r
     FreePool (EbcVmTestProtocol);\r
   }\r
@@ -1343,6 +1343,7 @@ InitEbcVmTestProtocol (
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 EbcVmTestUnsupported (\r
   VOID\r
   )\r
index e9aecf11c5435a0ef1774c39b1f1f6413bc73280..98ba7e66f34629cb02f2d3691161edb2dff4e583 100644 (file)
@@ -2,7 +2,7 @@
   Main routines for the EBC interpreter.  Includes the initialization and\r
   main interpreter routines.\r
 \r
-Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -21,6 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Protocol/DebugSupport.h>\r
 #include <Protocol/Ebc.h>\r
+#include <Protocol/EbcVmTest.h>\r
+#include <Protocol/EbcSimpleDebugger.h>\r
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -29,36 +31,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiBootServicesTableLib.h>\r
 #include <Library/MemoryAllocationLib.h>\r
 \r
-typedef INT64   VM_REGISTER;\r
-typedef UINT8   *VMIP;      // instruction pointer for the VM\r
-typedef UINT32  EXCEPTION_FLAGS;\r
-\r
-typedef struct {\r
-  VM_REGISTER       Gpr[8];                 // General purpose registers.\r
-  UINT64            Flags;                  // Flags register:\r
-                                            //   0  Set to 1 if the result of the last compare was true\r
-                                            //   1  Set to 1 if stepping\r
-                                            //   2..63 Reserved.\r
-  VMIP              Ip;                     // Instruction pointer.\r
-  UINTN             LastException;          //\r
-  EXCEPTION_FLAGS   ExceptionFlags;         // to keep track of exceptions\r
-  UINT32            StopFlags;\r
-  UINT32            CompilerVersion;        // via break(6)\r
-  UINTN             HighStackBottom;        // bottom of the upper stack\r
-  UINTN             LowStackTop;            // top of the lower stack\r
-  UINT64            StackRetAddr;           // location of final return address on stack\r
-  UINTN             *StackMagicPtr;         // pointer to magic value on stack to detect corruption\r
-  EFI_HANDLE        ImageHandle;            // for this EBC driver\r
-  EFI_SYSTEM_TABLE  *SystemTable;           // for debugging only\r
-  UINTN             LastAddrConverted;      // for debug\r
-  UINTN             LastAddrConvertedValue; // for debug\r
-  VOID              *FramePtr;\r
-  VOID              *EntryPoint;            // entry point of EBC image\r
-  UINTN             ImageBase;\r
-  VOID              *StackPool;\r
-  VOID              *StackTop;\r
-} VM_CONTEXT;\r
-\r
 extern VM_CONTEXT                    *mVmPtr;\r
 \r
 //\r
@@ -317,65 +289,6 @@ ReturnEBCStackByHandle(
   IN EFI_HANDLE Handle\r
   );\r
 \r
-\r
-//\r
-// Defines for a simple EBC debugger interface\r
-//\r
-typedef struct _EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL;\r
-\r
-#define EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL_GUID \\r
-  { \\r
-    0x2a72d11e, 0x7376, 0x40f6, { 0x9c, 0x68, 0x23, 0xfa, 0x2f, 0xe3, 0x63, 0xf1 } \\r
-  }\r
-\r
-typedef\r
-EFI_STATUS\r
-(*EBC_DEBUGGER_SIGNAL_EXCEPTION) (\r
-  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
-  IN VM_CONTEXT                                 *VmPtr,\r
-  IN EFI_EXCEPTION_TYPE                         ExceptionType\r
-  );\r
-\r
-typedef\r
-VOID\r
-(*EBC_DEBUGGER_DEBUG) (\r
-  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
-  IN VM_CONTEXT                                 *VmPtr\r
-  );\r
-\r
-typedef\r
-UINT32\r
-(*EBC_DEBUGGER_DASM) (\r
-  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
-  IN VM_CONTEXT                                 *VmPtr,\r
-  IN UINT16                                     *DasmString OPTIONAL,\r
-  IN UINT32                                     DasmStringSize\r
-  );\r
-\r
-//\r
-// This interface allows you to configure the EBC debug support\r
-// driver. For example, turn on or off saving and printing of\r
-// delta VM even if called. Or to even disable the entire interface,\r
-// in which case all functions become no-ops.\r
-//\r
-typedef\r
-EFI_STATUS\r
-(*EBC_DEBUGGER_CONFIGURE) (\r
-  IN EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL           *This,\r
-  IN UINT32                                     ConfigId,\r
-  IN UINTN                                      ConfigValue\r
-  );\r
-\r
-//\r
-// Prototype for the actual EBC debug support protocol interface\r
-//\r
-struct _EFI_EBC_SIMPLE_DEBUGGER_PROTOCOL {\r
-  EBC_DEBUGGER_DEBUG            Debugger;\r
-  EBC_DEBUGGER_SIGNAL_EXCEPTION SignalException;\r
-  EBC_DEBUGGER_DASM             Dasm;\r
-  EBC_DEBUGGER_CONFIGURE        Configure;\r
-};\r
-\r
 typedef struct {\r
   EFI_EBC_PROTOCOL  *This;\r
   VOID              *EntryPoint;\r
index f82842cac1c9dd175c142231e22719f4c5c6ae19..0e16f9850e90d3b6b71c1e64dbe347a6238525f8 100644 (file)
@@ -15,12 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "HiiDatabase.h"\r
 \r
-//\r
-// Global variables\r
-//\r
-EFI_GUID mHiiDatabaseNotifyGuid = HII_DATABASE_NOTIFY_GUID;\r
-\r
-\r
 /**\r
   This function generates a HII_DATABASE_RECORD node and adds into hii database.\r
   This is a internal function.\r
@@ -3419,7 +3413,7 @@ HiiRegisterPackageNotify (
   //\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &Notify->NotifyHandle,\r
-                  &mHiiDatabaseNotifyGuid,\r
+                  &gEfiCallerIdGuid,\r
                   NULL,\r
                   NULL\r
                   );\r
@@ -3477,7 +3471,7 @@ HiiUnregisterPackageNotify (
 \r
   Status = gBS->OpenProtocol (\r
                   NotificationHandle,\r
-                  &mHiiDatabaseNotifyGuid,\r
+                  &gEfiCallerIdGuid,\r
                   NULL,\r
                   NULL,\r
                   NULL,\r
@@ -3498,7 +3492,7 @@ HiiUnregisterPackageNotify (
       RemoveEntryList (&Notify->DatabaseNotifyEntry);\r
       Status = gBS->UninstallMultipleProtocolInterfaces (\r
                       Notify->NotifyHandle,\r
-                      &mHiiDatabaseNotifyGuid,\r
+                      &gEfiCallerIdGuid,\r
                       NULL,\r
                       NULL\r
                       );\r
index 1f6b888ec51a6135d6e816a08b76e996d1255e55..783fc7ecc132e3b9d31172be9960628c12142798 100644 (file)
@@ -42,12 +42,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Library/UefiRuntimeServicesTableLib.h>\r
 #include <Library/PrintLib.h>\r
 \r
-\r
-#define HII_DATABASE_NOTIFY_GUID \\r
-  { \\r
-    0xc1c76, 0xd79e, 0x42fe, {0x86, 0xb, 0x8b, 0xe8, 0x7b, 0x3e, 0x7a, 0x78} \\r
-  }\r
-\r
 #define MAX_STRING_LENGTH                  1024\r
 #define MAX_FONT_NAME_LEN                  256\r
 #define NARROW_BASELINE                    15\r
index 9d28c40ab0d06eceb8815b2a6edcc148a8562539..adce780e09e443a5b62d9bdddf61f0fce0c6b2ce 100644 (file)
@@ -2,7 +2,7 @@
 This is an example of how a driver retrieve HII data using HII Package List\r
 Protocol, and how to publish the HII data.\r
 \r
-Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -14,6 +14,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 **/\r
 \r
 #include <Uefi.h>\r
+#include <Guid/HiiResourceSampleHii.h>\r
 #include <Protocol/HiiPackageList.h>\r
 #include <Library/DevicePathLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
@@ -45,10 +46,7 @@ HII_VENDOR_DEVICE_PATH  mHiiVendorDevicePath = {
         (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
       }\r
     },\r
-    //\r
-    // {D49D2EB0-44D5-4621-9FD6-1A92C9109B99}\r
-    //\r
-    { 0xD49D2EB0, 0x44D5, 0x4621, { 0x9F, 0xD6, 0x1A, 0x92, 0xC9, 0x10, 0x9B, 0x99 } }\r
+    HII_RESOURCE_SAMPLE_FORM_SET_GUID\r
   },\r
   {\r
     END_DEVICE_PATH_TYPE,\r
index 9c7d5a47bf08b9dc3136928914e406c98d799508..3ca20988e85670a43d442696547ac432ddf51898 100644 (file)
@@ -1,6 +1,6 @@
 // *++\r
 //\r
-// Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
+// Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 // 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
 //\r
 // --*/\r
 \r
-#define SAMPLE_GUID    { 0x4f4ef7f0, 0xaa29, 0x4ce9, 0xba, 0x41, 0x64, 0x3e, 0x1, 0x23, 0xa9, 0x9f }\r
-\r
+#include <Guid/HiiResourceSampleHii.h>\r
 \r
 formset\r
-  guid     = SAMPLE_GUID,\r
+  guid     = HII_RESOURCE_SAMPLE_FORM_SET_GUID,\r
   title    = STRING_TOKEN(STR_SAMPLE_FORM_SET_TITLE),\r
   help     = STRING_TOKEN(STR_SAMPLE_FORM_SET_HELP),\r
 \r
index 9df64fe1f96c41e5d3deddf767131f6dad251fcd..ddb0d2ed4991258512d258478f6020efb840b425 100644 (file)
@@ -2,7 +2,7 @@
   Produce the UEFI boot service GetNextMonotonicCount() and runtime service\r
   GetNextHighMonotonicCount().\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -16,6 +16,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Uefi.h>\r
 \r
 #include <Protocol/MonotonicCounter.h>\r
+#include <Guid/MtcVendor.h>\r
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/UefiDriverEntryPoint.h>\r
@@ -39,16 +40,6 @@ UINT64      mEfiMtc;
 //\r
 EFI_EVENT   mEfiMtcEvent;\r
 \r
-//\r
-// Name of the variable for the high part of monotonic counter\r
-//\r
-CHAR16      *mEfiMtcName = (CHAR16 *) L"MTC";\r
-\r
-//\r
-// Vendor GUID of the variable for the high part of monotonic counter\r
-//\r
-EFI_GUID    mEfiMtcGuid = { 0xeb704011, 0x1402, 0x11d3, { 0x8e, 0x77, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } };\r
-\r
 /**\r
   Returns a monotonically increasing count for the platform.\r
 \r
@@ -171,8 +162,8 @@ MonotonicCounterDriverGetNextHighMonotonicCount (
   // Update the NV variable to match the new high part\r
   //\r
   return EfiSetVariable (\r
-           mEfiMtcName,\r
-           &mEfiMtcGuid,\r
+           MTC_VARIABLE_NAME,\r
+           &gMtcVendorGuid,\r
            EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
            sizeof (UINT32),\r
            HighCount\r
@@ -241,8 +232,8 @@ MonotonicCounterDriverInitialize (
   //\r
   BufferSize = sizeof (UINT32);\r
   Status = EfiGetVariable (\r
-             mEfiMtcName,\r
-             &mEfiMtcGuid,\r
+             MTC_VARIABLE_NAME,\r
+             &gMtcVendorGuid,\r
              NULL,\r
              &BufferSize,\r
              &HighCount\r
index 9182e2f69363036305d4dea1fa34f26a71f6f5cf..0a0d9372be8c08fddf065a1b6585e96fe8f6f0ae 100644 (file)
@@ -2,7 +2,7 @@
 # This module produces the UEFI boot service GetNextMonotonicCount()\r
 # and runtime service GetNextHighMonotonicCount().\r
 #\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -34,7 +34,7 @@
 \r
 [Packages]\r
   MdePkg/MdePkg.dec\r
-\r
+  MdeModulePkg/MdeModulePkg.dec\r
 \r
 [LibraryClasses]\r
   UefiRuntimeServicesTableLib\r
@@ -44,6 +44,8 @@
   UefiDriverEntryPoint\r
   BaseLib\r
 \r
+[Guids]\r
+  gMtcVendorGuid\r
 \r
 [Protocols]\r
   gEfiMonotonicCounterArchProtocolGuid          ## PRODUCES\r
index 74a4f646529422475259a705230b23a40163b6af..be5ad88f1553de9df60567ed3180af2d90e470d0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This file is for Challenge-Handshake Authentication Protocol (CHAP) Configuration.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -15,8 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "IScsiImpl.h"\r
 #include "Md5.h"\r
 \r
-EFI_GUID  mIScsiCHAPAuthInfoGuid = ISCSI_CHAP_AUTH_INFO_GUID;\r
-\r
 /**\r
   Initator caculates its own expected hash value.\r
 \r
index 4b407f82ef2e8abf3e79dc7027bd07482289c9bd..59d514fe188bb824b16564086face23320656363 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file of CHAP configuration.\r
 \r
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -15,13 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _ISCSI_CHAP_H_\r
 #define _ISCSI_CHAP_H_\r
 \r
-#define ISCSI_CHAP_AUTH_INFO_GUID \\r
-  { \\r
-    0x786ec0ac, 0x65ae, 0x4d1b, {0xb1, 0x37, 0xd, 0x11, 0xa, 0x48, 0x37, 0x97} \\r
-  }\r
-\r
-extern EFI_GUID mIScsiCHAPAuthInfoGuid;\r
-\r
 #define ISCSI_AUTH_METHOD_CHAP    "CHAP"\r
 \r
 #define ISCSI_KEY_CHAP_ALGORITHM  "CHAP_A"\r
index 5f66f733516004aabac4832b744ec7c43dfab1a4..81d9583bcd5a7f865174f7c3b1c05f22bad3a43e 100644 (file)
@@ -14,7 +14,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "IScsiImpl.h"\r
 \r
-EFI_GUID        mVendorGuid              = ISCSI_CONFIG_GUID;\r
 CHAR16          mVendorStorageName[]     = L"ISCSI_CONFIG_IFR_NVDATA";\r
 BOOLEAN         mIScsiDeviceListUpdated  = FALSE;\r
 UINTN           mNumberOfIScsiDevices    = 0;\r
@@ -35,10 +34,7 @@ HII_VENDOR_DEVICE_PATH  mIScsiHiiVendorDevicePath = {
         (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
       }\r
     },\r
-    //\r
-    // {49D7B73E-143D-4716-977B-C45F1CB038CC}\r
-    //\r
-    { 0x49d7b73e, 0x143d, 0x4716, { 0x97, 0x7b, 0xc4, 0x5f, 0x1c, 0xb0, 0x38, 0xcc } }\r
+    IP4_ISCSI_CONFIG_GUID\r
   },\r
   {\r
     END_DEVICE_PATH_TYPE,\r
@@ -224,7 +220,7 @@ IScsiUpdateDeviceList (
   DataSize = 0;\r
   Status = gRT->GetVariable (\r
                   L"iSCSIDeviceList",\r
-                  &mVendorGuid,\r
+                  &gIp4IScsiConfigGuid,\r
                   NULL,\r
                   &DataSize,\r
                   NULL\r
@@ -234,7 +230,7 @@ IScsiUpdateDeviceList (
 \r
     gRT->GetVariable (\r
           L"iSCSIDeviceList",\r
-          &mVendorGuid,\r
+          &gIp4IScsiConfigGuid,\r
           NULL,\r
           &DataSize,\r
           DeviceList\r
@@ -282,7 +278,7 @@ IScsiUpdateDeviceList (
       CurMacInfo = &DeviceList->MacInfo[Index];\r
       IScsiMacAddrToStr (&CurMacInfo->Mac, CurMacInfo->Len, CurMacInfo->VlanId, MacString);\r
       gRT->SetVariable (MacString, &gEfiIScsiInitiatorNameProtocolGuid, 0, 0, NULL);\r
-      gRT->SetVariable (MacString, &mIScsiCHAPAuthInfoGuid, 0, 0, NULL);\r
+      gRT->SetVariable (MacString, &gIScsiCHAPAuthInfoGuid, 0, 0, NULL);\r
     }\r
 \r
     FreePool (DeviceList);\r
@@ -308,7 +304,7 @@ IScsiUpdateDeviceList (
 \r
   gRT->SetVariable (\r
         L"iSCSIDeviceList",\r
-        &mVendorGuid,\r
+        &gIp4IScsiConfigGuid,\r
         ISCSI_CONFIG_VAR_ATTR,\r
         DeviceListSize,\r
         DeviceList\r
@@ -488,7 +484,7 @@ IScsiFormExtractConfig (
   }\r
 \r
   *Progress = Request;\r
-  if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &mVendorGuid, mVendorStorageName)) {\r
+  if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &gIp4IScsiConfigGuid, mVendorStorageName)) {\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -532,7 +528,7 @@ IScsiFormExtractConfig (
     // Allocate and fill a buffer large enough to hold the <ConfigHdr> template\r
     // followed by "&OFFSET=0&WIDTH=WWWWWWWWWWWWWWWW" followed by a Null-terminator\r
     //\r
-    ConfigRequestHdr = HiiConstructConfigHdr (&mVendorGuid, mVendorStorageName, Private->DriverHandle);\r
+    ConfigRequestHdr = HiiConstructConfigHdr (&gIp4IScsiConfigGuid, mVendorStorageName, Private->DriverHandle);\r
     Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16);\r
     ConfigRequest = AllocateZeroPool (Size);\r
     ASSERT (ConfigRequest != NULL);\r
@@ -618,7 +614,7 @@ IScsiFormRouteConfig (
   // Check routing data in <ConfigHdr>.\r
   // Note: if only one Storage is used, then this checking could be skipped.\r
   //\r
-  if (!HiiIsConfigHdrMatch (Configuration, &mVendorGuid, mVendorStorageName)) {\r
+  if (!HiiIsConfigHdrMatch (Configuration, &gIp4IScsiConfigGuid, mVendorStorageName)) {\r
     *Progress = Configuration;\r
     return EFI_NOT_FOUND;\r
   }\r
@@ -687,7 +683,7 @@ IScsiFormCallback (
     //\r
     IfrNvData = AllocateZeroPool (sizeof (ISCSI_CONFIG_IFR_NVDATA));\r
     ASSERT (IfrNvData != NULL);\r
-    if (!HiiGetBrowserData (&mVendorGuid, mVendorStorageName, sizeof (ISCSI_CONFIG_IFR_NVDATA), (UINT8 *) IfrNvData)) {\r
+    if (!HiiGetBrowserData (&gIp4IScsiConfigGuid, mVendorStorageName, sizeof (ISCSI_CONFIG_IFR_NVDATA), (UINT8 *) IfrNvData)) {\r
       FreePool (IfrNvData);\r
       return EFI_NOT_FOUND;\r
     }\r
@@ -884,7 +880,7 @@ IScsiFormCallback (
       BufferSize = sizeof (Private->Current->AuthConfigData);\r
       gRT->SetVariable (\r
             Private->Current->MacString,\r
-            &mIScsiCHAPAuthInfoGuid,\r
+            &gIScsiCHAPAuthInfoGuid,\r
             ISCSI_CONFIG_VAR_ATTR,\r
             BufferSize,\r
             &Private->Current->AuthConfigData\r
@@ -916,7 +912,7 @@ IScsiFormCallback (
       //\r
       // Pass changed uncommitted data back to Form Browser\r
       //\r
-      HiiSetBrowserData (&mVendorGuid, mVendorStorageName, sizeof (ISCSI_CONFIG_IFR_NVDATA), (UINT8 *) IfrNvData, NULL);\r
+      HiiSetBrowserData (&gIp4IScsiConfigGuid, mVendorStorageName, sizeof (ISCSI_CONFIG_IFR_NVDATA), (UINT8 *) IfrNvData, NULL);\r
     }\r
     \r
     FreePool (IfrNvData);\r
@@ -1027,7 +1023,7 @@ IScsiConfigUpdateForm (
       BufferSize = sizeof (ConfigFormEntry->AuthConfigData);\r
       Status = gRT->GetVariable (\r
                       ConfigFormEntry->MacString,\r
-                      &mIScsiCHAPAuthInfoGuid,\r
+                      &gIScsiCHAPAuthInfoGuid,\r
                       NULL,\r
                       &BufferSize,\r
                       &ConfigFormEntry->AuthConfigData\r
@@ -1102,7 +1098,7 @@ IScsiConfigUpdateForm (
 \r
   HiiUpdateForm (\r
     mCallbackInfo->RegisteredHandle,\r
-    &mVendorGuid,\r
+    &gIp4IScsiConfigGuid,\r
     FORMID_MAIN_FORM,\r
     StartOpCodeHandle, // Label DEVICE_ENTRY_LABEL\r
     EndOpCodeHandle    // LABEL_END\r
@@ -1173,7 +1169,7 @@ IScsiConfigFormInit (
   // Publish our HII data\r
   //\r
   CallbackInfo->RegisteredHandle = HiiAddPackages (\r
-                                     &mVendorGuid,\r
+                                     &gIp4IScsiConfigGuid,\r
                                      CallbackInfo->DriverHandle,\r
                                      IScsiDxeStrings,\r
                                      IScsiConfigDxeBin,\r
index fca8cfd1b2e7b42c32155c336c78dc7c46709a4e..82364a8b4abcfcca4fb7789633009caf0548be57 100644 (file)
@@ -17,7 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define EFI_NETWORK_DEVICE_CLASS  0x04\r
 \r
 formset \r
-  guid     = ISCSI_CONFIG_GUID,\r
+  guid     = IP4_ISCSI_CONFIG_GUID,\r
   title    = STRING_TOKEN(STR_ISCSI_CONFIG_FORM_TITLE),\r
   help     = STRING_TOKEN(STR_ISCSI_CONFIG_FORM_HELP),\r
   class    = EFI_NETWORK_DEVICE_CLASS,\r
@@ -25,7 +25,7 @@ formset
 \r
   varstore ISCSI_CONFIG_IFR_NVDATA,\r
     name = ISCSI_CONFIG_IFR_NVDATA,\r
-    guid = ISCSI_CONFIG_GUID;\r
+    guid = IP4_ISCSI_CONFIG_GUID;\r
   form formid = FORMID_MAIN_FORM,\r
     title  = STRING_TOKEN(STR_ISCSI_MAIN_FORM_TITLE);\r
 \r
index 7c26ff377d1bccbe579514f8b5ef5a55ed00c1da..85ad3d173e2ee1674e4313cd227645793f25a135 100644 (file)
@@ -15,10 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _ISCSI_NVDATASTRUC_H_\r
 #define _ISCSI_NVDATASTRUC_H_\r
 \r
-#define ISCSI_CONFIG_GUID \\r
-  { \\r
-    0x6456ed61, 0x3579, 0x41c9, { 0x8a, 0x26, 0x0a, 0x0b, 0xd6, 0x2b, 0x78, 0xfc } \\r
-  }\r
+#include <Guid/Ip4IScsiConfigHii.h>\r
 \r
 #define VAR_EQ_TEST_NAME    0x100\r
 \r
index 920cc945569c8233fac4361706ddffef1738a259..f668fe3d9c8579ed590fb779344a58c8e4c34907 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The entry point of IScsi driver.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -23,9 +23,6 @@ EFI_DRIVER_BINDING_PROTOCOL gIScsiDriverBinding = {
   NULL\r
 };\r
 \r
-EFI_GUID                    gIScsiPrivateGuid   = ISCSI_PRIVATE_GUID;\r
-\r
-\r
 /**\r
   Tests to see if this driver supports a given controller. If a child device is provided, \r
   it further tests to see if this driver supports creating a handle for the specified child device.\r
@@ -63,7 +60,7 @@ IScsiDriverBindingSupported (
 \r
   Status = gBS->OpenProtocol (\r
                   ControllerHandle,\r
-                  &gIScsiPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   NULL,\r
                   This->DriverBindingHandle,\r
                   ControllerHandle,\r
@@ -179,7 +176,7 @@ IScsiDriverBindingStart (
   //\r
   Status = gBS->InstallProtocolInterface (\r
                   &ControllerHandle,\r
-                  &gIScsiPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   EFI_NATIVE_INTERFACE,\r
                   &Private->IScsiIdentifier\r
                   );\r
@@ -332,7 +329,7 @@ IScsiDriverBindingStop (
 \r
   Status = gBS->OpenProtocol (\r
                   IScsiController,\r
-                  &gIScsiPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   (VOID **)&IScsiIdentifier,\r
                   This->DriverBindingHandle,\r
                   ControllerHandle,\r
@@ -370,7 +367,7 @@ IScsiDriverBindingStop (
   //\r
   gBS->UninstallProtocolInterface (\r
         IScsiController,\r
-        &gIScsiPrivateGuid,\r
+        &gEfiCallerIdGuid,\r
         &Private->IScsiIdentifier\r
         );\r
 \r
index 17a1e49a5731d83b005822b0ef60054c6df4b63b..14f640444f6282605da3472f27e717d29af1e01f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The header file of IScsiDriver.c.\r
 \r
-Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -27,13 +27,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include <Protocol/DriverBinding.h>\r
 #include <Protocol/ScsiPassThruExt.h>\r
 \r
-#define ISCSI_PRIVATE_GUID \\r
-  { 0xfa3cde4c, 0x87c2, 0x427d, {0xae, 0xde, 0x7d, 0xd0, 0x96, 0xc8, 0x8c, 0x58} }\r
-\r
 #define ISCSI_INITIATOR_NAME_VAR_NAME L"I_NAME"\r
 \r
-extern EFI_GUID                           gIScsiPrivateGuid;\r
-\r
 typedef struct _ISCSI_PRIVATE_PROTOCOL {\r
   UINT32  Reserved;\r
 } ISCSI_PRIVATE_PROTOCOL;\r
index b3ea642b521c8c347e9cfc475c855c8f53f2d895..9ad161f2e9d93c06131e928628ea83ef47ffa7de 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Component description file for IScsi module.\r
 #\r
-# Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 # 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
@@ -98,4 +98,6 @@
   gEfiIfrTianoGuid                              ## CONSUMES ## GUID\r
   gEfiAcpiTableGuid                             ## CONSUMES ## GUID\r
   gEfiAcpi10TableGuid                           ## CONSUMES ## GUID\r
-  gEfiAcpi20TableGuid                           ## CONSUMES ## GUID
\ No newline at end of file
+  gEfiAcpi20TableGuid                           ## CONSUMES ## GUID\r
+  gIp4IScsiConfigGuid                           ## PRODUCES ## GUID\r
+  gIScsiCHAPAuthInfoGuid
\ No newline at end of file
index f90fff82f2f3e9841de4e1b30544aa31b0384082..dd4189c02b61253e8cfb857eb05e3f9818cfbc42 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implementation for iSCSI Boot Firmware Table publication.\r
 \r
-Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -150,7 +150,7 @@ IScsiFillInitiatorSection (
   //\r
   // Get the identifier from the handle.\r
   //\r
-  Status = gBS->HandleProtocol (Handle, &gIScsiPrivateGuid, (VOID **) &IScsiIdentifier);\r
+  Status = gBS->HandleProtocol (Handle, &gEfiCallerIdGuid, (VOID **) &IScsiIdentifier);\r
   if (EFI_ERROR (Status)) {\r
     ASSERT (FALSE);\r
     return ;\r
@@ -288,7 +288,7 @@ IScsiFillNICAndTargetSections (
   SectionOffset = &Control->NIC0Offset;\r
 \r
   for (Index = 0; Index < HandleCount; Index++) {\r
-    Status = gBS->HandleProtocol (Handles[Index], &gIScsiPrivateGuid, (VOID **)&IScsiIdentifier);\r
+    Status = gBS->HandleProtocol (Handles[Index], &gEfiCallerIdGuid, (VOID **)&IScsiIdentifier);\r
     if (EFI_ERROR (Status)) {\r
       ASSERT (FALSE);\r
       return ;\r
@@ -484,7 +484,7 @@ IScsiPublishIbft (
   //\r
   Status = gBS->LocateHandleBuffer (\r
                   ByProtocol,\r
-                  &gIScsiPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   NULL,\r
                   &HandleCount,\r
                   &HandleBuffer\r
index f1cd943a561a15b4610dea71797a16ff3517010a..840692b45d6beee40c73cf121cdc22b8493895a4 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Miscellaneous routines for iSCSI driver.\r
 \r
-Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -684,7 +684,7 @@ IScsiGetConfigData (
   BufferSize = sizeof (Session->AuthData.AuthConfig);\r
   Status = gRT->GetVariable (\r
                   MacString,\r
-                  &mIScsiCHAPAuthInfoGuid,\r
+                  &gIScsiCHAPAuthInfoGuid,\r
                   NULL,\r
                   &BufferSize,\r
                   &Session->AuthData.AuthConfig\r
index 530b5668a017b5b1c0ef25d942f8813bb1e1cff2..83133d6187cead826d1a1ba49a4e13e67ff47603 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Component name for module Ip4Config\r
 #\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -67,4 +67,4 @@
 \r
 [Guids]\r
   gEfiNicIp4ConfigVariableGuid                  ## CONSUMES ## Guid\r
-\r
+  gNicIp4ConfigNvDataGuid                       ## PRODUCES ## Guid\r
index d57605e02dc752ba40b7aeb7c985e2f09803b4c3..59e5127b44a7d683b21d462d04a5cffe71f54c45 100644 (file)
@@ -15,9 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "Ip4ConfigNv.h"\r
 #include "NicIp4Variable.h"\r
 \r
-EFI_GUID  mNicIp4ConfigNvDataGuid = EFI_NIC_IP4_CONFIG_NVDATA_GUID;\r
-\r
-\r
 /**\r
   Calculate the prefix length of the IPv4 subnet mask.\r
 \r
@@ -431,7 +428,7 @@ Ip4DeviceExtractConfig (
     }\r
   }\r
 \r
-  if ((Request == NULL) || HiiIsConfigHdrMatch (Request, &mNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
+  if ((Request == NULL) || HiiIsConfigHdrMatch (Request, &gNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
 \r
     IfrFormNvData = AllocateZeroPool (sizeof (IP4_CONFIG_IFR_NVDATA));\r
     if (IfrFormNvData == NULL) {\r
@@ -447,7 +444,7 @@ Ip4DeviceExtractConfig (
       // Allocate and fill a buffer large enough to hold the <ConfigHdr> template\r
       // followed by "&OFFSET=0&WIDTH=WWWWWWWWWWWWWWWW" followed by a Null-terminator\r
       //\r
-      ConfigRequestHdr = HiiConstructConfigHdr (&mNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE, Ip4ConfigInstance->ChildHandle);\r
+      ConfigRequestHdr = HiiConstructConfigHdr (&gNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE, Ip4ConfigInstance->ChildHandle);\r
       Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16);\r
       ConfigRequest = AllocateZeroPool (Size);\r
       ASSERT (ConfigRequest != NULL);\r
@@ -498,7 +495,7 @@ Ip4DeviceExtractConfig (
     FreePool (FormResult);\r
   } else if (HiiIsConfigHdrMatch (Request, &gEfiNicIp4ConfigVariableGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
     *Results = DeviceResult;\r
-  } else if (HiiIsConfigHdrMatch (Request, &mNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
+  } else if (HiiIsConfigHdrMatch (Request, &gNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
     *Results = FormResult;\r
   } else {\r
     return EFI_NOT_FOUND;\r
@@ -582,7 +579,7 @@ Ip4DeviceRouteConfig (
   //\r
   // Check Routing data in <ConfigHdr>.\r
   //\r
-  if (HiiIsConfigHdrMatch (Configuration, &mNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
+  if (HiiIsConfigHdrMatch (Configuration, &gNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE)) {\r
     //\r
     // Convert buffer data to <ConfigResp> by helper function BlockToConfig()\r
     //\r
@@ -703,7 +700,7 @@ Ip4FormCallback (
     //\r
     // Retrive uncommitted data from Browser\r
     //\r
-    if (!HiiGetBrowserData (&mNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE, sizeof (IP4_CONFIG_IFR_NVDATA), (UINT8 *) IfrFormNvData)) {\r
+    if (!HiiGetBrowserData (&gNicIp4ConfigNvDataGuid, EFI_NIC_IP4_CONFIG_VARIABLE, sizeof (IP4_CONFIG_IFR_NVDATA), (UINT8 *) IfrFormNvData)) {\r
       FreePool (IfrFormNvData);\r
       return EFI_NOT_FOUND;\r
     }\r
@@ -841,7 +838,7 @@ Ip4ConfigDeviceInit (
   // Publish our HII data\r
   //\r
   Instance->RegisteredHandle = HiiAddPackages (\r
-                                 &mNicIp4ConfigNvDataGuid,\r
+                                 &gNicIp4ConfigNvDataGuid,\r
                                  Instance->ChildHandle,\r
                                  Ip4ConfigDxeStrings,\r
                                  Ip4ConfigDxeBin,\r
index 5ae6ea8c45a33961342debe1d4c7be81963ee2be..2a0952706a810a3c16413b5ad38e22233a774740 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Routines used to operate the Ip4 configure variable.\r
 \r
-Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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<BR>\r
@@ -15,10 +15,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _NIC_IP4_NV_DATA_H_\r
 #define _NIC_IP4_NV_DATA_H_\r
 \r
-#define EFI_NIC_IP4_CONFIG_NVDATA_GUID \\r
-  { \\r
-    0x9d5b53f, 0xf4b0, 0x4f59, { 0xa0, 0xb1, 0x7b, 0x57, 0xd3, 0x5c, 0xe, 0x5 } \\r
-  }\r
+#include <Guid/Ip4ConfigHii.h>\r
 \r
 #define FORMID_MAIN_FORM    1\r
 #define FORMID_DEVICE_FORM  2\r
index b6eb95d9ea73432c55bacf1fc9307333c3bbfc69..da3fe015c257933e1bcac2bc9e279be35088efed 100644 (file)
@@ -16,7 +16,7 @@
 #include "VlanConfigNvData.h"\r
 \r
 formset\r
-  guid      = VLAN_CONFIG_PRIVATE_GUID,\r
+  guid      = VLAN_CONFIG_FORM_SET_GUID,\r
   title     = STRING_TOKEN(STR_VLAN_FORM_SET_TITLE),\r
   help      = STRING_TOKEN(STR_VLAN_FORM_SET_TITLE_HELP),\r
   classguid = EFI_HII_PLATFORM_SETUP_FORMSET_GUID,\r
@@ -24,7 +24,7 @@ formset
   varstore VLAN_CONFIGURATION,\r
     varid = VLAN_CONFIGURATION_VARSTORE_ID,\r
     name  = VlanNvData,\r
-    guid  = VLAN_CONFIG_PRIVATE_GUID;\r
+    guid  = VLAN_CONFIG_FORM_SET_GUID;\r
 \r
   form formid = VLAN_HEAD_FORM_ID,\r
     title  = STRING_TOKEN(STR_VLAN_FORM_TITLE);\r
index 19db6cea97d9a1ac53f8161e90fcd3986bc71d69..52bb99fa5d82c34847ec0adcbec4b43c189b886b 100644 (file)
@@ -15,8 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "VlanConfigImpl.h"\r
 \r
-EFI_GUID gVlanConfigPrivateGuid = VLAN_CONFIG_PRIVATE_GUID;\r
-\r
 EFI_DRIVER_BINDING_PROTOCOL gVlanConfigDriverBinding = {\r
   VlanConfigDriverBindingSupported,\r
   VlanConfigDriverBindingStart,\r
@@ -136,7 +134,7 @@ VlanConfigDriverBindingStart (
   //\r
   Status = gBS->OpenProtocol (\r
                   ControllerHandle,\r
-                  &gVlanConfigPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   (VOID **) &PrivateData,\r
                   This->DriverBindingHandle,\r
                   ControllerHandle,\r
@@ -203,7 +201,7 @@ VlanConfigDriverBindingStart (
   //\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &ControllerHandle,\r
-                  &gVlanConfigPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   PrivateData,\r
                   NULL\r
                   );\r
@@ -266,7 +264,7 @@ VlanConfigDriverBindingStop (
   //\r
   Status = gBS->OpenProtocol (\r
                   ControllerHandle,\r
-                  &gVlanConfigPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   (VOID **) &PrivateData,\r
                   This->DriverBindingHandle,\r
                   ControllerHandle,\r
@@ -287,7 +285,7 @@ VlanConfigDriverBindingStop (
   //\r
   Status = gBS->UninstallMultipleProtocolInterfaces (\r
                   ControllerHandle,\r
-                  &gVlanConfigPrivateGuid,\r
+                  &gEfiCallerIdGuid,\r
                   PrivateData,\r
                   NULL\r
                   );\r
index 55fccd44d4557986836d4cb95eca547f4a4e4efe..e9f081d8558b2b650491f81aa38681ca43fd801f 100644 (file)
@@ -52,6 +52,7 @@
 \r
 [Guids]\r
   gEfiIfrTianoGuid\r
+  gVlanConfigFormSetGuid\r
 \r
 [Protocols]\r
   gEfiHiiConfigAccessProtocolGuid               ## PRODUCES\r
index 6d544f53214d22f3c1552ad8f42225881efd9e25..ea70d5e28d0e0ba8fd65acf00c7bf942f5a4e4e2 100644 (file)
@@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "VlanConfigImpl.h"\r
 \r
-EFI_GUID                        mVlanFormSetGuid = VLAN_CONFIG_PRIVATE_GUID;\r
 CHAR16                          mVlanStorageName[] = L"VlanNvData";\r
 EFI_HII_CONFIG_ROUTING_PROTOCOL *mHiiConfigRouting = NULL;\r
 \r
@@ -37,7 +36,7 @@ VENDOR_DEVICE_PATH              mHiiVendorDevicePathNode = {
       (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
     }\r
   },\r
-  VLAN_CONFIG_PRIVATE_GUID\r
+  VLAN_CONFIG_FORM_SET_GUID\r
 };\r
 \r
 /**\r
@@ -89,7 +88,7 @@ VlanExtractConfig (
   }\r
 \r
   *Progress = Request;\r
-  if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &mVlanFormSetGuid, mVlanStorageName)) {\r
+  if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &gVlanConfigFormSetGuid, mVlanStorageName)) {\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -119,7 +118,7 @@ VlanExtractConfig (
     // Allocate and fill a buffer large enough to hold the <ConfigHdr> template\r
     // followed by "&OFFSET=0&WIDTH=WWWWWWWWWWWWWWWW" followed by a Null-terminator\r
     //\r
-    ConfigRequestHdr = HiiConstructConfigHdr (&mVlanFormSetGuid, mVlanStorageName, PrivateData->DriverHandle);\r
+    ConfigRequestHdr = HiiConstructConfigHdr (&gVlanConfigFormSetGuid, mVlanStorageName, PrivateData->DriverHandle);\r
     Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16);\r
     ConfigRequest = AllocateZeroPool (Size);\r
     ASSERT (ConfigRequest != NULL);\r
@@ -187,7 +186,7 @@ VlanRouteConfig (
   }\r
 \r
   *Progress = Configuration;\r
-  if (!HiiIsConfigHdrMatch (Configuration, &mVlanFormSetGuid, mVlanStorageName)) {\r
+  if (!HiiIsConfigHdrMatch (Configuration, &gVlanConfigFormSetGuid, mVlanStorageName)) {\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -246,7 +245,7 @@ VlanCallback (
     //\r
     Configuration = AllocateZeroPool (sizeof (VLAN_CONFIGURATION));\r
     ASSERT (Configuration != NULL);\r
-    HiiGetBrowserData (&mVlanFormSetGuid, mVlanStorageName, sizeof (VLAN_CONFIGURATION), (UINT8 *) Configuration);\r
+    HiiGetBrowserData (&gVlanConfigFormSetGuid, mVlanStorageName, sizeof (VLAN_CONFIGURATION), (UINT8 *) Configuration);\r
 \r
     VlanConfig = PrivateData->VlanConfig;\r
 \r
@@ -316,7 +315,7 @@ VlanCallback (
       break;\r
     }\r
 \r
-    HiiSetBrowserData (&mVlanFormSetGuid, mVlanStorageName, sizeof (VLAN_CONFIGURATION), (UINT8 *) Configuration, NULL);\r
+    HiiSetBrowserData (&gVlanConfigFormSetGuid, mVlanStorageName, sizeof (VLAN_CONFIGURATION), (UINT8 *) Configuration, NULL);\r
     FreePool (Configuration);\r
     return EFI_SUCCESS;\r
   }\r
@@ -444,7 +443,7 @@ VlanUpdateForm (
 \r
   HiiUpdateForm (\r
     PrivateData->HiiHandle,     // HII handle\r
-    &mVlanFormSetGuid,          // Formset GUID\r
+    &gVlanConfigFormSetGuid,    // Formset GUID\r
     VLAN_CONFIGURATION_FORM_ID, // Form ID\r
     StartOpCodeHandle,          // Label for where to insert opcodes\r
     EndOpCodeHandle             // Replace data\r
@@ -515,7 +514,7 @@ InstallVlanConfigForm (
   // Publish the HII package list\r
   //\r
   HiiHandle = HiiAddPackages (\r
-                &mVlanFormSetGuid,\r
+                &gVlanConfigFormSetGuid,\r
                 DriverHandle,\r
                 VlanConfigDxeStrings,\r
                 VlanConfigBin,\r
index 61cd535a00f08b7d5ba800061add471f33f8ad8b..7dd2fc605b482462f84a64b0c9b89206068815b8 100644 (file)
@@ -17,12 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define __VLAN_CONFIG_NV_DATA_H__\r
 \r
 #include <Guid/HiiPlatformSetupFormset.h>\r
-\r
-\r
-#define VLAN_CONFIG_PRIVATE_GUID \\r
-  { \\r
-    0xd79df6b0, 0xef44, 0x43bd, {0x97, 0x97, 0x43, 0xe9, 0x3b, 0xcf, 0x5f, 0xa8 } \\r
-  }\r
+#include <Guid/VlanConfigHii.h>\r
 \r
 #define VLAN_CONFIGURATION_VARSTORE_ID  0x0001\r
 #define VLAN_CONFIGURATION_FORM_ID      0x0001\r
index 2a684c99dd0f8da79df72ae53b2c86ed8b8056fd..20bc43c345aefbaad36204673d2b21dde8cd7d36 100644 (file)
@@ -61,7 +61,6 @@ extern UINT8  PlatDriOverrideDxeStrings[];
 //\r
 // module global data\r
 //\r
-EFI_GUID                     mPlatformOverridesManagerGuid = PLAT_OVER_MNGR_GUID;\r
 CHAR16                       mVariableName[] = L"Data";\r
 LIST_ENTRY                   mMappingDataBase = INITIALIZE_LIST_HEAD_VARIABLE (mMappingDataBase);\r
 BOOLEAN                      mEnvironmentVariableRead = FALSE;\r
@@ -92,7 +91,7 @@ HII_VENDOR_DEVICE_PATH  mHiiVendorDevicePath = {
         (UINT8) ((sizeof (VENDOR_DEVICE_PATH)) >> 8)\r
       }\r
     },\r
-    EFI_CALLER_ID_GUID\r
+    PLAT_OVER_MNGR_GUID\r
   },\r
   {\r
     END_DEVICE_PATH_TYPE,\r
@@ -400,7 +399,7 @@ UpdateDeviceSelectPage (
   //\r
   HiiUpdateForm (\r
     Private->RegisteredHandle,\r
-    &mPlatformOverridesManagerGuid,\r
+    &gPlatformOverridesManagerGuid,\r
     FORM_ID_DEVICE,\r
     StartOpCodeHandle, // Label FORM_ID_DEVICE\r
     EndOpCodeHandle    // LABEL_END\r
@@ -531,7 +530,7 @@ UpdateDeviceSelectPage (
   //\r
   HiiUpdateForm (\r
     Private->RegisteredHandle,\r
-    &mPlatformOverridesManagerGuid,\r
+    &gPlatformOverridesManagerGuid,\r
     FORM_ID_DEVICE,\r
     StartOpCodeHandle, // Label FORM_ID_DEVICE\r
     EndOpCodeHandle    // LABEL_END\r
@@ -693,7 +692,7 @@ UpdateBindingDriverSelectPage (
   //\r
   HiiUpdateForm (\r
     Private->RegisteredHandle,\r
-    &mPlatformOverridesManagerGuid,\r
+    &gPlatformOverridesManagerGuid,\r
     FORM_ID_DRIVER,\r
     StartOpCodeHandle,\r
     EndOpCodeHandle\r
@@ -860,7 +859,7 @@ UpdateBindingDriverSelectPage (
   //\r
   HiiUpdateForm (\r
     Private->RegisteredHandle,\r
-    &mPlatformOverridesManagerGuid,\r
+    &gPlatformOverridesManagerGuid,\r
     FORM_ID_DRIVER,\r
     StartOpCodeHandle, // Label FORM_ID_DRIVER\r
     EndOpCodeHandle    // LABEL_END\r
@@ -937,7 +936,7 @@ UpdatePrioritySelectPage (
   //\r
   HiiUpdateForm (\r
     Private->RegisteredHandle,\r
-    &mPlatformOverridesManagerGuid,\r
+    &gPlatformOverridesManagerGuid,\r
     FORM_ID_ORDER,\r
     StartOpCodeHandle,\r
     EndOpCodeHandle\r
@@ -1060,7 +1059,7 @@ UpdatePrioritySelectPage (
   //\r
   HiiUpdateForm (\r
     Private->RegisteredHandle,\r
-    &mPlatformOverridesManagerGuid,\r
+    &gPlatformOverridesManagerGuid,\r
     FORM_ID_ORDER,\r
     StartOpCodeHandle, // Label FORM_ID_ORDER\r
     EndOpCodeHandle    // LABEL_END\r
@@ -1172,7 +1171,7 @@ PlatOverMngrExtractConfig (
   }\r
 \r
   *Progress = Request;\r
-  if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &mPlatformOverridesManagerGuid, mVariableName)) {\r
+  if ((Request != NULL) && !HiiIsConfigHdrMatch (Request, &gPlatformOverridesManagerGuid, mVariableName)) {\r
     return EFI_NOT_FOUND;\r
   }\r
 \r
@@ -1190,7 +1189,7 @@ PlatOverMngrExtractConfig (
     // Allocate and fill a buffer large enough to hold the <ConfigHdr> template\r
     // followed by "&OFFSET=0&WIDTH=WWWWWWWWWWWWWWWW" followed by a Null-terminator\r
     //\r
-    ConfigRequestHdr = HiiConstructConfigHdr (&mPlatformOverridesManagerGuid, mVariableName, Private->DriverHandle);\r
+    ConfigRequestHdr = HiiConstructConfigHdr (&gPlatformOverridesManagerGuid, mVariableName, Private->DriverHandle);\r
     Size = (StrLen (ConfigRequestHdr) + 32 + 1) * sizeof (CHAR16);\r
     ConfigRequest = AllocateZeroPool (Size);\r
     ASSERT (ConfigRequest != NULL);\r
@@ -1263,14 +1262,14 @@ PlatOverMngrRouteConfig (
   }\r
   *Progress = Configuration;\r
 \r
-  if (!HiiIsConfigHdrMatch (Configuration, &mPlatformOverridesManagerGuid, mVariableName)) {\r
+  if (!HiiIsConfigHdrMatch (Configuration, &gPlatformOverridesManagerGuid, mVariableName)) {\r
     return EFI_NOT_FOUND;\r
   }\r
   \r
   *Progress = Configuration + StrLen (Configuration);\r
   Private    = EFI_CALLBACK_INFO_FROM_THIS (This);\r
   FakeNvData = &Private->FakeNvData;\r
-  if (!HiiGetBrowserData (&mPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {\r
+  if (!HiiGetBrowserData (&gPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {\r
     //\r
     // FakeNvData can't be got from SetupBrowser, which doesn't need to be set.\r
     //\r
@@ -1338,7 +1337,7 @@ PlatOverMngrCallback (
   if (Action == EFI_BROWSER_ACTION_CHANGING) {\r
     Private = EFI_CALLBACK_INFO_FROM_THIS (This);\r
     FakeNvData = &Private->FakeNvData;\r
-    if (!HiiGetBrowserData (&mPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {\r
+    if (!HiiGetBrowserData (&gPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData)) {\r
       return EFI_NOT_FOUND;\r
     }\r
 \r
@@ -1401,7 +1400,7 @@ PlatOverMngrCallback (
     //\r
     // Pass changed uncommitted data back to Form Browser\r
     //\r
-    HiiSetBrowserData (&mPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData, NULL);\r
+    HiiSetBrowserData (&gPlatformOverridesManagerGuid, mVariableName, sizeof (PLAT_OVER_MNGR_DATA), (UINT8 *) FakeNvData, NULL);\r
 \r
     return EFI_SUCCESS;\r
   } \r
@@ -1624,7 +1623,7 @@ PlatDriOverrideDxeInit (
   // Publish our HII data\r
   //\r
   mCallbackInfo->RegisteredHandle = HiiAddPackages (\r
-                                     &mPlatformOverridesManagerGuid,\r
+                                     &gPlatformOverridesManagerGuid,\r
                                      mCallbackInfo->DriverHandle,\r
                                      VfrBin,\r
                                      PlatDriOverrideDxeStrings,\r
index 385ef8da40cd980666238e841154d3816ca44f90..1ecdaafaccc5e2bc3f7d4652cd2176bbcb811991 100644 (file)
@@ -3,7 +3,7 @@
   The defintions are required both by Source code and Vfr file.\r
   The PLAT_OVER_MNGR_DATA structure, form guid and Ifr question ID are defined. \r
 \r
-Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -17,10 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef _PLAT_OVER_MNGR_H_\r
 #define _PLAT_OVER_MNGR_H_\r
 \r
-#define PLAT_OVER_MNGR_GUID \\r
-  { \\r
-    0x8614567d, 0x35be, 0x4415, {0x8d, 0x88, 0xbd, 0x7d, 0xc, 0x9c, 0x70, 0xc0} \\r
-  }\r
+#include <Guid/PlatDriOverrideHii.h>\r
 \r
 //\r
 // The max number of the supported driver list.\r
index 8b4c32c8c215f43a8525aba545da2ec93272dd9f..bf333d29dfd9af4e580b72be7336f354ae048651 100644 (file)
@@ -16,7 +16,7 @@
 #  4. It save all the mapping info in NV variables for the following boot, \r
 #     which will be consumed by GetDriver API of the produced the platform override protocol.\r
 #\r
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -78,6 +78,7 @@
   #\r
   # gEfiCallerIdGuid                            ## Private  ## Variable:L"PlatDriOver"\r
   gEfiIfrTianoGuid                              ## CONSUMES ## Guid\r
+  gPlatformOverridesManagerGuid                 ## PRODUCES ## Guid\r
 \r
 [Protocols]\r
   gEfiComponentName2ProtocolGuid                ## SOMETIMES_CONSUMED (Get Driver Name if ComponentName2Protocol exists)\r