]> git.proxmox.com Git - mirror_edk2.git/commitdiff
AppPkg/Applications/Sockets: Address GCC and Linux compilation problems.
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 27 Mar 2012 00:47:35 +0000 (00:47 +0000)
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 27 Mar 2012 00:47:35 +0000 (00:47 +0000)
  1) Fix copyright and license notices.
  2) Replace '\' in include paths with '/'.
  3) Fix case mismatch between include paths and actual files and directories.

Signed-off-by: darylm503
Reviewed-by: geekboy15a
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13142 6f19259b-4bc3-4df7-8a09-765794883524

AppPkg/Applications/Sockets/GetHostByAddr/GetHostByAddr.c
AppPkg/Applications/Sockets/WebServer/DhcpOptions.c
AppPkg/Applications/Sockets/WebServer/DxeServicesTable.c

index 2387a2c845ede04cf526aecab08532f8aa189b8a..c096f43ba1064b6aabb19056af6c16abdedcdba0 100644 (file)
@@ -1,17 +1,15 @@
 /** @file\r
   Translate the port number into a service name\r
 \r
-  Copyright (c) 2011-2012, Intel Corporation\r
-  All rights reserved. This program and the accompanying materials\r
+  Copyright (c) 2011 - 2012, 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
   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
 #include <errno.h>\r
 #include <netdb.h>\r
 #include <stdio.h>\r
@@ -19,8 +17,8 @@
 #include <Uefi.h>\r
 #include <unistd.h>\r
 \r
-#include <arpa\nameser.h>\r
-#include <arpa\nameser_compat.h>\r
+#include <arpa/nameser.h>\r
+#include <arpa/nameser_compat.h>\r
 \r
 #include <Library/DebugLib.h>\r
 #include <Library/UefiLib.h>\r
@@ -30,8 +28,8 @@
 /**\r
   Translate the IP address into a host name\r
 \r
-  @param [in] Argc  The number of arguments\r
-  @param [in] Argv  The argument value array\r
+  @param[in] Argc   The number of arguments\r
+  @param[in] Argv   The argument value array\r
 \r
   @retval  0        The application exited normally.\r
   @retval  Other    An error occurred.\r
index e3e77f354469510ede0d4c1c0391e8763a0bfbb7..8eeff45faf3be71e799b73716362df9b9b74e30b 100644 (file)
-/**
-  @file
-  Display the DHCP options
-
-  Copyright (c) 2011-2012, Intel Corporation
-  All rights reserved. This program and the accompanying materials
-  are licensed and made available under the terms and conditions of the BSD License
-  which accompanies this distribution.  The full text of the license may be found at
-  http://opensource.org/licenses/bsd-license.php
-
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include <WebServer.h>
-#include <Guid/DxeServices.h>
-#include <pi/PiDxeCis.h>
-
-#include <protocol/Dhcp4.h>
-#include <protocol/ServiceBinding.h>
-
-/**
-  Respond with the DHCP options
-
-  @param [in] SocketFD      The socket's file descriptor to add to the list.
-  @param [in] pPort         The WSDT_PORT structure address
-  @param [out] pbDone       Address to receive the request completion status
-
-  @retval EFI_SUCCESS       The request was successfully processed
-
-**/
-EFI_STATUS
-DhcpOptionsPage (
-  IN int SocketFD,
-  IN WSDT_PORT * pPort,
-  OUT BOOLEAN * pbDone
-  )
-{
-//  EFI_HANDLE Dhcp4Handle;
-  EFI_DHCP4_MODE_DATA Dhcp4Mode;
-  UINTN HandleCount;
-  EFI_DHCP4_PROTOCOL * pDhcp4;
-  EFI_DHCP4_PACKET * pDhcp4Packet;
-  EFI_HANDLE * pEnd;
-  EFI_HANDLE * pHandle;
-//  EFI_SERVICE_BINDING_PROTOCOL * pService;
-  EFI_STATUS Status;
-
-  DBG_ENTER ( );
-  
-  //
-  //  Send the DHCP options
-  //
-  for ( ; ; ) {
-    //
-    //  Send the page header
-    //
-    Status = HttpPageHeader ( SocketFD, pPort, L"DHCP Options" );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    
-    //
-    //  Build the header
-    //
-    Status = HttpSendAnsiString ( SocketFD,
-                                  pPort,
-                                  "<h1>" );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = HttpSendUnicodeString ( SocketFD,
-                                     pPort,
-                                     L"DHCP Options" );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = HttpSendAnsiString ( SocketFD,
-                                  pPort,
-                                  "</h1>\r\n" );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-
-    //
-    //  Attempt to locate DHCP clients
-    //
-    Status = gBS->LocateHandleBuffer ( ByProtocol,
-//                                       &gEfiDhcp4ServiceBindingProtocolGuid,
-                                       &gEfiDhcp4ProtocolGuid,
-                                       NULL,
-                                       &HandleCount,
-                                       &pHandle );
-    if ( EFI_ERROR ( Status )) {
-      Status = HttpSendAnsiString ( SocketFD,
-                                    pPort,
-                                    "DHCP not in use" );
-      if ( EFI_ERROR ( Status )) {
-        break;
-      }
-    }
-    else {
-      //
-      //  Walk the list of handles
-      //
-      pEnd = &pHandle [ HandleCount ];
-      while ( pEnd > pHandle ) {
-/*
-        //
-        //  Get the DHCP service binding
-        //
-        Status = gBS->OpenProtocol ( *pHandle,
-                                      &gEfiDhcp4ServiceBindingProtocolGuid,
-                                      &pService,
-                                      NULL,
-                                      gImageHandle,
-                                      EFI_OPEN_PROTOCOL_GET_PROTOCOL );
-        if ( EFI_ERROR ( Status )) {
-          Status = HttpSendAnsiString ( SocketFD,
-                                        pPort,
-                                        "Failed to open gEfiDhcp4ServiceBindingProtocolGuid" );
-          break;
-        }
-
-        //
-        //  Get the DHCP handle
-        //
-        Status = pService->CreateChild ( pService,
-                                         &Dhcp4Handle );
-        if ( EFI_ERROR ( Status )) {
-          Status = HttpSendAnsiString ( SocketFD,
-                                        pPort,
-                                        "Failed to create DHCP4 child" );
-        }
-        else {
-*/
-          //
-          //  Get the DHCP protocol
-          //
-          Status = gBS->OpenProtocol ( *pHandle,
-//                                       Dhcp4Handle,
-                                       &gEfiDhcp4ProtocolGuid,
-                                       (VOID **)&pDhcp4,
-                                       NULL,
-                                       gImageHandle,
-                                       EFI_OPEN_PROTOCOL_GET_PROTOCOL );
-          if ( EFI_ERROR ( Status )) {
-            Status = HttpSendAnsiString ( SocketFD,
-                                          pPort,
-                                          "Failed to open gEfiDhcp4ProtocolGuid" );
-          }
-          else {
-            //
-            //  Get the DHCP packet
-            //
-            Status = pDhcp4->GetModeData ( pDhcp4,
-                                           &Dhcp4Mode );
-            if ( EFI_ERROR ( Status )) {
-              Status = HttpSendAnsiString ( SocketFD,
-                                            pPort,
-                                            "Failed to get DHCP4 mode" );
-            }
-            else {
-              //
-              //  Get the last packet
-              //
-              pDhcp4Packet = Dhcp4Mode.ReplyPacket;
-              if ( NULL == pDhcp4Packet ) {
-                Status = HttpSendAnsiString ( SocketFD,
-                                              pPort,
-                                              "No DHCP reply received!<br/>DHCP Mode:<br/>" );
-                if ( EFI_ERROR ( Status )) {
-                  break;
-                }
-
-                //
-                //  Display the DHCP mode data
-                //
-                Status = HttpSendDump ( SocketFD,
-                                        pPort,
-                                        sizeof ( Dhcp4Mode ),
-                                        (UINT8 *)&Dhcp4Mode );
-              }
-              else {
-                //
-                //  Display the DHCP packet
-                //
-                Status = HttpSendDump ( SocketFD,
-                                        pPort,
-                                        pDhcp4Packet->Length,
-                                        (UINT8 *)&pDhcp4Packet->Dhcp4 );
-              }
-            }
-/*
-          }
-
-          //
-          //  Done with the DHCP protocol
-          //
-          pService->DestroyChild ( pService,
-                                   Dhcp4Handle );
-*/
-        }
-
-        //
-        //  Set the next service binding
-        //
-        pHandle += 1;
-      }
-    }
-
-    //
-    //  Send the page trailer
-    //
-    Status = HttpPageTrailer ( SocketFD, pPort, pbDone );
-    break;
-  }
-    
-  //
-  //  Return the operation status
-  //
-  DBG_EXIT_STATUS ( Status );
-  return Status;
-}
+/** @file
+    Display the DHCP options
+
+    Copyright (c) 2011 - 2012, 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
+    http://opensource.org/licenses/bsd-license.\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
+#include <WebServer.h>\r
+#include <Guid/DxeServices.h>\r
+#include <Pi/PiDxeCis.h>\r
+\r
+#include <Protocol/Dhcp4.h>\r
+#include <Protocol/ServiceBinding.h>\r
+\r
+/**\r
+  Respond with the DHCP options\r
+\r
+  @param[in]  SocketFD      The socket's file descriptor to add to the list.\r
+  @param[in]  pPort         The WSDT_PORT structure address\r
+  @param[out] pbDone        Address to receive the request completion status\r
+\r
+  @retval EFI_SUCCESS       The request was successfully processed\r
+\r
+**/\r
+EFI_STATUS\r
+DhcpOptionsPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  )\r
+{\r
+//  EFI_HANDLE Dhcp4Handle;\r
+  EFI_DHCP4_MODE_DATA Dhcp4Mode;\r
+  UINTN HandleCount;\r
+  EFI_DHCP4_PROTOCOL * pDhcp4;\r
+  EFI_DHCP4_PACKET * pDhcp4Packet;\r
+  EFI_HANDLE * pEnd;\r
+  EFI_HANDLE * pHandle;\r
+//  EFI_SERVICE_BINDING_PROTOCOL * pService;\r
+  EFI_STATUS Status;\r
+\r
+  DBG_ENTER ( );\r
+\r
+  //\r
+  //  Send the DHCP options\r
+  //\r
+  for ( ; ; ) {\r
+    //\r
+    //  Send the page header\r
+    //\r
+    Status = HttpPageHeader ( SocketFD, pPort, L"DHCP Options" );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    //  Build the header\r
+    //\r
+    Status = HttpSendAnsiString ( SocketFD,\r
+                                  pPort,\r
+                                  "<h1>" );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = HttpSendUnicodeString ( SocketFD,\r
+                                     pPort,\r
+                                     L"DHCP Options" );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = HttpSendAnsiString ( SocketFD,\r
+                                  pPort,\r
+                                  "</h1>\r\n" );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    //  Attempt to locate DHCP clients\r
+    //\r
+    Status = gBS->LocateHandleBuffer ( ByProtocol,\r
+//                                       &gEfiDhcp4ServiceBindingProtocolGuid,\r
+                                       &gEfiDhcp4ProtocolGuid,\r
+                                       NULL,\r
+                                       &HandleCount,\r
+                                       &pHandle );\r
+    if ( EFI_ERROR ( Status )) {\r
+      Status = HttpSendAnsiString ( SocketFD,\r
+                                    pPort,\r
+                                    "DHCP not in use" );\r
+      if ( EFI_ERROR ( Status )) {\r
+        break;\r
+      }\r
+    }\r
+    else {\r
+      //\r
+      //  Walk the list of handles\r
+      //\r
+      pEnd = &pHandle [ HandleCount ];\r
+      while ( pEnd > pHandle ) {\r
+/*\r
+        //\r
+        //  Get the DHCP service binding\r
+        //\r
+        Status = gBS->OpenProtocol ( *pHandle,\r
+                                      &gEfiDhcp4ServiceBindingProtocolGuid,\r
+                                      &pService,\r
+                                      NULL,\r
+                                      gImageHandle,\r
+                                      EFI_OPEN_PROTOCOL_GET_PROTOCOL );\r
+        if ( EFI_ERROR ( Status )) {\r
+          Status = HttpSendAnsiString ( SocketFD,\r
+                                        pPort,\r
+                                        "Failed to open gEfiDhcp4ServiceBindingProtocolGuid" );\r
+          break;\r
+        }\r
+\r
+        //\r
+        //  Get the DHCP handle\r
+        //\r
+        Status = pService->CreateChild ( pService,\r
+                                         &Dhcp4Handle );\r
+        if ( EFI_ERROR ( Status )) {\r
+          Status = HttpSendAnsiString ( SocketFD,\r
+                                        pPort,\r
+                                        "Failed to create DHCP4 child" );\r
+        }\r
+        else {\r
+*/\r
+          //\r
+          //  Get the DHCP protocol\r
+          //\r
+          Status = gBS->OpenProtocol ( *pHandle,\r
+//                                       Dhcp4Handle,\r
+                                       &gEfiDhcp4ProtocolGuid,\r
+                                       (VOID **)&pDhcp4,\r
+                                       NULL,\r
+                                       gImageHandle,\r
+                                       EFI_OPEN_PROTOCOL_GET_PROTOCOL );\r
+          if ( EFI_ERROR ( Status )) {\r
+            Status = HttpSendAnsiString ( SocketFD,\r
+                                          pPort,\r
+                                          "Failed to open gEfiDhcp4ProtocolGuid" );\r
+          }\r
+          else {\r
+            //\r
+            //  Get the DHCP packet\r
+            //\r
+            Status = pDhcp4->GetModeData ( pDhcp4,\r
+                                           &Dhcp4Mode );\r
+            if ( EFI_ERROR ( Status )) {\r
+              Status = HttpSendAnsiString ( SocketFD,\r
+                                            pPort,\r
+                                            "Failed to get DHCP4 mode" );\r
+            }\r
+            else {\r
+              //\r
+              //  Get the last packet\r
+              //\r
+              pDhcp4Packet = Dhcp4Mode.ReplyPacket;\r
+              if ( NULL == pDhcp4Packet ) {\r
+                Status = HttpSendAnsiString ( SocketFD,\r
+                                              pPort,\r
+                                              "No DHCP reply received!<br/>DHCP Mode:<br/>" );\r
+                if ( EFI_ERROR ( Status )) {\r
+                  break;\r
+                }\r
+\r
+                //\r
+                //  Display the DHCP mode data\r
+                //\r
+                Status = HttpSendDump ( SocketFD,\r
+                                        pPort,\r
+                                        sizeof ( Dhcp4Mode ),\r
+                                        (UINT8 *)&Dhcp4Mode );\r
+              }\r
+              else {\r
+                //\r
+                //  Display the DHCP packet\r
+                //\r
+                Status = HttpSendDump ( SocketFD,\r
+                                        pPort,\r
+                                        pDhcp4Packet->Length,\r
+                                        (UINT8 *)&pDhcp4Packet->Dhcp4 );\r
+              }\r
+            }\r
+/*\r
+          }\r
+\r
+          //\r
+          //  Done with the DHCP protocol\r
+          //\r
+          pService->DestroyChild ( pService,\r
+                                   Dhcp4Handle );\r
+*/\r
+        }\r
+\r
+        //\r
+        //  Set the next service binding\r
+        //\r
+        pHandle += 1;\r
+      }\r
+    }\r
+\r
+    //\r
+    //  Send the page trailer\r
+    //\r
+    Status = HttpPageTrailer ( SocketFD, pPort, pbDone );\r
+    break;\r
+  }\r
+\r
+  //\r
+  //  Return the operation status\r
+  //\r
+  DBG_EXIT_STATUS ( Status );\r
+  return Status;\r
+}\r
index d46ce7096ec3ed82fb61e84b08c13fcbee8f8acc..fe0f597682ae5c2f67dc040e1d61c89e7f0e06b4 100644 (file)
-/**
-  @file
-  Display the DXE services table
+/** @file
+    Display the DXE services table
 
-  Copyright (c) 2011-2012, Intel Corporation
-  All rights reserved. This program and the accompanying materials
-  are licensed and made available under the terms and conditions of the BSD License
-  which accompanies this distribution.  The full text of the license may be found at
-  http://opensource.org/licenses/bsd-license.php
-
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#include <WebServer.h>
-#include <Guid/DxeServices.h>
-#include <pi/PiDxeCis.h>
-
-/**
-  Respond with the DXE services table
-
-  @param [in] SocketFD      The socket's file descriptor to add to the list.
-  @param [in] pPort         The WSDT_PORT structure address
-  @param [out] pbDone       Address to receive the request completion status
-
-  @retval EFI_SUCCESS       The request was successfully processed
-
-**/
-EFI_STATUS
-DxeServicesTablePage (
-  IN int SocketFD,
-  IN WSDT_PORT * pPort,
-  OUT BOOLEAN * pbDone
-  )
-{
-  EFI_DXE_SERVICES * pDS;
-  EFI_STATUS Status;
-
-  DBG_ENTER ( );
-  
-  //
-  //  Send the DXE services page
-  //
-  for ( ; ; ) {
-    //
-    //  Get the DXE services table
-    //
-    Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &pDS);
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-
-    //
-    //  Send the page and table header
-    //
-    Status = TableHeader ( SocketFD, pPort, L"DXE Services Table", pDS );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-
-    ///
-    /// The table header for the DXE Services Table.
-    /// This header contains the DXE_SERVICES_SIGNATURE and DXE_SERVICES_REVISION values.
-    ///
-    Status = EfiTableHeader ( SocketFD,
-                              pPort,
-                              &pDS->Hdr );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    
-    //
-    // Global Coherency Domain Services
-    //
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "AddMemorySpace",
-                          (VOID *)pDS->AddMemorySpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "AllocateMemorySpace",
-                          (VOID *)pDS->AllocateMemorySpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "FreeMemorySpace",
-                          (VOID *)pDS->FreeMemorySpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "RemoveMemorySpace",
-                          (VOID *)pDS->RemoveMemorySpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "GetMemorySpaceDescriptor",
-                          (VOID *)pDS->GetMemorySpaceDescriptor,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "SetMemorySpaceAttributes",
-                          (VOID *)pDS->SetMemorySpaceAttributes,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "GetMemorySpaceMap",
-                          (VOID *)pDS->GetMemorySpaceMap,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "AddIoSpace",
-                          (VOID *)pDS->AddIoSpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "AllocateIoSpace",
-                          (VOID *)pDS->AllocateIoSpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "FreeIoSpace",
-                          (VOID *)pDS->FreeIoSpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "RemoveIoSpace",
-                          (VOID *)pDS->RemoveIoSpace,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "GetIoSpaceDescriptor",
-                          (VOID *)pDS->GetIoSpaceDescriptor,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "GetIoSpaceMap",
-                          (VOID *)pDS->GetIoSpaceMap,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    
-    //
-    // Dispatcher Services
-    //
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "Dispatch",
-                          (VOID *)pDS->Dispatch,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "Schedule",
-                          (VOID *)pDS->Schedule,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "Trust",
-                          (VOID *)pDS->Trust,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-
-    //
-    // Service to process a single firmware volume found in a capsule
-    //
-    Status = RowPointer ( SocketFD,
-                          pPort,
-                          "ProcessFirmwareVolume",
-                          (VOID *)pDS->ProcessFirmwareVolume,
-                          NULL );
-    if ( EFI_ERROR ( Status )) {
-      break;
-    }
-
-    //
-    //  Build the table trailer
-    //
-    Status = TableTrailer ( SocketFD,
-                            pPort,
-                            pbDone );
-    break;
-  }
-    
-  //
-  //  Return the operation status
-  //
-  DBG_EXIT_STATUS ( Status );
-  return Status;
-}
+    Copyright (c)  2011 - 2012 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
+    http://opensource.org/licenses/bsd-license.\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
+#include <WebServer.h>\r
+#include <Guid/DxeServices.h>\r
+#include <Pi/PiDxeCis.h>\r
+\r
+/**\r
+  Respond with the DXE services table\r
+\r
+  @param[in]  SocketFD      The socket's file descriptor to add to the list.\r
+  @param[in]  pPort         The WSDT_PORT structure address\r
+  @param[out] pbDone        Address to receive the request completion status\r
+\r
+  @retval EFI_SUCCESS       The request was successfully processed\r
+\r
+**/\r
+EFI_STATUS\r
+DxeServicesTablePage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  )\r
+{\r
+  EFI_DXE_SERVICES * pDS;\r
+  EFI_STATUS Status;\r
+\r
+  DBG_ENTER ( );\r
+\r
+  //\r
+  //  Send the DXE services page\r
+  //\r
+  for ( ; ; ) {\r
+    //\r
+    //  Get the DXE services table\r
+    //\r
+    Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **) &pDS);\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    //  Send the page and table header\r
+    //\r
+    Status = TableHeader ( SocketFD, pPort, L"DXE Services Table", pDS );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    ///\r
+    /// The table header for the DXE Services Table.\r
+    /// This header contains the DXE_SERVICES_SIGNATURE and DXE_SERVICES_REVISION values.\r
+    ///\r
+    Status = EfiTableHeader ( SocketFD,\r
+                              pPort,\r
+                              &pDS->Hdr );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    // Global Coherency Domain Services\r
+    //\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "AddMemorySpace",\r
+                          (VOID *)pDS->AddMemorySpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "AllocateMemorySpace",\r
+                          (VOID *)pDS->AllocateMemorySpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "FreeMemorySpace",\r
+                          (VOID *)pDS->FreeMemorySpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "RemoveMemorySpace",\r
+                          (VOID *)pDS->RemoveMemorySpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "GetMemorySpaceDescriptor",\r
+                          (VOID *)pDS->GetMemorySpaceDescriptor,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "SetMemorySpaceAttributes",\r
+                          (VOID *)pDS->SetMemorySpaceAttributes,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "GetMemorySpaceMap",\r
+                          (VOID *)pDS->GetMemorySpaceMap,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "AddIoSpace",\r
+                          (VOID *)pDS->AddIoSpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "AllocateIoSpace",\r
+                          (VOID *)pDS->AllocateIoSpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "FreeIoSpace",\r
+                          (VOID *)pDS->FreeIoSpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "RemoveIoSpace",\r
+                          (VOID *)pDS->RemoveIoSpace,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "GetIoSpaceDescriptor",\r
+                          (VOID *)pDS->GetIoSpaceDescriptor,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "GetIoSpaceMap",\r
+                          (VOID *)pDS->GetIoSpaceMap,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    // Dispatcher Services\r
+    //\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "Dispatch",\r
+                          (VOID *)pDS->Dispatch,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "Schedule",\r
+                          (VOID *)pDS->Schedule,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "Trust",\r
+                          (VOID *)pDS->Trust,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    // Service to process a single firmware volume found in a capsule\r
+    //\r
+    Status = RowPointer ( SocketFD,\r
+                          pPort,\r
+                          "ProcessFirmwareVolume",\r
+                          (VOID *)pDS->ProcessFirmwareVolume,\r
+                          NULL );\r
+    if ( EFI_ERROR ( Status )) {\r
+      break;\r
+    }\r
+\r
+    //\r
+    //  Build the table trailer\r
+    //\r
+    Status = TableTrailer ( SocketFD,\r
+                            pPort,\r
+                            pbDone );\r
+    break;\r
+  }\r
+\r
+  //\r
+  //  Return the operation status\r
+  //\r
+  DBG_EXIT_STATUS ( Status );\r
+  return Status;\r
+}\r