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

Go to the source code of this file.

Functions

EFI_STATUS GetDeviceHandleInfo (IN EFI_HANDLE TheHandle, IN OUT CHAR16 *Type, IN OUT BOOLEAN *Cfg, IN OUT BOOLEAN *Diag, IN OUT UINTN *Parents, IN OUT UINTN *Devices, IN OUT UINTN *Children, OUT CHAR16 **Name, IN CONST CHAR8 *Language)
 
SHELL_STATUS EFIAPI ShellCommandRunDevices (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for devices shell Driver1 function.

(C) Copyright 2012-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 Devices.c.

Function Documentation

◆ GetDeviceHandleInfo()

EFI_STATUS GetDeviceHandleInfo ( IN EFI_HANDLE  TheHandle,
IN OUT CHAR16 *  Type,
IN OUT BOOLEAN *  Cfg,
IN OUT BOOLEAN *  Diag,
IN OUT UINTN Parents,
IN OUT UINTN Devices,
IN OUT UINTN Children,
OUT CHAR16 **  Name,
IN CONST CHAR8 *  Language 
)

Get lots of info about a device from its handle.

Parameters
[in]TheHandleThe device handle to get info on.
[in,out]TypeOn successful return R, B, or D (root, bus, or device) will be placed in this buffer.
[in,out]CfgOn successful return this buffer will be TRUE if the handle has configuration, FALSE otherwise.
[in,out]DiagOn successful return this buffer will be TRUE if the handle has disgnostics, FALSE otherwise.
[in,out]ParentsOn successful return this buffer will be contain the number of parent handles.
[in,out]DevicesOn successful return this buffer will be contain the number of devices controlled.
[in,out]ChildrenOn successful return this buffer will be contain the number of child handles.
[out]NameThe pointer to a buffer that will be allocated and contain the string name of the handle. The caller must free this memory.
[in]LanguageThe language code as defined by the UEFI spec.
Return values
EFI_SUCCESSThe info is there.
EFI_INVALID_PARAMETERA parameter was invalid.

EFI_ERROR(Status) &&

Definition at line 39 of file Devices.c.

◆ ShellCommandRunDevices()

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

Function for 'devices' command.

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

Definition at line 129 of file Devices.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 115 of file Devices.c.