/*++
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 configuration table
**/
#include <WebServer.h>
#include <Guid\DebugImageInfoTable.h>
#include <Guid\DxeServices.h>
#include <Guid\MemoryTypeInformation.h>
#include <Guid\LoadModuleAtFixedAddress.h>
typedef struct {
} GUID_NAME;
};
/**
Display a row containing a GUID value
@param [in] SocketFD The socket's file descriptor to add to the list.
@param [in] pPort The WSDT_PORT structure address
@param [in] pName Address of a zero terminated name string
@param [in] pGuid Address of the GUID to display
@retval EFI_SUCCESS The request was successfully processed
**/
RowGuid (
)
{
DBG_ENTER ( );
//
//
for ( ; ; ) {
"<tr><td>" );
break;
}
pName );
break;
}
"</td><td><code>" );
break;
}
//
// Determine if this is a known GUID
//
while ( pGuidNameEnd > pGuidName ) {
//
// Display the web link if available
//
"<a target=\"_blank\" href=\"" );
break;
}
break;
}
"\">" );
break;
}
}
//
// Display the GUID name
//
//
// Complete the web link if available
//
break;
}
"</a>" );
}
break;
}
//
// Set the next GUID name
//
pGuidName += 1;
}
break;
}
//
// Only if the entry is not known, display the GUID and type
//
if ( pGuidNameEnd <= pGuidName ) {
//
// Display the GUID
//
pGuid );
break;
}
//
// Display the GUID type
//
"<br/><a target=\"_blank\" href=\"http://www.ietf.org/rfc/rfc4122.txt\">Guid Type</a>: " );
break;
}
Value >>= 5;
if ( 3 >= Value ) {
//
// Network type
//
"Network " );
}
else if ( 5 >= Value ) {
//
// Standard type
//
"Standard " );
break;
}
//
// Decode the standard type using RFC 4122
//
Value >>= 12;
switch ( Value ) {
default:
//
// Display the MAC address
//
"Version " );
break;
}
break;
case 1:
"MAC address" );
break;
case 2:
"DCE Security" );
break;
case 3:
"MD5 hash" );
break;
case 4:
"Random" );
break;
case 5:
"SHA-1 hash" );
break;
}
}
else if ( 6 == Value ) {
//
// Microsoft's Component Object Model (COM) type
//
"Microsoft COM" );
}
else {
//
// Reserved type
//
"Reserved" );
}
}
//
// Done with this entry
//
"</code></td></tr>\r\n" );
break;
}
//
// Return the operation status
//
DBG_EXIT_STATUS ( Status );
return Status;
}
/**
Respond with the configuration tables
@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
**/
)
{
DBG_ENTER ( );
//
// Send the system table page
//
for ( ; ; ) {
//
// Send the page and table header
//
break;
}
//
// Display the table size
//
"Entries",
break;
}
//
// Determine the location of the configuration tables
//
"VendorGuid",
&pTable->VendorGuid );
break;
}
"VendorTable",
NULL );
break;
}
//
// Set the next row
//
pTable += 1;
}
//
// Build the table trailer
//
pbDone );
break;
}
//
// Return the operation status
//
DBG_EXIT_STATUS ( Status );
return Status;
}