TianoCore EDK2 master
Loading...
Searching...
No Matches
DrvDiag.c File Reference

Go to the source code of this file.

Enumerations

enum  DRV_DIAG_TEST_MODE {
  TestModeStandard = EfiDriverDiagnosticTypeStandard , TestModeExtended = EfiDriverDiagnosticTypeExtended , TestModeManufacturing = EfiDriverDiagnosticTypeManufacturing , TestModeList ,
  TestModeMax
}
 

Functions

EFI_STATUS DoDiagnostics (IN CONST DRV_DIAG_TEST_MODE Mode, IN CONST CHAR8 *Lang, IN CONST BOOLEAN AllChilds, IN CONST EFI_HANDLE DriverHandle, IN CONST EFI_HANDLE ControllerHandle, IN CONST EFI_HANDLE ChildHandle)
 
SHELL_STATUS EFIAPI ShellCommandRunDrvDiag (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST EFI_GUIDDiagGuidList [] = { &gEfiDriverDiagnosticsProtocolGuid, &gEfiDriverDiagnostics2ProtocolGuid, NULL }
 
STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for DrvDiag shell Driver1 function.

(C) Copyright 2015 Hewlett-Packard Development Company, L.P.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DrvDiag.c.

Enumeration Type Documentation

◆ DRV_DIAG_TEST_MODE

enum DRV_DIAG_TEST_MODE

Definition at line 16 of file DrvDiag.c.

Function Documentation

◆ DoDiagnostics()

EFI_STATUS DoDiagnostics ( IN CONST DRV_DIAG_TEST_MODE  Mode,
IN CONST CHAR8 *  Lang,
IN CONST BOOLEAN  AllChilds,
IN CONST EFI_HANDLE  DriverHandle,
IN CONST EFI_HANDLE  ControllerHandle,
IN CONST EFI_HANDLE  ChildHandle 
)

Do the diagnostics call for some set of handles.

Parameters
[in]ModeThe type of diagnostic test to run.
[in]LangThe language code to use.
[in]AllChildsShould the test be on all children.
[in]DriverHandleThe driver handle to test with.
[in]ControllerHandleThe specific controller handle to test.
[in]ChildHandleThe specific child handle to test.
Return values
EFI_SUCCESSThe operation was successful.
EFI_INVALID_PARAMETERA parameter had an invalid value.
EFI_NOT_FOUNDNo diagnostic handle could be found.

Definition at line 39 of file DrvDiag.c.

◆ ShellCommandRunDrvDiag()

SHELL_STATUS EFIAPI ShellCommandRunDrvDiag ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Function for 'drvdiag' command.

Parameters
[in]ImageHandleHandle to the Image (NULL if Internal).
[in]SystemTablePointer to the System Table (NULL if Internal).

Definition at line 349 of file DrvDiag.c.

Variable Documentation

◆ DiagGuidList

STATIC CONST EFI_GUID* DiagGuidList[] = { &gEfiDriverDiagnosticsProtocolGuid, &gEfiDriverDiagnostics2ProtocolGuid, NULL }

Definition at line 12 of file DrvDiag.c.

◆ ParamList

Initial value:
= {
{ L"-c", TypeFlag },
{ L"-s", TypeFlag },
{ L"-e", TypeFlag },
{ L"-m", TypeFlag },
{ L"-l", TypeValue },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ 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

Definition at line 332 of file DrvDiag.c.