]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Universal/BdsDxe/DeviceMngr/DeviceManager.h
> When GetHealthStatus() returns NULL FormHiiHandle, DeviceManager shouldn't call...
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / DeviceMngr / DeviceManager.h
index fc39b3c90788052c414d72f9f03d449d48c4d32d..72e6fbc790e9f45915b806944878c6baed62604a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   The platform device manager reference implement\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
@@ -17,57 +17,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "Bds.h"\r
 #include "FrontPage.h"\r
+#include "DeviceManagerVfr.h"\r
 #include <Protocol/PciIo.h>\r
 \r
-//\r
-// These are defined as the same with vfr file\r
-//\r
-#define DEVICE_MANAGER_FORMSET_GUID  \\r
-  { \\r
-  0x3ebfa8e6, 0x511d, 0x4b5b, {0xa9, 0x5f, 0xfb, 0x38, 0x26, 0xf, 0x1c, 0x27} \\r
-  }\r
-\r
-#define DRIVER_HEALTH_FORMSET_GUID  \\r
-  { \\r
-  0xf76e0a70, 0xb5ed, 0x4c38, {0xac, 0x9a, 0xe5, 0xf5, 0x4b, 0xf1, 0x6e, 0x34} \\r
-  }\r
-\r
-#define LABEL_DEVICES_LIST                   0x1100\r
-#define LABEL_NETWORK_DEVICE_LIST_ID         0x1101\r
-#define LABEL_NETWORK_DEVICE_ID              0x1102\r
-#define LABEL_END                            0xffff\r
-#define LABEL_FORM_ID_OFFSET                 0x0100\r
-\r
-#define LABEL_DRIVER_HEALTH                  0x2000\r
-#define LABEL_DRIVER_HEALTH_END              0x2001\r
-\r
-#define LABEL_DRIVER_HEALTH_REAPIR_ALL       0x3000\r
-#define LABEL_DRIVER_HEALTH_REAPIR_ALL_END   0x3001\r
-\r
-#define LABEL_VBIOS                          0x0040\r
-\r
-#define DEVICE_MANAGER_FORM_ID               0x1000\r
-#define NETWORK_DEVICE_LIST_FORM_ID          0x1001\r
-#define NETWORK_DEVICE_FORM_ID               0x1002\r
-#define DRIVER_HEALTH_FORM_ID                0x1003\r
-#define DEVICE_KEY_OFFSET                    0x4000\r
-#define NETWORK_DEVICE_LIST_KEY_OFFSET       0x2000\r
-#define DEVICE_MANAGER_KEY_VBIOS             0x3000\r
-#define MAX_KEY_SECTION_LEN                  0x1000\r
-\r
-#define DEVICE_MANAGER_KEY_DRIVER_HEALTH     0x1111\r
-#define DRIVER_HEALTH_KEY_OFFSET             0x2000\r
-#define DRIVER_HEALTH_REPAIR_ALL_KEY         0x3000\r
-#define DRIVER_HEALTH_RETURN_KEY             0x4000\r
-\r
-#define QUESTION_NETWORK_DEVICE_ID           0x3FFF\r
-//\r
-// These are the VFR compiler generated data representing our VFR data.\r
-//\r
-extern UINT8  DeviceManagerVfrBin[];\r
-extern UINT8  DriverHealthVfrBin[];\r
-\r
-#define DEVICE_MANAGER_CALLBACK_DATA_SIGNATURE  SIGNATURE_32 ('D', 'M', 'C', 'B')\r
+#define DEVICE_MANAGER_CALLBACK_DATA_SIGNATURE       SIGNATURE_32 ('D', 'M', 'C', 'B')\r
 #define DEVICE_MANAGER_DRIVER_HEALTH_INFO_SIGNATURE  SIGNATURE_32 ('D', 'M', 'D', 'H')\r
 \r
 \r
@@ -346,7 +299,7 @@ PlatformRepairAll (
                             ChildHandle.  This is an optional parameter that may be NULL.\r
   @param FormHiiHandle      The HII handle for an HII form associated with the \r
                             controller specified by ControllerHandle and ChildHandle.\r
-\r
+  @param RebootRequired     Indicate whether a reboot is required to repair the controller.\r
 **/\r
 VOID\r
 ProcessSingleControllerHealth (\r
@@ -355,8 +308,9 @@ ProcessSingleControllerHealth (
   IN  EFI_HANDLE                         ChildHandle,      OPTIONAL\r
   IN  EFI_DRIVER_HEALTH_STATUS           HealthStatus,\r
   IN  EFI_DRIVER_HEALTH_HII_MESSAGE      **MessageList,    OPTIONAL\r
-  IN  EFI_HII_HANDLE                     FormHiiHandle\r
-  );\r
+  IN  EFI_HII_HANDLE                     FormHiiHandle,\r
+  IN OUT BOOLEAN                         *RebootRequired\r
+);\r
 \r
 /**\r
   Repair notification function, simply print the repair progress.\r