OpenCore
1.0.4
OpenCore Bootloader
|
#include <Library/MemoryAllocationLib.h>
#include <Library/DebugLib.h>
#include <Library/OcDriverConnectionLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Protocol/PlatformDriverOverride.h>
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS EFIAPI | OcPlatformGetDriver (IN EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN OUT EFI_HANDLE *DriverImageHandle) |
STATIC EFI_STATUS EFIAPI | OcPlatformGetDriverPath (IN EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN OUT EFI_DEVICE_PATH_PROTOCOL **DriverImagePath) |
STATIC EFI_STATUS EFIAPI | OcPlatformDriverLoaded (IN EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_DEVICE_PATH_PROTOCOL *DriverImagePath, IN EFI_HANDLE DriverImageHandle) |
EFI_STATUS | OcRegisterDriversToHighestPriority (IN EFI_HANDLE *PriorityDrivers) |
EFI_STATUS | OcConnectDrivers (VOID) |
Variables | |
STATIC EFI_HANDLE * | mPriorityDrivers |
STATIC EFI_PLATFORM_DRIVER_OVERRIDE_GET_DRIVER | mOrgPlatformGetDriver |
STATIC EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL | mOcPlatformDriverOverrideProtocol |
Copyright (C) 2020, 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 OcDriverConnectionLib.c.
EFI_STATUS OcConnectDrivers | ( | VOID | ) |
Connect effectively all drivers to effectively all handles.
EFI_SUCCESS | on success. |
Definition at line 199 of file OcDriverConnectionLib.c.
STATIC EFI_STATUS EFIAPI OcPlatformDriverLoaded | ( | IN EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | DriverImagePath, | ||
IN EFI_HANDLE | DriverImageHandle ) |
Definition at line 147 of file OcDriverConnectionLib.c.
STATIC EFI_STATUS EFIAPI OcPlatformGetDriver | ( | IN EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN OUT EFI_HANDLE * | DriverImageHandle ) |
Definition at line 34 of file OcDriverConnectionLib.c.
STATIC EFI_STATUS EFIAPI OcPlatformGetDriverPath | ( | IN EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL * | This, |
IN EFI_HANDLE | ControllerHandle, | ||
IN OUT EFI_DEVICE_PATH_PROTOCOL ** | DriverImagePath ) |
Definition at line 135 of file OcDriverConnectionLib.c.
EFI_STATUS OcRegisterDriversToHighestPriority | ( | IN EFI_HANDLE * | PriorityDrivers | ) |
Registers given PriorityDrivers to highest priority during connecting controllers. Does this by installing custom EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL or by overriding existing EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL.GetDriver.
[in] | PriorityDrivers | NULL-terminated list of drivers to prioritise. |
EFI_SUCCESS | on successful override or installation. |
Definition at line 166 of file OcDriverConnectionLib.c.
STATIC EFI_PLATFORM_DRIVER_OVERRIDE_PROTOCOL mOcPlatformDriverOverrideProtocol |
Definition at line 159 of file OcDriverConnectionLib.c.
STATIC EFI_PLATFORM_DRIVER_OVERRIDE_GET_DRIVER mOrgPlatformGetDriver |
Definition at line 29 of file OcDriverConnectionLib.c.
STATIC EFI_HANDLE* mPriorityDrivers |
Definition at line 24 of file OcDriverConnectionLib.c.