]>
Commit | Line | Data |
---|---|---|
9f7f5161 | 1 | /** |
2 | @file | |
4684b66f | 3 | Display the firmware |
4 | ||
bcb96695 MK |
5 | Copyright (c) 2011-2012, Intel Corporation. All rights reserved. |
6 | SPDX-License-Identifier: BSD-2-Clause-Patent | |
9f7f5161 | 7 | |
4684b66f | 8 | **/ |
9 | ||
10 | #include <WebServer.h> | |
11 | ||
12 | ||
13 | /** | |
14 | Respond with the firmware status | |
15 | ||
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 | |
19 | ||
20 | @retval EFI_SUCCESS The request was successfully processed | |
21 | ||
22 | **/ | |
23 | EFI_STATUS | |
24 | FirmwarePage ( | |
25 | IN int SocketFD, | |
26 | IN WSDT_PORT * pPort, | |
27 | OUT BOOLEAN * pbDone | |
28 | ) | |
29 | { | |
30 | EFI_STATUS Status; | |
31 | ||
32 | DBG_ENTER ( ); | |
33 | ||
34 | // | |
35 | // Send the system table page | |
36 | // | |
37 | for ( ; ; ) { | |
38 | // | |
39 | // Send the page and table header | |
40 | // | |
41 | Status = TableHeader ( SocketFD, pPort, L"Firmware", NULL ); | |
42 | if ( EFI_ERROR ( Status )) { | |
43 | break; | |
44 | } | |
45 | ||
46 | // | |
47 | // Display the firmware vendor and revision | |
48 | // | |
49 | Status = RowUnicodeString ( SocketFD, | |
50 | pPort, | |
51 | "Vendor", | |
52 | gST->FirmwareVendor ); | |
53 | if ( EFI_ERROR ( Status )) { | |
54 | break; | |
55 | } | |
56 | ||
57 | Status = RowRevision ( SocketFD, | |
58 | pPort, | |
59 | "Revision", | |
60 | gST->FirmwareRevision ); | |
61 | if ( EFI_ERROR ( Status )) { | |
62 | break; | |
63 | } | |
64 | ||
65 | // | |
66 | // Display the UEFI version | |
67 | // | |
68 | Status = RowRevision ( SocketFD, | |
69 | pPort, | |
70 | "UEFI", | |
71 | gST->Hdr.Revision ); | |
72 | if ( EFI_ERROR ( Status )) { | |
73 | break; | |
74 | } | |
75 | ||
76 | // | |
77 | // Build the table trailer | |
78 | // | |
79 | Status = TableTrailer ( SocketFD, | |
80 | pPort, | |
81 | pbDone ); | |
82 | break; | |
83 | } | |
84 | ||
85 | // | |
86 | // Return the operation status | |
87 | // | |
88 | DBG_EXIT_STATUS ( Status ); | |
89 | return Status; | |
90 | } |