]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/WebServer/WebServer.h
Update the license dates
[mirror_edk2.git] / AppPkg / Applications / Sockets / WebServer / WebServer.h
index 48839f345613ecacc227f2dbc225b71c0b61e923..16c30c8d6d89890c13df1aeec9993b755bf40528 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Definitions for the web server.\r
 \r
-  Copyright (c) 2011, Intel Corporation\r
+  Copyright (c) 2011-2012, Intel Corporation\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -22,6 +22,7 @@
 \r
 #include <Library/BaseMemoryLib.h>\r
 #include <Library/DebugLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
 #include <Library/PcdLib.h>\r
 #include <Library/UefiApplicationEntryPoint.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 //  Pages\r
 //------------------------------------------------------------------------------\r
 \r
+#define PAGE_ACPI_APIC                  L"/APIC"\r
+#define PAGE_ACPI_BGRT                  L"/BGRT"\r
 #define PAGE_ACPI_DSDT                  L"/DSDT"\r
 #define PAGE_ACPI_FADT                  L"/FADT"\r
+#define PAGE_ACPI_HPET                  L"/HPET"\r
+#define PAGE_ACPI_MCFG                  L"/MCFG"\r
 #define PAGE_ACPI_RSDP_10B              L"/RSDP1.0b"\r
 #define PAGE_ACPI_RSDP_30               L"/RSDP3.0"\r
 #define PAGE_ACPI_RSDT                  L"/RSDT"\r
+#define PAGE_ACPI_SSDT                  L"/SSDT"\r
+#define PAGE_ACPI_TCPA                  L"/TCPA"\r
+#define PAGE_ACPI_UEFI                  L"/UEFI"\r
 #define PAGE_BOOT_SERVICES_TABLE        L"/BootServicesTable"\r
 #define PAGE_CONFIGURATION_TABLE        L"/ConfigurationTable"\r
 #define PAGE_DXE_SERVICES_TABLE         L"/DxeServicesTable"\r
 //  Signatures\r
 //------------------------------------------------------------------------------\r
 \r
+#define APIC_SIGNATURE        0x43495041\r
+#define BGRT_SIGNATURE        0x54524742\r
 #define DSDT_SIGNATURE        0x54445344\r
 #define FADT_SIGNATURE        0x50434146\r
+#define HPET_SIGNATURE        0x54455048\r
+#define MCFG_SIGNATURE        0x4746434d\r
+#define SSDT_SIGNATURE        0x54445353\r
+#define TCPA_SIGNATURE        0x41504354\r
+#define UEFI_SIGNATURE        0x49464555\r
 \r
 //------------------------------------------------------------------------------\r
 //  Macros\r
@@ -227,6 +242,40 @@ extern CONST UINTN mPageCount;      ///<  Number of pages
 // Web Pages\r
 //------------------------------------------------------------------------------\r
 \r
+/**\r
+  Respond with the APIC 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
+AcpiApicPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
+/**\r
+  Respond with the BGRT 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
+AcpiBgrtPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
 /**\r
   Respond with the ACPI DSDT table\r
 \r
@@ -261,6 +310,40 @@ AcpiFadtPage (
   OUT BOOLEAN * pbDone\r
   );\r
 \r
+/**\r
+  Respond with the HPET 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
+AcpiHpetPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
+/**\r
+  Respond with the MCFG 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
+AcpiMcfgPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
 /**\r
   Respond with the ACPI RSDP 1.0b table\r
 \r
@@ -312,6 +395,57 @@ AcpiRsdtPage (
   OUT BOOLEAN * pbDone\r
   );\r
 \r
+/**\r
+  Respond with the SSDT 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
+AcpiSsdtPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
+/**\r
+  Respond with the TCPA 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
+AcpiTcpaPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
+/**\r
+  Respond with the UEFI 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
+AcpiUefiPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
 /**\r
   Respond with the boot services table\r
 \r
@@ -465,6 +599,40 @@ IndexPage (
   OUT BOOLEAN * pbDone\r
   );\r
 \r
+/**\r
+  Page to display the memory map\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
+MemoryMapPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
+/**\r
+  Display the memory type registers\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
+MemoryTypeRegistersPage (\r
+  IN int SocketFD,\r
+  IN WSDT_PORT * pPort,\r
+  OUT BOOLEAN * pbDone\r
+  );\r
+\r
 /**\r
   Respond with the Ports page\r
 \r