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

Go to the source code of this file.

Macros

#define MAX_LEN_DRIVER_NAME   35
 

Functions

CHAR16 * GetDevicePathTextForHandle (IN EFI_HANDLE TheHandle)
 
BOOLEAN ReturnDriverConfig (IN CONST EFI_HANDLE TheHandle)
 
BOOLEAN ReturnDriverDiag (IN CONST EFI_HANDLE TheHandle)
 
UINT32 ReturnDriverVersion (IN CONST EFI_HANDLE TheHandle)
 
CHAR16 * GetImageNameFromHandle (IN CONST EFI_HANDLE Handle)
 
SHELL_STATUS EFIAPI ShellCommandRunDrivers (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for Drivers shell Driver1 function.

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

Definition in file Drivers.c.

Macro Definition Documentation

◆ MAX_LEN_DRIVER_NAME

#define MAX_LEN_DRIVER_NAME   35

Definition at line 12 of file Drivers.c.

Function Documentation

◆ GetDevicePathTextForHandle()

CHAR16 * GetDevicePathTextForHandle ( IN EFI_HANDLE  TheHandle)

Get a device path (in text format) for a given handle.

Parameters
[in]TheHandleThe handle to get the device path for.
Return values
NULLAn error occurred.
Returns
A pointer to the driver path as a string. The callee must free this memory.

Definition at line 30 of file Drivers.c.

◆ GetImageNameFromHandle()

CHAR16 * GetImageNameFromHandle ( IN CONST EFI_HANDLE  Handle)

Get image name from Image Handle.

Parameters
[in]HandleImage Handle
Returns
A pointer to the image name as a string.

Definition at line 175 of file Drivers.c.

◆ ReturnDriverConfig()

BOOLEAN ReturnDriverConfig ( IN CONST EFI_HANDLE  TheHandle)

Determine if the given handle has Driver Configuration protocol.

Parameters
[in]TheHandleThe handle to the driver to test.
Return values
TRUEThe driver does have Driver Configuration.
FALSEThe driver does not have Driver Configuration.

Definition at line 99 of file Drivers.c.

◆ ReturnDriverDiag()

BOOLEAN ReturnDriverDiag ( IN CONST EFI_HANDLE  TheHandle)

Determine if the given handle has DriverDiagnostics protocol.

Parameters
[in]TheHandleThe handle to the driver to test.
Return values
TRUEThe driver does have Driver Diasgnostics.
FALSEThe driver does not have Driver Diagnostics.

Definition at line 122 of file Drivers.c.

◆ ReturnDriverVersion()

UINT32 ReturnDriverVersion ( IN CONST EFI_HANDLE  TheHandle)

Finds and returns the version of the driver specified by TheHandle.

Parameters
[in]TheHandleThe driver handle to get the version of.
Returns
The version of the driver.
Return values
0xFFFFFFFFAn error ocurred.

Definition at line 148 of file Drivers.c.

◆ ShellCommandRunDrivers()

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

Function for 'drivers' command.

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

Definition at line 267 of file Drivers.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-sfo", 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 14 of file Drivers.c.