1 /**
2   @file
3   List of pages to display
4 
5   Copyright (c) 2011-2012, Intel Corporation
6   All rights reserved. This program and the accompanying materials
7   are licensed and made available under the terms and conditions of the BSD License
8   which accompanies this distribution.  The full text of the license may be found at
9   http://opensource.org/licenses/bsd-license.php
10 
11   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 
14 **/
15 
16 #include <WebServer.h>
17 
18 
19 /**
20   List of pages in the system
21 **/
22 CONST DT_PAGE mPageList[] = {
23 
24   //
25   //  The index page must be first
26   //
27   { L"/", IndexPage, L"Index of pages" },   ///<  List the pages
28 
29   //
30   //  All other pages follow in alphabetical order
31   //
32   { PAGE_BOOT_SERVICES_TABLE, BootServicesTablePage, L"Boot Services Table" },          ///<  Format boot services table
33   { PAGE_CONFIGURATION_TABLE, ConfigurationTablePage, L"Configuration Table" },         ///<  Format configuration table
34   { L"/DhcpOptions", DhcpOptionsPage, L"DHCP Options" },                                ///<  Display the DHCP options
35   { PAGE_ACPI_APIC, AcpiApicPage, L"APIC" },            ///<  Format APIC
36   { PAGE_ACPI_BGRT, AcpiBgrtPage, L"BGRT" },            ///<  Format BGRT
37   { PAGE_ACPI_DSDT, AcpiDsdtPage, L"DSDT - Differentiated System Description Table" },  ///<  Format DSDT
38   { PAGE_DXE_SERVICES_TABLE, DxeServicesTablePage, L"DXE Services Table" },             ///<  Format DXE services table
39   { L"/Exit", ExitPage, L"Exit the web server" },       ///<  Exit the web server application
40   { PAGE_ACPI_FADT, AcpiFadtPage, L"FADT - Fixed ACPI Description Table" },             ///<  Format FADT
41   { L"/Firmware", FirmwarePage, L"Firmware" },          ///<  Firmware status
42   { L"/Handles", HandlePage, L"Display handles and associated protocol GUIDs" },        ///<  Handle database page
43   { L"/Hello", HelloPage, L"Hello World" },             ///<  Hello world page
44   { PAGE_ACPI_HPET, AcpiHpetPage, L"HPET" },            ///<  Format HPET
45   { PAGE_ACPI_MCFG, AcpiMcfgPage, L"MCFG" },            ///<  Format MCFG
46   { L"/MemoryMap", MemoryMapPage, L"Memory Map" },      ///<  Memory list
47 #if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)
48   { L"/MTRRs", MemoryTypeRegistersPage, L"Memory Type Range Registers" }, ///<  Memory type range register table
49 #endif  //  Intel
50   { L"/Ports", PortsPage, L"Display web-server ports" },///<  Web-server ports page
51   { L"/Reboot", RebootPage, L"Reboot the sytem" },      ///<  Reboot page
52   { PAGE_ACPI_RSDP_10B, AcpiRsdp10Page, L"RSDP 1.0b - ACPI Root System Description Pointer" },  ///<  Format RSDP 1.0b table
53   { PAGE_ACPI_RSDP_30, AcpiRsdp30Page, L"RSDP 3.0 - ACPI Root System Description Pointer" },    ///<  Format RSDP 3.0 table
54   { PAGE_ACPI_RSDT, AcpiRsdtPage, L"RSDT - ACPI Root System Description Table" },       ///<  Format RSDT
55   { PAGE_RUNTIME_SERVICES_TABLE, RuntimeSservicesTablePage, L"Runtime Services Table" },///<  Format runtime services table
56   { PAGE_ACPI_SSDT, AcpiSsdtPage, L"SSDT" },            ///<  Format SSDT
57   { L"/SystemTable", SystemTablePage, L"System Table" },///<  Format system table
58   { PAGE_ACPI_TCPA, AcpiTcpaPage, L"TCPA" },            ///<  Format TCPA
59   { PAGE_ACPI_UEFI, AcpiUefiPage, L"UEFI" }             ///<  Format UEFI
60 };
61 
62 CONST UINTN mPageCount = DIM ( mPageList );
63