OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
ReloadOptionRoms.c File Reference
#include <Uefi.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/DevicePathLib.h>
#include <Library/IoLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcDeviceMiscLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <IndustryStandard/Pci23.h>
#include <IndustryStandard/PeImage2.h>
#include <Protocol/Decompress.h>
#include <Protocol/PciIo.h>
#include "HandleParsingMin.h"

Go to the source code of this file.

Functions

STATIC EFI_STATUS ReloadPciRom (IN VOID *RomBar, IN UINTN RomSize, IN CONST CHAR16 *FileName)
 
EFI_STATUS OcReloadOptionRoms (VOID)
 

Detailed Description

Copyright (c) 2020 Dayo Akanji (sf.net/u/dakanji/profile). Portions Copyright (c) 2020 Joe van Tunen (joevt.nosp@m.@sha.nosp@m.w.ca). Portions Copyright (c) 2004-2008 The Intel Corporation. Copyright (C) 2021, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file ReloadOptionRoms.c.

Function Documentation

◆ OcReloadOptionRoms()

EFI_STATUS OcReloadOptionRoms ( VOID )

Reload Option ROMs.

Return values
EFI_SUCCESSon success.

Definition at line 203 of file ReloadOptionRoms.c.

◆ ReloadPciRom()

STATIC EFI_STATUS ReloadPciRom ( IN VOID * RomBar,
IN UINTN RomSize,
IN CONST CHAR16 * FileName )
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.
EFI_VOLUME_CORRUPTEDInconsistent signatures.
Othervalue Unknown error.

Definition at line 49 of file ReloadOptionRoms.c.