]>
git.proxmox.com Git - mirror_edk2.git/blob - AppPkg/Applications/Sockets/WebServer/Firmware.c
5 Copyright (c) 2011-2012, Intel Corporation. All rights reserved.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <WebServer.h>
14 Respond with the firmware status
16 @param [in] SocketFD The socket's file descriptor to add to the list.
17 @param [in] pPort The WSDT_PORT structure address
18 @param [out] pbDone Address to receive the request completion status
20 @retval EFI_SUCCESS The request was successfully processed
35 // Send the system table page
39 // Send the page and table header
41 Status
= TableHeader ( SocketFD
, pPort
, L
"Firmware", NULL
);
42 if ( EFI_ERROR ( Status
)) {
47 // Display the firmware vendor and revision
49 Status
= RowUnicodeString ( SocketFD
,
52 gST
->FirmwareVendor
);
53 if ( EFI_ERROR ( Status
)) {
57 Status
= RowRevision ( SocketFD
,
60 gST
->FirmwareRevision
);
61 if ( EFI_ERROR ( Status
)) {
66 // Display the UEFI version
68 Status
= RowRevision ( SocketFD
,
72 if ( EFI_ERROR ( Status
)) {
77 // Build the table trailer
79 Status
= TableTrailer ( SocketFD
,
86 // Return the operation status
88 DBG_EXIT_STATUS ( Status
);