]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Sockets/WebServer/Firmware.c
2 This file contains an 'Intel UEFI Application' and is
3 licensed for Intel CPUs and chipsets under the terms of your
4 license agreement with Intel or your vendor. This file may
5 be modified by the user, subject to additional terms of the
10 Copyright (c) 2011 Intel Corporation. All rights reserved
11 This software and associated documentation (if any) is furnished
12 under a license and may only be used or copied in accordance
13 with the terms of the license. Except as permitted by such
14 license, no part of this software or documentation may be
15 reproduced, stored in a retrieval system, or transmitted in any
16 form or by any means without the express written consent of
26 #include <WebServer.h>
30 Respond with the firmware status
32 @param [in] SocketFD The socket's file descriptor to add to the list.
33 @param [in] pPort The WSDT_PORT structure address
34 @param [out] pbDone Address to receive the request completion status
36 @retval EFI_SUCCESS The request was successfully processed
51 // Send the system table page
55 // Send the page and table header
57 Status
= TableHeader ( SocketFD
, pPort
, L
"Firmware", NULL
);
58 if ( EFI_ERROR ( Status
)) {
63 // Display the firmware vendor and revision
65 Status
= RowUnicodeString ( SocketFD
,
68 gST
->FirmwareVendor
);
69 if ( EFI_ERROR ( Status
)) {
73 Status
= RowRevision ( SocketFD
,
76 gST
->FirmwareRevision
);
77 if ( EFI_ERROR ( Status
)) {
82 // Display the UEFI version
84 Status
= RowRevision ( SocketFD
,
88 if ( EFI_ERROR ( Status
)) {
93 // Build the table trailer
95 Status
= TableTrailer ( SocketFD
,
102 // Return the operation status
104 DBG_EXIT_STATUS ( Status
);