/** @file\r
Data source for network testing.\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
-#/** @file\r
+## @file\r
# DataSink Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Data source for network testing.\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
-#/** @file\r
+## @file\r
# DataSource Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Test the getaddrinfo API\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
-#/** @file\r
+## @file\r
# GetAddrInfo Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the port number into a service name\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
-#/** @file\r
+## @file\r
# GetHostByAddr Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the host name into an IP address\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
-#/** @file\r
+## @file\r
# GetHostByDns Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the host name into an IP address\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
-#/** @file\r
+## @file\r
# GetHostByName Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Test the getnameinfo API\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
-#/** @file\r
+## @file\r
# GetNameInfo Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the IPv4 address into a network name\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
-#/** @file\r
+## @file\r
# GetNetByAddr Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the network name into an IP address\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
-#/** @file\r
+## @file\r
# GetNetByName Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the service name into a port number\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
-#/** @file\r
+## @file\r
# GetServByName Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Translate the port number into a service name\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
-#/** @file\r
+## @file\r
# GetServByPort Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Out-of-band receive test application\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
/** @file\r
Windows version of the OOB Receive application\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
/** @file\r
Definitions for the OOB Receive application\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
-#/** @file\r
+## @file\r
# OobRx Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Windows version of the OOB Receive application\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
/** @file\r
Out-of-band transmit test application\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
/** @file\r
Windows version of the OOB Transmit application\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
/** @file\r
Definitions for the OOB Transmit application\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
-#/** @file\r
+## @file\r
# OobTx Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Windows version of the OOB Transmit application\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
/** @file\r
Raw IP4 receive test application\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
/** @file\r
Raw IP4 receive application\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
/** @file\r
Definitions for the raw IP4 receive application\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
-#/** @file\r
+## @file\r
# RawIp4 Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Windows version of the raw IP4 receive application\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
/** @file\r
Raw IP4 transmit test application\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
/** @file\r
Raw IP4 transmit application\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
/** @file\r
Definitions for the raw IP4 transmit application\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
-#/** @file\r
+## @file\r
# RawIp4Tx Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Windows version of the raw IP4 transmit application\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
/** @file\r
Receive a datagram\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
-#/** @file\r
+## @file\r
# Receive Datagram Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Set the host name\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
-#/** @file\r
+## @file\r
# SetHostName Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
/** @file\r
Set the socket options\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
-#/** @file\r
+## @file\r
# SetHostName Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
AppPkg/Applications/Sockets/SetHostName/SetHostName.inf\r
AppPkg/Applications/Sockets/SetSockOpt/SetSockOpt.inf\r
AppPkg/Applications/Sockets/WebServer/WebServer.inf {\r
+ <LibraryClasses>\r
+ CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf\r
+ DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
+ MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf\r
+\r
<PcdsFixedAtBuild>\r
gAppPkgTokenSpaceGuid.WebServer_HttpPort|80\r
}\r
-#/** @file\r
+## @file\r
# TFTP Server Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
-/*++\r
- This file contains an 'Intel UEFI Application' and is\r
- licensed for Intel CPUs and chipsets under the terms of your\r
- license agreement with Intel or your vendor. This file may\r
- be modified by the user, subject to additional terms of the\r
- license agreement\r
---*/\r
-/*++\r
-\r
-Copyright (c) 2011 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
-\r
---*/\r
-\r
-/** @file\r
- Display the runtime services table\r
+/**\r
+ @file\r
+ Display the ACPI tables\r
+\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
+ 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
} ACPI_RSDT;\r
\r
\r
+typedef struct {\r
+ UINT32 Signature; // 0\r
+ UINT32 Length; // 4\r
+} ACPI_UNKNOWN;\r
+\r
#pragma pack()\r
\r
\r
\r
\r
CONST TABLE_SIGNATURE mTableId[] = {\r
+ { APIC_SIGNATURE, "APIC", PAGE_ACPI_APIC },\r
+ { BGRT_SIGNATURE, "BGRT", PAGE_ACPI_BGRT },\r
{ DSDT_SIGNATURE, "DSDT", PAGE_ACPI_DSDT },\r
- { FADT_SIGNATURE, "FADT", PAGE_ACPI_FADT }\r
+ { FADT_SIGNATURE, "FADT", PAGE_ACPI_FADT },\r
+ { HPET_SIGNATURE, "HPET", PAGE_ACPI_HPET },\r
+ { MCFG_SIGNATURE, "MCFG", PAGE_ACPI_MCFG },\r
+ { SSDT_SIGNATURE, "SSDT", PAGE_ACPI_SSDT },\r
+ { TCPA_SIGNATURE, "TCPA", PAGE_ACPI_TCPA },\r
+ { UEFI_SIGNATURE, "UEFI", PAGE_ACPI_UEFI }\r
};\r
\r
\r
}\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
+ CONST ACPI_UNKNOWN * pApic;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the APIC page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the APIC\r
+ //\r
+ pApic = (ACPI_UNKNOWN *)LocateTable ( APIC_SIGNATURE );\r
+ if ( NULL == pApic ) {\r
+ Status = EFI_NOT_FOUND;\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"APIC Table", pApic );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the header\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pApic->Signature ),\r
+ (CHAR8 *)&pApic->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pApic->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pApic->Length - sizeof ( *pApic ) + 1,\r
+ (UINT8 *)( pApic + 1 ));\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
+\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
+ CONST ACPI_UNKNOWN * pBgrt;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the BGRT page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the BGRT\r
+ //\r
+ pBgrt = (ACPI_UNKNOWN *)LocateTable ( BGRT_SIGNATURE );\r
+ if ( NULL == pBgrt ) {\r
+ Status = EFI_NOT_FOUND;\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"BGRT Table", pBgrt );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the header\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pBgrt->Signature ),\r
+ (CHAR8 *)&pBgrt->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pBgrt->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pBgrt->Length - sizeof ( *pBgrt ) + 1,\r
+ (UINT8 *)( pBgrt + 1 ));\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
+\r
+\r
/**\r
Respond with the ACPI DSDT table\r
\r
\r
\r
/**\r
- Respond with the ACPI RSDP 1.0b table\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
\r
**/\r
EFI_STATUS\r
-AcpiRsdp10Page (\r
+AcpiHpetPage (\r
IN int SocketFD,\r
IN WSDT_PORT * pPort,\r
OUT BOOLEAN * pbDone\r
)\r
{\r
- CONST EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER * pRsdp10b;\r
+ CONST ACPI_UNKNOWN * pHpet;\r
EFI_STATUS Status;\r
\r
DBG_ENTER ( );\r
\r
//\r
- // Send the RSDP page\r
+ // Send the HPET page\r
//\r
for ( ; ; ) {\r
//\r
- // Locate the RSDP\r
+ // Locate the HPET\r
//\r
- Status = EfiGetSystemConfigurationTable ( &gEfiAcpi10TableGuid, (VOID **) &pRsdp10b );\r
- if ( EFI_ERROR ( Status )) {\r
+ pHpet = (ACPI_UNKNOWN *)LocateTable ( HPET_SIGNATURE );\r
+ if ( NULL == pHpet ) {\r
+ Status = EFI_NOT_FOUND;\r
break;\r
}\r
\r
//\r
// Send the page and table header\r
//\r
- Status = TableHeader ( SocketFD, pPort, L"RSDP - ACPI 1.0b Root System Description Pointer", pRsdp10b );\r
+ Status = TableHeader ( SocketFD, pPort, L"HPET Table", pHpet );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
\r
//\r
- // Display the RSDP\r
+ // Display the header\r
//\r
Status = RowAnsiArray ( SocketFD,\r
pPort,\r
"Signature",\r
- sizeof ( pRsdp10b->Signature ),\r
- (CHAR8 *)&pRsdp10b->Signature );\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowHexValue ( SocketFD,\r
- pPort,\r
- "Checksum",\r
- pRsdp10b->Checksum,\r
- NULL );\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowAnsiArray ( SocketFD,\r
- pPort,\r
- "OemId",\r
- sizeof ( pRsdp10b->OemId ),\r
- (CONST CHAR8 *)&pRsdp10b->OemId[ 0 ]);\r
+ sizeof ( pHpet->Signature ),\r
+ (CHAR8 *)&pHpet->Signature );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
- Status = RowHexValue ( SocketFD,\r
- pPort,\r
- "Reserved",\r
- pRsdp10b->Reserved,\r
- NULL );\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pHpet->Length );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
- Status = RowPointer ( SocketFD,\r
- pPort,\r
- "RsdtAddress",\r
- (VOID *)(UINTN)pRsdp10b->RsdtAddress,\r
- PAGE_ACPI_RSDT );\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pHpet->Length - sizeof ( *pHpet ) + 1,\r
+ (UINT8 *)( pHpet + 1 ));\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
\r
\r
/**\r
- Respond with the ACPI RSDP 3.0 table\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
\r
**/\r
EFI_STATUS\r
-AcpiRsdp30Page (\r
+AcpiMcfgPage (\r
IN int SocketFD,\r
IN WSDT_PORT * pPort,\r
OUT BOOLEAN * pbDone\r
)\r
{\r
- CONST EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_POINTER * pRsdp30;\r
+ CONST ACPI_UNKNOWN * pMcfg;\r
EFI_STATUS Status;\r
\r
DBG_ENTER ( );\r
\r
//\r
- // Send the RSDP page\r
+ // Send the MCFG page\r
//\r
for ( ; ; ) {\r
//\r
- // Locate the RSDP\r
+ // Locate the MCFG\r
//\r
- Status = EfiGetSystemConfigurationTable ( &gEfiAcpiTableGuid, (VOID **) &pRsdp30 );\r
- if ( EFI_ERROR ( Status )) {\r
+ pMcfg = (ACPI_UNKNOWN *)LocateTable ( MCFG_SIGNATURE );\r
+ if ( NULL == pMcfg ) {\r
+ Status = EFI_NOT_FOUND;\r
break;\r
}\r
\r
//\r
// Send the page and table header\r
//\r
- Status = TableHeader ( SocketFD, pPort, L"RSDP - ACPI 3.0 Root System Description Pointer", pRsdp30 );\r
+ Status = TableHeader ( SocketFD, pPort, L"MCFG Table", pMcfg );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
\r
//\r
- // Display the RSDP\r
+ // Display the header\r
//\r
Status = RowAnsiArray ( SocketFD,\r
pPort,\r
"Signature",\r
- sizeof ( pRsdp30->Signature ),\r
- (CHAR8 *)&pRsdp30->Signature );\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowHexValue ( SocketFD,\r
- pPort,\r
- "Checksum",\r
- pRsdp30->Checksum,\r
- NULL );\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowAnsiArray ( SocketFD,\r
- pPort,\r
- "OemId",\r
- sizeof ( pRsdp30->OemId ),\r
- (CONST CHAR8 *)&pRsdp30->OemId[ 0 ]);\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowHexValue ( SocketFD,\r
- pPort,\r
- "Revision",\r
- pRsdp30->Revision,\r
- NULL );\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowPointer ( SocketFD,\r
- pPort,\r
- "RsdtAddress",\r
- (VOID *)(UINTN)pRsdp30->RsdtAddress,\r
- PAGE_ACPI_RSDT );\r
+ sizeof ( pMcfg->Signature ),\r
+ (CHAR8 *)&pMcfg->Signature );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
Status = RowDecimalValue ( SocketFD,\r
pPort,\r
"Length",\r
- pRsdp30->Length );\r
- if ( EFI_ERROR ( Status )) {\r
- break;\r
- }\r
- Status = RowPointer ( SocketFD,\r
- pPort,\r
- "XsdtAddress",\r
- (VOID *)(UINTN)pRsdp30->XsdtAddress,\r
- NULL );\r
+ pMcfg->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pMcfg->Length - sizeof ( *pMcfg ) + 1,\r
+ (UINT8 *)( pMcfg + 1 ));\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
+\r
+\r
+/**\r
+ Respond with the ACPI RSDP 1.0b 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
+AcpiRsdp10Page (\r
+ IN int SocketFD,\r
+ IN WSDT_PORT * pPort,\r
+ OUT BOOLEAN * pbDone\r
+ )\r
+{\r
+ CONST EFI_ACPI_1_0_ROOT_SYSTEM_DESCRIPTION_POINTER * pRsdp10b;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the RSDP page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the RSDP\r
+ //\r
+ Status = EfiGetSystemConfigurationTable ( &gEfiAcpi10TableGuid, (VOID **) &pRsdp10b );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"RSDP - ACPI 1.0b Root System Description Pointer", pRsdp10b );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the RSDP\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pRsdp10b->Signature ),\r
+ (CHAR8 *)&pRsdp10b->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowHexValue ( SocketFD,\r
+ pPort,\r
+ "Checksum",\r
+ pRsdp10b->Checksum,\r
+ NULL );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "OemId",\r
+ sizeof ( pRsdp10b->OemId ),\r
+ (CONST CHAR8 *)&pRsdp10b->OemId[ 0 ]);\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowHexValue ( SocketFD,\r
+ pPort,\r
+ "Reserved",\r
+ pRsdp10b->Reserved,\r
+ NULL );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowPointer ( SocketFD,\r
+ pPort,\r
+ "RsdtAddress",\r
+ (VOID *)(UINTN)pRsdp10b->RsdtAddress,\r
+ PAGE_ACPI_RSDT );\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
+\r
+\r
+/**\r
+ Respond with the ACPI RSDP 3.0 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
+AcpiRsdp30Page (\r
+ IN int SocketFD,\r
+ IN WSDT_PORT * pPort,\r
+ OUT BOOLEAN * pbDone\r
+ )\r
+{\r
+ CONST EFI_ACPI_3_0_ROOT_SYSTEM_DESCRIPTION_POINTER * pRsdp30;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the RSDP page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the RSDP\r
+ //\r
+ Status = EfiGetSystemConfigurationTable ( &gEfiAcpiTableGuid, (VOID **) &pRsdp30 );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"RSDP - ACPI 3.0 Root System Description Pointer", pRsdp30 );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the RSDP\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pRsdp30->Signature ),\r
+ (CHAR8 *)&pRsdp30->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowHexValue ( SocketFD,\r
+ pPort,\r
+ "Checksum",\r
+ pRsdp30->Checksum,\r
+ NULL );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "OemId",\r
+ sizeof ( pRsdp30->OemId ),\r
+ (CONST CHAR8 *)&pRsdp30->OemId[ 0 ]);\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowHexValue ( SocketFD,\r
+ pPort,\r
+ "Revision",\r
+ pRsdp30->Revision,\r
+ NULL );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowPointer ( SocketFD,\r
+ pPort,\r
+ "RsdtAddress",\r
+ (VOID *)(UINTN)pRsdp30->RsdtAddress,\r
+ PAGE_ACPI_RSDT );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pRsdp30->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowPointer ( SocketFD,\r
+ pPort,\r
+ "XsdtAddress",\r
+ (VOID *)(UINTN)pRsdp30->XsdtAddress,\r
+ NULL );\r
if ( EFI_ERROR ( Status )) {\r
break;\r
}\r
}\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
+ CONST ACPI_UNKNOWN * pSsdt;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the SSDT page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the SSDT\r
+ //\r
+ pSsdt = (ACPI_UNKNOWN *)LocateTable ( SSDT_SIGNATURE );\r
+ if ( NULL == pSsdt ) {\r
+ Status = EFI_NOT_FOUND;\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"SSDT Table", pSsdt );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the header\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pSsdt->Signature ),\r
+ (CHAR8 *)&pSsdt->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pSsdt->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pSsdt->Length - sizeof ( *pSsdt ) + 1,\r
+ (UINT8 *)( pSsdt + 1 ));\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
+\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
+ CONST ACPI_UNKNOWN * pTcpa;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the TCPA page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the TCPA\r
+ //\r
+ pTcpa = (ACPI_UNKNOWN *)LocateTable ( TCPA_SIGNATURE );\r
+ if ( NULL == pTcpa ) {\r
+ Status = EFI_NOT_FOUND;\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"TCPA Table", pTcpa );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the header\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pTcpa->Signature ),\r
+ (CHAR8 *)&pTcpa->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pTcpa->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pTcpa->Length - sizeof ( *pTcpa ) + 1,\r
+ (UINT8 *)( pTcpa + 1 ));\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
+\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
+ CONST ACPI_UNKNOWN * pUefi;\r
+ EFI_STATUS Status;\r
+\r
+ DBG_ENTER ( );\r
+\r
+ //\r
+ // Send the UEFI page\r
+ //\r
+ for ( ; ; ) {\r
+ //\r
+ // Locate the UEFI\r
+ //\r
+ pUefi = (ACPI_UNKNOWN *)LocateTable ( UEFI_SIGNATURE );\r
+ if ( NULL == pUefi ) {\r
+ Status = EFI_NOT_FOUND;\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Send the page and table header\r
+ //\r
+ Status = TableHeader ( SocketFD, pPort, L"UEFI Table", pUefi );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the header\r
+ //\r
+ Status = RowAnsiArray ( SocketFD,\r
+ pPort,\r
+ "Signature",\r
+ sizeof ( pUefi->Signature ),\r
+ (CHAR8 *)&pUefi->Signature );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+ Status = RowDecimalValue ( SocketFD,\r
+ pPort,\r
+ "Length",\r
+ pUefi->Length );\r
+ if ( EFI_ERROR ( Status )) {\r
+ break;\r
+ }\r
+\r
+ //\r
+ // Display the data from the table\r
+ //\r
+ Status = RowDump ( SocketFD,\r
+ pPort,\r
+ "Data",\r
+ pUefi->Length - sizeof ( *pUefi ) + 1,\r
+ (UINT8 *)( pUefi + 1 ));\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
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Display the boot 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
-/** @file
- Display the boot services table
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
-
---*/
-
-/** @file
+/**
+ @file
Display the configuration 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\Acpi.h>
-#include <Guid\DebugImageInfoTable.h>
-#include <Guid\DxeServices.h>
-#include <Guid\HobList.h>
-#include <Guid\MemoryTypeInformation.h>
-#include <Guid\LoadModuleAtFixedAddress.h>
+#include <Guid/Acpi.h>
+#include <Guid/DebugImageInfoTable.h>
+#include <Guid/DxeServices.h>
+#include <Guid/HobList.h>
+#include <Guid/MemoryTypeInformation.h>
+#include <Guid/LoadModuleAtFixedAddress.h>
typedef struct {
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
-
---*/
-
-/** @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>
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @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
-/** @file
- Display the DXE services table
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Exit response page
---*/
+ 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
-/** @file
- Exit response page
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Display the firmware
---*/
+ 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
-/** @file
- Display the firmware
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++\r
- This file contains an 'Intel UEFI Application' and is\r
- licensed for Intel CPUs and chipsets under the terms of your\r
- license agreement with Intel or your vendor. This file may\r
- be modified by the user, subject to additional terms of the\r
- license agreement\r
---*/\r
-/*++\r
-\r
-Copyright (c) 2011 Intel Corporation. All rights reserved\r
-This software and associated documentation (if any) is furnished\r
-under a license and may only be used or copied in accordance\r
-with the terms of the license. Except as permitted by such\r
-license, no part of this software or documentation may be\r
-reproduced, stored in a retrieval system, or transmitted in any\r
-form or by any means without the express written consent of\r
-Intel Corporation.\r
-\r
---*/\r
-\r
-/** @file\r
+/**\r
+ @file\r
HTTP processing for the web server.\r
\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
+ 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 <WebServer.h>\r
\r
+\r
/**\r
Get a UTF-8 character from the buffer\r
\r
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Display the handles in the system
---*/
+ 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
-/** @file
- Display the handles in the system
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Hello World response page
---*/
+ 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
-/** @file
- Hello World response page
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Generate the list of known pages.
---*/
+ 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
-/** @file
- Generate the list of known pages.
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
--- /dev/null
+/**
+ @file
+ Display the memory map
+
+ Copyright (c) 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 <PiDxe.h>
+#include <Library/DxeServicesTableLib.h>
+
+
+CONST char * mpMemoryType[ ] = {
+ "Non-existent",
+ "Reserved",
+ "System Memory",
+ "Memory Mapped I/O"
+};
+
+
+/**
+ Page to display the memory map
+
+ @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
+MemoryMapPage (
+ IN int SocketFD,
+ IN WSDT_PORT * pPort,
+ OUT BOOLEAN * pbDone
+ )
+{
+ UINT64 Attributes;
+ BOOLEAN bSomethingDisplayed;
+ UINTN Count;
+ EFI_GCD_MEMORY_SPACE_DESCRIPTOR * pMemoryEnd;
+ EFI_GCD_MEMORY_SPACE_DESCRIPTOR * pMemoryDescriptor;
+ EFI_GCD_MEMORY_SPACE_DESCRIPTOR * pMemoryDescriptorStart;
+ EFI_STATUS Status;
+
+ DBG_ENTER ( );
+
+ //
+ // Send the memory map page
+ //
+ pMemoryDescriptorStart = NULL;
+ for ( ; ; ) {
+ //
+ // Send the page header
+ //
+ Status = HttpPageHeader ( SocketFD, pPort, L"Memory Map" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Start the table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<h1>Memory Map</h1>\r\n"
+ "<table>\r\n"
+ " <tr><th align=\"right\">Type</th><th align=\"right\">Start</th><th align=\"right\">End</th><th align=\"right\">Attributes</th></tr>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Get the memory map
+ //
+ Status = gDS->GetMemorySpaceMap ( &Count,
+ &pMemoryDescriptor );
+ if ( !EFI_ERROR ( Status )) {
+ pMemoryDescriptorStart = pMemoryDescriptor;
+ pMemoryEnd = &pMemoryDescriptor[ Count ];
+ while ( pMemoryEnd > pMemoryDescriptor ) {
+ //
+ // Display the type
+ //
+ Status = HttpSendAnsiString ( SocketFD, pPort, "<tr><td align=\"right\"><code>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ if ( DIM ( mpMemoryType ) > pMemoryDescriptor->GcdMemoryType ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ mpMemoryType[ pMemoryDescriptor->GcdMemoryType ]);
+ }
+ else {
+ Status = HttpSendValue ( SocketFD,
+ pPort,
+ pMemoryDescriptor->GcdMemoryType );
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the start address
+ //
+ Status = HttpSendAnsiString ( SocketFD, pPort, "</code></td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ pMemoryDescriptor->BaseAddress );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the end address
+ //
+ Status = HttpSendAnsiString ( SocketFD, pPort, "</code></td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ pMemoryDescriptor->BaseAddress
+ + pMemoryDescriptor->Length
+ - 1 );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the attributes
+ //
+ Status = HttpSendAnsiString ( SocketFD, pPort, "</code></td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ pMemoryDescriptor->Attributes );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Decode the attributes
+ //
+ Status = HttpSendAnsiString ( SocketFD, pPort, "</code></td><td>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ bSomethingDisplayed = FALSE;
+ Attributes = pMemoryDescriptor->Attributes;
+
+ if ( 0 != ( Attributes & EFI_MEMORY_RUNTIME )) {
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Runtime" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_XP )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "No Execute" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_RP )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "No Read" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_WP )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "No Write" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_UCE )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "UCE" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+
+ if ( 0 != ( Attributes & EFI_MEMORY_WB )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Write Back" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_WT )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Write Through" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_WC )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Write Combining" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ if ( 0 != ( Attributes & EFI_MEMORY_UC )) {
+ if ( bSomethingDisplayed ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ bSomethingDisplayed = TRUE;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Uncached" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ //
+ // Finish the row
+ //
+ Status = HttpSendAnsiString ( SocketFD, pPort, "</td></tr>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Set the next memory descriptor
+ //
+ pMemoryDescriptor += 1;
+ }
+ }
+
+ //
+ // Finish the table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</table>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Send the page trailer
+ //
+ Status = HttpPageTrailer ( SocketFD, pPort, pbDone );
+ break;
+ }
+
+ //
+ // Release the memory descriptors
+ //
+ if ( NULL != pMemoryDescriptorStart ) {
+ FreePool ( pMemoryDescriptorStart );
+ }
+
+ //
+ // Return the operation status
+ //
+ DBG_EXIT_STATUS ( Status );
+ return Status;
+}
--- /dev/null
+/**
+ @file
+ Display the memory type range registers
+
+ Copyright (c) 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 <Library/MtrrLib.h>
+
+#define VARIABLE_MTRR_VALID 0x800
+
+CONST char * mMemoryType [ ] = {
+ "Uncached",
+ "Write Combining",
+ "Reserved",
+ "Reserved",
+ "Write Through",
+ "Write Protected",
+ "Writeback"
+};
+
+
+/**
+ Display a fixed MTRR row
+
+ @param [in] SocketFD The socket's file descriptor to add to the list.
+ @param [in] pPort The WSDT_PORT structure address
+ @param [in] Start Start address for the region
+ @param [in] End End address for the region
+ @param [in] Type Memory type
+
+ @retval EFI_SUCCESS The request was successfully processed
+
+**/
+EFI_STATUS
+MtrrDisplayFixedRow (
+ IN int SocketFD,
+ IN WSDT_PORT * pPort,
+ IN UINT64 Start,
+ IN UINT64 End,
+ IN UINT64 Type
+ )
+{
+ EFI_STATUS Status;
+
+ //
+ // Use break instead of goto
+ //
+ for ( ; ; ) {
+ //
+ // Start the row
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ " <tr><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Start
+ //
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Start );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ End - 1 );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Type
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Type &= 0xff;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ( DIM ( mMemoryType ) > Type )
+ ? mMemoryType [ Type ]
+ : "Reserved" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End of row
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</td></tr>\r\n" );
+ break;
+ }
+
+ //
+ // Return the final status
+ //
+ return Status;
+}
+
+
+/**
+ Display the memory type registers
+
+ @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
+MemoryTypeRegistersPage (
+ IN int SocketFD,
+ IN WSDT_PORT * pPort,
+ OUT BOOLEAN * pbDone
+ )
+{
+ UINT64 Addr;
+ BOOLEAN bValid;
+ UINT64 Capabilities;
+ UINTN Count;
+ UINT64 DefType;
+ UINTN Index;
+ UINT64 Mask;
+ UINT64 MaxMtrrs;
+ CONST UINT64 mFixedAddresses [( 8 * MTRR_NUMBER_OF_FIXED_MTRR ) + 1 ] = {
+ 0ULL,
+ 0x10000ULL,
+ 0x20000ULL,
+ 0x30000ULL,
+ 0x40000ULL,
+ 0x50000ULL,
+ 0x60000ULL,
+ 0x70000ULL,
+
+ 0x80000ULL,
+ 0x84000ULL,
+ 0x88000ULL,
+ 0x8c000ULL,
+ 0x90000ULL,
+ 0x94000ULL,
+ 0x98000ULL,
+ 0x9c000ULL,
+
+ 0xa0000ULL,
+ 0xa4000ULL,
+ 0xa8000ULL,
+ 0xac000ULL,
+ 0xb0000ULL,
+ 0xb4000ULL,
+ 0xb8000ULL,
+ 0xbc000ULL,
+
+ 0xc0000ULL,
+ 0xc1000ULL,
+ 0xc2000ULL,
+ 0xc3000ULL,
+ 0xc4000ULL,
+ 0xc5000ULL,
+ 0xc6000ULL,
+ 0xc7000ULL,
+
+ 0xc8000ULL,
+ 0xc9000ULL,
+ 0xca000ULL,
+ 0xcb000ULL,
+ 0xcc000ULL,
+ 0xcd000ULL,
+ 0xce000ULL,
+ 0xcf000ULL,
+
+ 0xd0000ULL,
+ 0xd1000ULL,
+ 0xd2000ULL,
+ 0xd3000ULL,
+ 0xd4000ULL,
+ 0xd5000ULL,
+ 0xd6000ULL,
+ 0xd7000ULL,
+
+ 0xd8000ULL,
+ 0xd9000ULL,
+ 0xda000ULL,
+ 0xdb000ULL,
+ 0xdc000ULL,
+ 0xdd000ULL,
+ 0xde000ULL,
+ 0xdf000ULL,
+
+ 0xe0000ULL,
+ 0xe1000ULL,
+ 0xe2000ULL,
+ 0xe3000ULL,
+ 0xe4000ULL,
+ 0xe5000ULL,
+ 0xe6000ULL,
+ 0xe7000ULL,
+
+ 0xe8000ULL,
+ 0xe9000ULL,
+ 0xea000ULL,
+ 0xeb000ULL,
+ 0xec000ULL,
+ 0xed000ULL,
+ 0xee000ULL,
+ 0xef000ULL,
+
+ 0xf0000ULL,
+ 0xf1000ULL,
+ 0xf2000ULL,
+ 0xf3000ULL,
+ 0xf4000ULL,
+ 0xf5000ULL,
+ 0xf6000ULL,
+ 0xf7000ULL,
+
+ 0xf8000ULL,
+ 0xf9000ULL,
+ 0xfa000ULL,
+ 0xfb000ULL,
+ 0xfc000ULL,
+ 0xfd000ULL,
+ 0xfe000ULL,
+ 0xff000ULL,
+
+ 0x100000ULL
+ };
+ MTRR_SETTINGS Mtrr;
+ CONST UINT64 * pMemEnd;
+ CONST UINT64 * pMemStart;
+ UINT64 PreviousType;
+ UINT64 ShiftCount;
+ EFI_STATUS Status;
+ UINT64 Type;
+ INT64 Value;
+
+ DBG_ENTER ( );
+
+ //
+ // Send the Memory Type Registers page
+ //
+ for ( ; ; ) {
+ //
+ // Send the page header
+ //
+ Status = HttpPageHeader ( SocketFD, pPort, L"Memory Type Range Registers" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Send the header
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<h1>Memory Type Range Registers</h1>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Determine if MTRRs are supported
+ //
+ if ( !IsMtrrSupported ( )) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<p>Memory Type Range Registers are not supported!\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ else {
+ //
+ // Get the capabilities
+ //
+ Capabilities = AsmReadMsr64 ( MTRR_LIB_IA32_MTRR_CAP );
+ DefType = AsmReadMsr64 ( MTRR_LIB_IA32_MTRR_DEF_TYPE );
+
+ //
+ // Display the capabilities
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<p>Capabilities: " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Capabilities );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<br>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the default type
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Def Type: " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ DefType );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", MTRRs " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ( 0 != ( DefType & MTRR_LIB_CACHE_MTRR_ENABLED ))
+ ? "Enabled"
+ : "Disabled" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", Fixed MTRRs " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ( 0 != ( DefType & MTRR_LIB_CACHE_FIXED_MTRR_ENABLED ))
+ ? "Enabled"
+ : "Disabled" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ", " );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Type = DefType & 0xff;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ( DIM ( mMemoryType ) > Type )
+ ? mMemoryType [ Type ]
+ : "Reserved" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</p>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Determine if MTRRs are enabled
+ //
+ if ( 0 == ( DefType & MTRR_LIB_CACHE_MTRR_ENABLED )) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<p>All memory is uncached!</p>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ else {
+ //
+ // Get the MTRRs
+ //
+ MtrrGetAllMtrrs ( &Mtrr );
+
+ //
+ // Determine if the fixed MTRRs are supported
+ //
+ if (( 0 != ( Capabilities & 0x100 ))
+ && ( 0 != ( DefType & MTRR_LIB_CACHE_FIXED_MTRR_ENABLED ))) {
+
+ //
+ // Beginning of table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<h2>Fixed MTRRs</h2>\r\n"
+ "<table>\r\n"
+ " <tr><th>Index</th><th align=\"right\">Value</th><th align=\"right\">Start</th><th align=\"right\">End</th></tr>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the fixed MTRRs
+ //
+ pMemStart = &mFixedAddresses[ 0 ];
+ for ( Count = 0; DIM ( Mtrr.Fixed.Mtrr ) > Count; Count++ ) {
+ //
+ // Start the row
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ " <tr><td>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Index
+ //
+ Status = HttpSendValue ( SocketFD,
+ pPort,
+ Count );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Value
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Mtrr.Fixed.Mtrr[ Count ]);
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Start
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ *pMemStart );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ pMemStart += 8;
+
+ //
+ // Value
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ *pMemStart - 1 );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End of row
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td></tr>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End of table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</table>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Beginning of table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<table>\r\n"
+ " <tr><th align=\"right\">Start</th><th align=\"right\">End</th><th align=\"left\">Type</th></tr>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Decode the fixed MTRRs
+ //
+ PreviousType = Mtrr.Fixed.Mtrr[ 0 ] & 0xff;
+ pMemStart = &mFixedAddresses[ 0 ];
+ pMemEnd = pMemStart;
+ for ( Count = 0; DIM ( Mtrr.Fixed.Mtrr ) > Count; Count++ ) {
+ //
+ // Get the memory types
+ //
+ Type = Mtrr.Fixed.Mtrr[ Count ];
+
+ //
+ // Walk the memory range
+ //
+ for ( Index = 0; 8 > Index; Index++ ) {
+ //
+ // Determine if this is the same memory type
+ //
+ if ( PreviousType != ( Type & 0xff )) {
+ //
+ // Display the row
+ //
+ Status = MtrrDisplayFixedRow ( SocketFD,
+ pPort,
+ *pMemStart,
+ *pMemEnd,
+ PreviousType );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Start the next range of addresses
+ //
+ pMemStart = pMemEnd;
+ PreviousType = Type & 0xff;
+ }
+
+ //
+ // Set the next memory range and type
+ //
+ Type >>= 8;
+ pMemEnd += 1;
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the final row
+ //
+ Status = MtrrDisplayFixedRow ( SocketFD,
+ pPort,
+ *pMemStart,
+ *pMemEnd,
+ PreviousType );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End of table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</table>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+
+ //
+ // Determine if the variable MTRRs are supported
+ //
+ MaxMtrrs = Capabilities & MTRR_LIB_IA32_MTRR_CAP_VCNT_MASK;
+ if ( 0 < MaxMtrrs ) {
+ //
+ // Beginning of table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "<h2>Variable MTRRs</h2>\r\n"
+ "<table>\r\n"
+ " <tr><th>Index</th><th align=\"right\">Base</th><th align=\"right\">Mask</th><th align=\"right\">Start</th><th align=\"right\">End</th></tr>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Display the variable MTRRs
+ //
+ for ( Count = 0; MaxMtrrs > Count; Count++ ) {
+ //
+ // Start the row
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ " <tr><td>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Index
+ //
+ Status = HttpSendValue ( SocketFD,
+ pPort,
+ Count );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Base
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Mtrr.Variables.Mtrr[ Count ].Base );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Mask
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</td><td align=\"right\"><code>0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Mtrr.Variables.Mtrr[ Count ].Mask );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Determine if the entry is valid
+ //
+ bValid = ( Mtrr.Variables.Mtrr[ Count ].Mask & VARIABLE_MTRR_VALID ) ? TRUE : FALSE;
+
+ //
+ // Start
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td align=\"right\"><code>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Addr = Mtrr.Variables.Mtrr[ Count ].Base & 0xfffffffffffff000ULL;
+ if ( bValid ) {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Addr );
+ }
+ else {
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "Invalid" );
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td align=\"right\"><code>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ if ( bValid ) {
+ //
+ // Determine the end address
+ //
+ Mask = Mtrr.Variables.Mtrr[ Count ].Mask;
+ Value = Mask;
+ ShiftCount = 0;
+ while ( 0 < Value ) {
+ Value <<= 1;
+ ShiftCount += 1;
+ }
+ Value = 1;
+ Value <<= 64 - ShiftCount;
+ Value -= 1;
+ Value = ~Value;
+ Value |= Mask;
+ Value &= ~VARIABLE_MTRR_VALID;
+ Value = ~Value;
+
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "0x" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ Status = HttpSendHexValue ( SocketFD,
+ pPort,
+ Addr + Value );
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // Type
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</code></td><td>" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ if ( bValid ) {
+ Type = Mtrr.Variables.Mtrr[ Count ].Base & 0xFF;
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ ( DIM ( mMemoryType ) > Type )
+ ? mMemoryType [ Type ]
+ : "Reserved" );
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End of row
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</td></tr>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+
+ //
+ // End of table
+ //
+ Status = HttpSendAnsiString ( SocketFD,
+ pPort,
+ "</table>\r\n" );
+ if ( EFI_ERROR ( Status )) {
+ break;
+ }
+ }
+ }
+ }
+
+ //
+ // Send the page trailer
+ //
+ Status = HttpPageTrailer ( SocketFD, pPort, pbDone );
+ break;
+ }
+
+ //
+ // Return the operation status
+ //
+ DBG_EXIT_STATUS ( Status );
+ return Status;
+}
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
-
---*/
-
-/** @file
+/**
+ @file
List of pages to display
+ 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>
{ PAGE_BOOT_SERVICES_TABLE, BootServicesTablePage, L"Boot Services Table" }, ///< Format boot services table
{ PAGE_CONFIGURATION_TABLE, ConfigurationTablePage, L"Configuration Table" }, ///< Format configuration table
{ L"/DhcpOptions", DhcpOptionsPage, L"DHCP Options" }, ///< Display the DHCP options
+ { PAGE_ACPI_APIC, AcpiApicPage, L"APIC" }, ///< Format APIC
+ { PAGE_ACPI_BGRT, AcpiBgrtPage, L"BGRT" }, ///< Format BGRT
{ PAGE_ACPI_DSDT, AcpiDsdtPage, L"DSDT - Differentiated System Description Table" }, ///< Format DSDT
{ PAGE_DXE_SERVICES_TABLE, DxeServicesTablePage, L"DXE Services Table" }, ///< Format DXE services table
{ L"/Exit", ExitPage, L"Exit the web server" }, ///< Exit the web server application
{ L"/Firmware", FirmwarePage, L"Firmware" }, ///< Firmware status
{ L"/Handles", HandlePage, L"Display handles and associated protocol GUIDs" }, ///< Handle database page
{ L"/Hello", HelloPage, L"Hello World" }, ///< Hello world page
+ { PAGE_ACPI_HPET, AcpiHpetPage, L"HPET" }, ///< Format HPET
+ { PAGE_ACPI_MCFG, AcpiMcfgPage, L"MCFG" }, ///< Format MCFG
+ { L"/MemoryMap", MemoryMapPage, L"Memory Map" }, ///< Memory list
+#if defined (MDE_CPU_IA32) || defined (MDE_CPU_X64)
+ { L"/MTRRs", MemoryTypeRegistersPage, L"Memory Type Range Registers" }, ///< Memory type range register table
+#endif // Intel
{ L"/Ports", PortsPage, L"Display web-server ports" },///< Web-server ports page
{ L"/Reboot", RebootPage, L"Reboot the sytem" }, ///< Reboot page
{ PAGE_ACPI_RSDP_10B, AcpiRsdp10Page, L"RSDP 1.0b - ACPI Root System Description Pointer" }, ///< Format RSDP 1.0b table
{ PAGE_ACPI_RSDP_30, AcpiRsdp30Page, L"RSDP 3.0 - ACPI Root System Description Pointer" }, ///< Format RSDP 3.0 table
{ PAGE_ACPI_RSDT, AcpiRsdtPage, L"RSDT - ACPI Root System Description Table" }, ///< Format RSDT
{ PAGE_RUNTIME_SERVICES_TABLE, RuntimeSservicesTablePage, L"Runtime Services Table" },///< Format runtime services table
- { L"/SystemTable", SystemTablePage, L"System Table" } ///< Format system table
+ { PAGE_ACPI_SSDT, AcpiSsdtPage, L"SSDT" }, ///< Format SSDT
+ { L"/SystemTable", SystemTablePage, L"System Table" },///< Format system table
+ { PAGE_ACPI_TCPA, AcpiTcpaPage, L"TCPA" }, ///< Format TCPA
+ { PAGE_ACPI_UEFI, AcpiUefiPage, L"UEFI" } ///< Format UEFI
};
CONST UINTN mPageCount = DIM ( mPageList );
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Ports response page
---*/
+ 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
-/** @file
- Ports response page
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Reboot the system
---*/
+ 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
-/** @file
- Reboot the system
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
DBG_ENTER ( );
//
- // Send the Hello World page
+ // Send the Reboot page
//
for ( ; ; ) {
//
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
+/**
+ @file
+ Display the runtime 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
-/** @file
- Display the runtime services table
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
-
---*/
-
-/** @file
+/**
+ @file
Display the system 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>
-/*++
- This file contains an 'Intel UEFI Application' and is
- licensed for Intel CPUs and chipsets under the terms of your
- license agreement with Intel or your vendor. This file may
- be modified by the user, subject to additional terms of the
- license agreement
---*/
-/*++
-
-Copyright (c) 2011 Intel Corporation. All rights reserved
-This software and associated documentation (if any) is furnished
-under a license and may only be used or copied in accordance
-with the terms of the license. Except as permitted by such
-license, no part of this software or documentation may be
-reproduced, stored in a retrieval system, or transmitted in any
-form or by any means without the express written consent of
-Intel Corporation.
-
---*/
-
-/** @file
- This is a simple shell application
-
- This should be executed with "/Param2 Val1" and "/Param1" as the 2 command line options!
+/**
+ @file
+ Web server application
+
+ 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.
**/
/** @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
\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
// 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
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
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
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
-#/** @file\r
+## @file\r
# Web Server Application\r
#\r
-# This file contains an 'Intel Peripheral Driver' and is \r
-# licensed for Intel CPUs and chipsets under the terms of your\r
-# license agreement with Intel or your vendor. This file may \r
-# be modified by the user, subject to additional terms of the \r
-# license agreement \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
+# http://opensource.org/licenses/bsd-license.php\r
#\r
-#\r
-# Copyright (c) 2011 Intel Corporation. All rights reserved\r
-# This software and associated documentation (if any) is furnished\r
-# under a license and may only be used or copied in accordance\r
-# with the terms of the license. Except as permitted by such\r
-# license, no part of this software or documentation may be\r
-# reproduced, stored in a retrieval system, or transmitted in any\r
-# form or by any means without the express written consent of\r
-# Intel Corporation.\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
Hello.c\r
HTTP.c\r
Index.c\r
+ MemoryMap.c\r
PageList.c\r
Ports.c\r
Reboot.c\r
SystemTable.c\r
WebServer.c\r
\r
+[Sources.IA32]\r
+ Mtrr.c\r
+\r
+[Sources.X64]\r
+ Mtrr.c\r
+\r
\r
[Pcd]\r
gAppPkgTokenSpaceGuid.WebServer_HttpPort\r
ShellPkg/ShellPkg.dec\r
StdLib/StdLib.dec\r
\r
+[Packages.IA32]\r
+ UefiCpuPkg/UefiCpuPkg.dec\r
+\r
+[Packages.X64]\r
+ UefiCpuPkg/UefiCpuPkg.dec\r
+\r
\r
[LibraryClasses]\r
BaseMemoryLib\r
BsdSocketLib\r
DebugLib\r
DevShell\r
+ DxeServicesTableLib\r
EfiSocketLib\r
LibC\r
ShellLib\r
UefiRuntimeServicesTableLib\r
# UseSocketDxe\r
\r
+[LibraryClasses.IA32]\r
+ MtrrLib\r
+\r
+[LibraryClasses.X64]\r
+ MtrrLib\r
+\r
+\r
[Guids]\r
gEfiAcpi10TableGuid\r
gEfiAcpiTableGuid\r