TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiShellAcpiViewCommandLib.c
Go to the documentation of this file.
1
12
14#include <Library/HiiLib.h>
16#include <Library/PrintLib.h>
18#include <Library/ShellLib.h>
20#include <Library/UefiLib.h>
22#include <Uefi.h>
23
24#include "AcpiParser.h"
25#include "AcpiTableParser.h"
26#include "AcpiView.h"
27#include "AcpiViewConfig.h"
28
29CONST CHAR16 gShellAcpiViewFileName[] = L"ShellCommand";
30EFI_HII_HANDLE gShellAcpiViewHiiHandle = NULL;
31
36 { L"-q", TypeFlag },
37 { L"-d", TypeFlag },
38 { L"-h", TypeFlag },
39 { L"-l", TypeFlag },
40 { L"-s", TypeValue },
41 { L"-r", TypeValue },
42 { NULL, TypeMax }
43};
44
83};
84
97 )
98{
99 EFI_STATUS Status;
100 UINTN Count;
101
102 Status = EFI_SUCCESS;
103 Count = sizeof (ParserList) / sizeof (ParserList[0]);
104
105 while (Count-- != 0) {
106 Status = RegisterParser (
107 ParserList[Count].Signature,
108 ParserList[Count].Parser
109 );
110 if (EFI_ERROR (Status)) {
111 return Status;
112 }
113 }
114
115 return Status;
116}
117
127UINTN
128EFIAPI
130 IN CONST CHAR16 *FileNameBuffer,
131 IN CONST VOID *Buffer,
132 IN CONST UINTN BufferSize
133 )
134{
135 EFI_STATUS Status;
136 SHELL_FILE_HANDLE DumpFileHandle;
137 UINTN TransferBytes;
138
139 Status = ShellOpenFileByName (
140 FileNameBuffer,
141 &DumpFileHandle,
142 EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE,
143 0
144 );
145
146 if (EFI_ERROR (Status)) {
148 -1,
149 -1,
150 NULL,
151 STRING_TOKEN (STR_GEN_READONLY_MEDIA),
152 gShellAcpiViewHiiHandle,
153 L"acpiview"
154 );
155 return 0;
156 }
157
158 TransferBytes = BufferSize;
159 Status = ShellWriteFile (
160 DumpFileHandle,
161 &TransferBytes,
162 (VOID *)Buffer
163 );
164
165 if (EFI_ERROR (Status)) {
166 Print (L"ERROR: Failed to write binary file.\n");
167 TransferBytes = 0;
168 } else {
169 Print (L"DONE.\n");
170 }
171
172 ShellCloseFile (&DumpFileHandle);
173 return TransferBytes;
174}
175
181CONST CHAR16 *
182EFIAPI
184 VOID
185 )
186{
187 return gShellAcpiViewFileName;
188}
189
201EFIAPI
203 IN EFI_HANDLE ImageHandle,
204 IN EFI_SYSTEM_TABLE *SystemTable
205 )
206{
207 EFI_STATUS Status;
208 SHELL_STATUS ShellStatus;
209 LIST_ENTRY *Package;
210 CHAR16 *ProblemParam;
211 SHELL_FILE_HANDLE TmpDumpFileHandle;
212 CONST CHAR16 *MandatoryTableSpecStr;
213 CONST CHAR16 *SelectedTableName;
214
215 // Set configuration defaults
217
218 ShellStatus = SHELL_SUCCESS;
219 Package = NULL;
220 TmpDumpFileHandle = NULL;
221
222 Status = ShellCommandLineParse (ParamList, &Package, &ProblemParam, TRUE);
223 if (EFI_ERROR (Status)) {
224 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam != NULL)) {
226 -1,
227 -1,
228 NULL,
229 STRING_TOKEN (STR_GEN_PROBLEM),
230 gShellAcpiViewHiiHandle,
231 L"acpiview",
232 ProblemParam
233 );
234 FreePool (ProblemParam);
235 } else {
236 Print (L"acpiview: Error processing input parameter(s)\n");
237 }
238
239 ShellStatus = SHELL_INVALID_PARAMETER;
240 } else {
241 if (ShellCommandLineGetCount (Package) > 1) {
243 -1,
244 -1,
245 NULL,
246 STRING_TOKEN (STR_GEN_TOO_MANY),
247 gShellAcpiViewHiiHandle,
248 L"acpiview"
249 );
250 ShellStatus = SHELL_INVALID_PARAMETER;
251 } else if (ShellCommandLineGetFlag (Package, L"-?")) {
253 -1,
254 -1,
255 NULL,
256 STRING_TOKEN (STR_GET_HELP_ACPIVIEW),
257 gShellAcpiViewHiiHandle,
258 L"acpiview"
259 );
260 } else if (ShellCommandLineGetFlag (Package, L"-s") &&
261 (ShellCommandLineGetValue (Package, L"-s") == NULL))
262 {
264 -1,
265 -1,
266 NULL,
267 STRING_TOKEN (STR_GEN_NO_VALUE),
268 gShellAcpiViewHiiHandle,
269 L"acpiview",
270 L"-s"
271 );
272 ShellStatus = SHELL_INVALID_PARAMETER;
273 } else if (ShellCommandLineGetFlag (Package, L"-r") &&
274 (ShellCommandLineGetValue (Package, L"-r") == NULL))
275 {
277 -1,
278 -1,
279 NULL,
280 STRING_TOKEN (STR_GEN_NO_VALUE),
281 gShellAcpiViewHiiHandle,
282 L"acpiview",
283 L"-r"
284 );
285 ShellStatus = SHELL_INVALID_PARAMETER;
286 } else if ((ShellCommandLineGetFlag (Package, L"-s") &&
287 ShellCommandLineGetFlag (Package, L"-l")))
288 {
290 -1,
291 -1,
292 NULL,
293 STRING_TOKEN (STR_GEN_TOO_MANY),
294 gShellAcpiViewHiiHandle,
295 L"acpiview"
296 );
297 ShellStatus = SHELL_INVALID_PARAMETER;
298 } else if (ShellCommandLineGetFlag (Package, L"-d") &&
299 !ShellCommandLineGetFlag (Package, L"-s"))
300 {
302 -1,
303 -1,
304 NULL,
305 STRING_TOKEN (STR_GEN_MISSING_OPTION),
306 gShellAcpiViewHiiHandle,
307 L"acpiview",
308 L"-s",
309 L"-d"
310 );
311 ShellStatus = SHELL_INVALID_PARAMETER;
312 } else {
313 // Turn on colour highlighting if requested
315
316 // Surpress consistency checking if requested
318
319 // Evaluate the parameters for mandatory ACPI table presence checks
321 MandatoryTableSpecStr = ShellCommandLineGetValue (Package, L"-r");
322
323 if (MandatoryTableSpecStr != NULL) {
324 SetMandatoryTableSpec (ShellHexStrToUintn (MandatoryTableSpecStr));
325 }
326
327 if (ShellCommandLineGetFlag (Package, L"-l")) {
329 } else {
330 SelectedTableName = ShellCommandLineGetValue (Package, L"-s");
331 if (SelectedTableName != NULL) {
332 SelectAcpiTable (SelectedTableName);
334
335 if (ShellCommandLineGetFlag (Package, L"-d")) {
336 // Create a temporary file to check if the media is writable.
337 CHAR16 FileNameBuffer[MAX_FILE_NAME_LEN];
339
341 FileNameBuffer,
342 sizeof (FileNameBuffer),
343 L".\\%s0000.tmp",
344 SelectedTableName
345 );
346
347 Status = ShellOpenFileByName (
348 FileNameBuffer,
349 &TmpDumpFileHandle,
350 EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE |
351 EFI_FILE_MODE_CREATE,
352 0
353 );
354
355 if (EFI_ERROR (Status)) {
356 ShellStatus = SHELL_INVALID_PARAMETER;
357 TmpDumpFileHandle = NULL;
359 -1,
360 -1,
361 NULL,
362 STRING_TOKEN (STR_GEN_READONLY_MEDIA),
363 gShellAcpiViewHiiHandle,
364 L"acpiview"
365 );
366 goto Done;
367 }
368
369 // Delete Temporary file.
370 ShellDeleteFile (&TmpDumpFileHandle);
371 } // -d
372 } // -s
373 }
374
375 // Parse ACPI Table information
376 Status = AcpiView (SystemTable);
377 if (EFI_ERROR (Status)) {
378 ShellStatus = SHELL_NOT_FOUND;
379 }
380 }
381 }
382
383Done:
384 if (Package != NULL) {
386 }
387
388 return ShellStatus;
389}
390
404EFIAPI
406 IN EFI_HANDLE ImageHandle,
407 IN EFI_SYSTEM_TABLE *SystemTable
408 )
409{
410 EFI_STATUS Status;
411
412 gShellAcpiViewHiiHandle = NULL;
413
414 // Check Shell Profile Debug1 bit of the profiles mask
415 if ((PcdGet8 (PcdShellProfileMask) & BIT1) == 0) {
416 return EFI_SUCCESS;
417 }
418
419 Status = RegisterAllParsers ();
420 if (EFI_ERROR (Status)) {
421 Print (L"acpiview: Error failed to register parser.\n");
422 return Status;
423 }
424
425 gShellAcpiViewHiiHandle = HiiAddPackages (
426 &gShellAcpiViewHiiGuid,
428 UefiShellAcpiViewCommandLibStrings,
429 NULL
430 );
431 if (gShellAcpiViewHiiHandle == NULL) {
432 return EFI_DEVICE_ERROR;
433 }
434
435 // Install our Shell command handler
437 L"acpiview",
440 0,
441 L"acpiview",
442 TRUE,
443 gShellAcpiViewHiiHandle,
444 STRING_TOKEN (STR_GET_HELP_ACPIVIEW)
445 );
446
447 return EFI_SUCCESS;
448}
449
457EFIAPI
459 IN EFI_HANDLE ImageHandle,
460 IN EFI_SYSTEM_TABLE *SystemTable
461 )
462{
463 if (gShellAcpiViewHiiHandle != NULL) {
464 HiiRemovePackages (gShellAcpiViewHiiHandle);
465 }
466
467 return EFI_SUCCESS;
468}
UINT64 UINTN
#define EFI_ACPI_6_2_SECONDARY_SYSTEM_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi62.h:2831
#define EFI_ACPI_6_2_FIXED_ACPI_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi62.h:2736
#define EFI_ACPI_6_2_EXTENDED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi62.h:2836
#define EFI_ACPI_6_2_BOOT_GRAPHICS_RESOURCE_TABLE_SIGNATURE
Definition: Acpi62.h:2706
#define EFI_ACPI_6_2_PCI_EXPRESS_MEMORY_MAPPED_CONFIGURATION_SPACE_BASE_ADDRESS_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi62.h:2906
#define EFI_ACPI_6_2_SYSTEM_RESOURCE_AFFINITY_TABLE_SIGNATURE
Definition: Acpi62.h:2826
#define EFI_ACPI_6_2_IO_REMAPPING_TABLE_SIGNATURE
Definition: Acpi62.h:2891
#define EFI_ACPI_6_2_SYSTEM_LOCALITY_INFORMATION_TABLE_SIGNATURE
Definition: Acpi62.h:2821
#define EFI_ACPI_6_2_DEBUG_PORT_2_TABLE_SIGNATURE
Definition: Acpi62.h:2851
#define EFI_ACPI_6_2_SERIAL_PORT_CONSOLE_REDIRECTION_TABLE_SIGNATURE
Definition: Acpi62.h:2936
#define EFI_ACPI_6_2_MULTIPLE_APIC_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi62.h:2696
#define EFI_ACPI_6_2_DIFFERENTIATED_SYSTEM_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi62.h:2716
#define EFI_ACPI_6_3_FIRMWARE_ACPI_CONTROL_STRUCTURE_SIGNATURE
Definition: Acpi63.h:2741
#define EFI_ACPI_6_4_PLATFORM_COMMUNICATIONS_CHANNEL_TABLE_SIGNATURE
Definition: Acpi64.h:3095
#define EFI_ACPI_6_4_GENERIC_TIMER_DESCRIPTION_TABLE_SIGNATURE
Definition: Acpi64.h:2930
#define EFI_ACPI_6_4_PROCESSOR_PROPERTIES_TOPOLOGY_TABLE_STRUCTURE_SIGNATURE
Definition: Acpi64.h:2970
#define EFI_ACPI_6_4_HETEROGENEOUS_MEMORY_ATTRIBUTE_TABLE_SIGNATURE
Definition: Acpi64.h:2940
#define EFI_ACPI_6_4_ARM_PERFORMANCE_MONITORING_UNIT_TABLE_SIGNATURE
Definition: Acpi64.h:2865
#define EFI_ACPI_6_4_ERROR_RECORD_SERIALIZATION_TABLE_SIGNATURE
Definition: Acpi64.h:2910
#define EFI_ACPI_6_5_WINDOWS_SMM_SECURITY_MITIGATION_TABLE_SIGNATURE
Definition: Acpi65.h:3337
#define EFI_ACPI_6_5_HIGH_PRECISION_EVENT_TIMER_TABLE_SIGNATURE
Definition: Acpi65.h:3227
#define EFI_ACPI_6_5_ACPI_RAS_FEATURE_TABLE_SIGNATURE
Definition: Acpi65.h:3152
#define EFI_ACPI_6_5_HARDWARE_ERROR_SOURCE_TABLE_SIGNATURE
Definition: Acpi65.h:3102
#define EFI_ACPI_6_5_ACPI_RAS2_FEATURE_TABLE_SIGNATURE
Definition: Acpi65.h:3147
#define EFI_ACPI_MEMORY_SYSTEM_RESOURCE_PARTITIONING_AND_MONITORING_TABLE_SIGNATURE
Definition: Acpi65.h:3347
#define EFI_ACPI_6_5_ERROR_INJECTION_TABLE_SIGNATURE
Definition: Acpi65.h:3072
VOID EFIAPI ParseAcpiXsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: XsdtParser.c:50
VOID EFIAPI ParseAcpiIort(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: IortParser.c:812
VOID EFIAPI ParseAcpiRasf(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: RasfParser.c:41
VOID EFIAPI ParseAcpiRas2(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: Ras2Parser.c:79
VOID EFIAPI ParseAcpiWsmt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: WsmtParser.c:138
VOID EFIAPI ParseAcpiPcct(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: PcctParser.c:566
VOID EFIAPI ParseAcpiMadt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: MadtParser.c:530
VOID EFIAPI ParseAcpiMcfg(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: McfgParser.c:52
VOID EFIAPI ParseAcpiRsdp(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: RsdpParser.c:126
VOID EFIAPI ParseAcpiFacs(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: FacsParser.c:52
VOID EFIAPI ParseAcpiMpam(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: MpamParser.c:1197
VOID EFIAPI ParseAcpiHmat(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: HmatParser.c:573
VOID EFIAPI ParseAcpiDsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: DsdtParser.c:30
VOID EFIAPI ParseAcpiEinj(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: EinjParser.c:305
VOID EFIAPI ParseAcpiGtdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: GtdtParser.c:270
#define RSDP_TABLE_INFO
Definition: AcpiParser.h:19
VOID EFIAPI ParseAcpiSsdt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: SsdtParser.c:30
VOID EFIAPI ParseAcpiSrat(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: SratParser.c:364
VOID EFIAPI ParseAcpiFadt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: FadtParser.c:276
VOID EFIAPI ParseAcpiDbg2(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: Dbg2Parser.c:232
VOID EFIAPI ParseAcpiSlit(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: SlitParser.c:52
VOID EFIAPI ParseAcpiBgrt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: BgrtParser.c:46
VOID EFIAPI ParseAcpiHest(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: HestParser.c:748
VOID EFIAPI ParseAcpiPptt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: PpttParser.c:486
VOID EFIAPI ParseAcpiAest(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: AestParser.c:692
VOID EFIAPI ParseAcpiErst(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: ErstParser.c:244
VOID EFIAPI ParseAcpiHpet(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: HpetParser.c:214
VOID EFIAPI ParseAcpiApmt(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: ApmtParser.c:62
VOID EFIAPI ParseAcpiSpcr(IN BOOLEAN Trace, IN UINT8 *Ptr, IN UINT32 AcpiTableLength, IN UINT8 AcpiTableRevision)
Definition: SpcrParser.c:131
EFI_STATUS EFIAPI RegisterParser(IN UINT32 Signature, IN PARSE_ACPI_TABLE_PROC ParserProc)
EFI_STATUS EFIAPI AcpiView(IN EFI_SYSTEM_TABLE *SystemTable)
Definition: AcpiView.c:191
VOID EFIAPI SetMandatoryTableSpec(UINTN Spec)
VOID EFIAPI SetMandatoryTableValidate(BOOLEAN Validate)
VOID EFIAPI SetColourHighlighting(BOOLEAN Highlight)
VOID EFIAPI SelectAcpiTable(IN CONST CHAR16 *TableName)
VOID EFIAPI SetReportOption(EREPORT_OPTION ReportType)
VOID EFIAPI AcpiConfigSetDefaults(VOID)
VOID EFIAPI SetConsistencyChecking(BOOLEAN ConsistencyChecking)
@ ReportTableList
Report List of tables.
@ ReportSelected
Report Selected table.
@ ReportDumpBinFile
Dump selected table to a file.
#define EFI_ACPI_6_3_ARM_ERROR_SOURCE_TABLE_SIGNATURE
VOID EFIAPI FreePool(IN VOID *Buffer)
EFI_HII_HANDLE EFIAPI HiiAddPackages(IN CONST EFI_GUID *PackageListGuid, IN EFI_HANDLE DeviceHandle OPTIONAL,...)
Definition: HiiLib.c:141
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
Definition: HiiLib.c:253
UINTN EFIAPI UnicodeSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
Definition: PrintLib.c:408
#define NULL
Definition: Base.h:319
#define CONST
Definition: Base.h:259
#define STATIC
Definition: Base.h:264
#define TRUE
Definition: Base.h:301
#define IN
Definition: Base.h:279
SHELL_STATUS
Definition: Shell.h:21
@ SHELL_SUCCESS
Definition: Shell.h:25
@ SHELL_NOT_FOUND
Definition: Shell.h:101
@ SHELL_INVALID_PARAMETER
Definition: Shell.h:35
#define PcdGet8(TokenName)
Definition: PcdLib.h:336
RETURN_STATUS EFIAPI ShellCommandRegisterCommandName(IN CONST CHAR16 *CommandString, IN SHELL_RUN_COMMAND CommandHandler, IN SHELL_GET_MAN_FILENAME GetManFileName, IN UINT32 ShellMinSupportLevel, IN CONST CHAR16 *ProfileName, IN CONST BOOLEAN CanAffectLE, IN CONST EFI_HII_HANDLE HiiHandle, IN CONST EFI_STRING_ID ManFormatHelp)
CONST CHAR16 *EFIAPI ShellCommandLineGetValue(IN CONST LIST_ENTRY *CheckPackage, IN CHAR16 *KeyString)
EFI_STATUS EFIAPI ShellDeleteFile(IN SHELL_FILE_HANDLE *FileHandle)
Definition: UefiShellLib.c:992
#define ShellCommandLineParse(CheckList, CheckPackage, ProblemParam, AutoPageBreak)
Make it easy to upgrade from older versions of the shell library.
Definition: ShellLib.h:755
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
BOOLEAN EFIAPI ShellCommandLineGetFlag(IN CONST LIST_ENTRY *CONST CheckPackage, IN CONST CHAR16 *CONST KeyString)
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
Definition: ShellLib.h:700
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699
EFI_STATUS EFIAPI ShellOpenFileByName(IN CONST CHAR16 *FileName, OUT SHELL_FILE_HANDLE *FileHandle, IN UINT64 OpenMode, IN UINT64 Attributes)
Definition: UefiShellLib.c:720
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
UINTN EFIAPI ShellHexStrToUintn(IN CONST CHAR16 *String)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellWriteFile(IN SHELL_FILE_HANDLE FileHandle, IN OUT UINTN *BufferSize, IN VOID *Buffer)
Definition: UefiShellLib.c:947
EFI_STATUS EFIAPI ShellCloseFile(IN SHELL_FILE_HANDLE *FileHandle)
Definition: UefiShellLib.c:969
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
EFI_HANDLE gImageHandle
#define STRING_TOKEN(t)
VOID * EFI_HII_HANDLE
UINTN EFIAPI Print(IN CONST CHAR16 *Format,...)
Definition: UefiLibPrint.c:113
EFI_STATUS EFIAPI UefiShellAcpiViewCommandLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS EFIAPI UefiShellAcpiViewCommandLibDestructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS RegisterAllParsers()
STATIC CONST ACPI_TABLE_PARSER ParserList[]
CONST CHAR16 *EFIAPI ShellCommandGetManFileNameAcpiView(VOID)
STATIC CONST SHELL_PARAM_ITEM ParamList[]
SHELL_STATUS EFIAPI ShellCommandRunAcpiView(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
UINTN EFIAPI ShellDumpBufferToFile(IN CONST CHAR16 *FileNameBuffer, IN CONST VOID *Buffer, IN CONST UINTN BufferSize)