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

Go to the source code of this file.

Functions

EFI_STATUS ShellConnectDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *DevicePathToConnect)
 
EFI_STATUS ShellConnectPciRootBridge (VOID)
 
EFI_STATUS ConnectControllers (IN CONST EFI_HANDLE ControllerHandle OPTIONAL, IN CONST EFI_HANDLE DriverHandle OPTIONAL, IN CONST BOOLEAN Recursive, IN CONST BOOLEAN Output, IN CONST BOOLEAN AlwaysOutput)
 
EFI_STATUS ShellConnectFromDevPaths (IN CONST CHAR16 *Key)
 
EFI_STATUS ConvertAndConnectControllers (IN EFI_HANDLE Handle1 OPTIONAL, IN EFI_HANDLE Handle2 OPTIONAL, IN CONST BOOLEAN Recursive, IN CONST BOOLEAN Output)
 
SHELL_STATUS EFIAPI ShellCommandRunConnect (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for connect 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 Connect.c.

Function Documentation

◆ ConnectControllers()

EFI_STATUS ConnectControllers ( IN CONST EFI_HANDLE ControllerHandle  OPTIONAL,
IN CONST EFI_HANDLE DriverHandle  OPTIONAL,
IN CONST BOOLEAN  Recursive,
IN CONST BOOLEAN  Output,
IN CONST BOOLEAN  AlwaysOutput 
)

Connect controller(s) and driver(s).

Parameters
[in]ControllerHandleThe handle to the controller. Should have driver binding on it.
[in]DriverHandleThe handle to the driver. Should have driver binding.
[in]RecursiveTRUE to connect recursively, FALSE otherwise.
[in]OutputTRUE to have info on the screen, FALSE otherwise.
[in]AlwaysOutputOverride Output for errors.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 107 of file Connect.c.

◆ ConvertAndConnectControllers()

EFI_STATUS ConvertAndConnectControllers ( IN EFI_HANDLE Handle1  OPTIONAL,
IN EFI_HANDLE Handle2  OPTIONAL,
IN CONST BOOLEAN  Recursive,
IN CONST BOOLEAN  Output 
)

Convert the handle identifiers from strings and then connect them.

One of them should have driver binding and either can be NULL.

Parameters
[in]Handle1The first handle.
[in]Handle2The second handle.
[in]RecursiveTRUE to do connect recursively. FALSE otherwise.
[in]OutputTRUE to have output to screen. FALSE otherwise.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 354 of file Connect.c.

◆ ShellCommandRunConnect()

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

Function for 'connect' command.

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

Definition at line 409 of file Connect.c.

◆ ShellConnectDevicePath()

EFI_STATUS ShellConnectDevicePath ( IN EFI_DEVICE_PATH_PROTOCOL DevicePathToConnect)

Create all handles associate with every device path node.

Parameters
DevicePathToConnectThe device path which will be connected.
Return values
EFI_SUCCESSAll handles associate with every device path node have been created.
EFI_INVALID_PARAMETERDevicePathToConnect is NULL.
EFI_NOT_FOUNDCreate the handle associate with one device path node failed

Definition at line 25 of file Connect.c.

◆ ShellConnectFromDevPaths()

EFI_STATUS ShellConnectFromDevPaths ( IN CONST CHAR16 *  Key)

Do a connect from an EFI variable via it's key name.

Parameters
[in]KeyThe name of the EFI Variable.
Return values
EFI_SUCCESSThe operation was successful.

Definition at line 193 of file Connect.c.

◆ ShellConnectPciRootBridge()

EFI_STATUS ShellConnectPciRootBridge ( VOID  )

Connect drivers for PCI root bridge.

Return values
EFI_SUCCESSConnect drivers successfully.
EFI_NOT_FOUNDCannot find PCI root bridge device.

Definition at line 64 of file Connect.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-c", TypeFlag },
{ L"-r", TypeFlag },
{ NULL, TypeMax }
}
#define NULL
Definition: Base.h:319
@ TypeFlag
A flag that is present or not present only (IE "-a").
Definition: ShellLib.h:699

Definition at line 395 of file Connect.c.