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

Go to the source code of this file.

Functions

EFI_STATUS LoadPciRomConnectAllDriversToAllControllers (VOID)
 
EFI_STATUS LoadEfiDriversFromRomImage (VOID *RomBar, UINTN RomSize, CONST CHAR16 *FileName)
 
SHELL_STATUS EFIAPI ShellCommandRunLoadPciRom (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

STATIC CONST SHELL_PARAM_ITEM ParamList []
 

Detailed Description

Main file for LoadPciRom shell Debug1 function.

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

Definition in file LoadPciRom.c.

Function Documentation

◆ LoadEfiDriversFromRomImage()

EFI_STATUS LoadEfiDriversFromRomImage ( VOID *  RomBar,
UINTN  RomSize,
CONST CHAR16 *  FileName 
)

Command entry point.

Parameters
[in]RomBarThe Rom Base address.
[in]RomSizeThe Rom size.
[in]FileNameThe file name.
Return values
EFI_SUCCESSThe command completed successfully.
EFI_INVALID_PARAMETERCommand usage error.
EFI_UNSUPPORTEDProtocols unsupported.
EFI_OUT_OF_RESOURCESOut of memory.
Othervalue Unknown error.

Definition at line 203 of file LoadPciRom.c.

◆ LoadPciRomConnectAllDriversToAllControllers()

EFI_STATUS LoadPciRomConnectAllDriversToAllControllers ( VOID  )

Connects all available drives and controllers.

Return values
EFI_SUCCESSThe operation was successful.
EFI_ABORTEDThe abort mechanism was received.

Definition at line 399 of file LoadPciRom.c.

◆ ShellCommandRunLoadPciRom()

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

Function for 'loadpcirom' command.

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

Definition at line 60 of file LoadPciRom.c.

Variable Documentation

◆ ParamList

Initial value:
= {
{ L"-nc", 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 47 of file LoadPciRom.c.