TianoCore EDK2 master
|
Go to the source code of this file.
Data Structures | |
struct | PCI_DRIVER_OVERRIDE_LIST |
Macros | |
#define | DRIVER_OVERRIDE_SIGNATURE SIGNATURE_32 ('d', 'r', 'o', 'v') |
#define | DRIVER_OVERRIDE_FROM_LINK(a) CR (a, PCI_DRIVER_OVERRIDE_LIST, Link, DRIVER_OVERRIDE_SIGNATURE) |
Functions | |
VOID | InitializePciDriverOverrideInstance (IN OUT PCI_IO_DEVICE *PciIoDevice) |
EFI_STATUS | AddDriver (IN PCI_IO_DEVICE *PciIoDevice, IN EFI_HANDLE DriverImageHandle, IN EFI_DEVICE_PATH_PROTOCOL *DriverImagePath) |
EFI_STATUS EFIAPI | GetDriver (IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This, IN OUT EFI_HANDLE *DriverImageHandle) |
Functions declaration for Bus Specific Driver Override protocol.
Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PciDriverOverride.h.
#define DRIVER_OVERRIDE_FROM_LINK | ( | a | ) | CR (a, PCI_DRIVER_OVERRIDE_LIST, Link, DRIVER_OVERRIDE_SIGNATURE) |
Definition at line 24 of file PciDriverOverride.h.
#define DRIVER_OVERRIDE_SIGNATURE SIGNATURE_32 ('d', 'r', 'o', 'v') |
Definition at line 12 of file PciDriverOverride.h.
EFI_STATUS AddDriver | ( | IN PCI_IO_DEVICE * | PciIoDevice, |
IN EFI_HANDLE | DriverImageHandle, | ||
IN EFI_DEVICE_PATH_PROTOCOL * | DriverImagePath | ||
) |
Add an overriding driver image.
PciIoDevice | Instance of PciIo device. |
DriverImageHandle | Image handle of newly added driver image. |
DriverImagePath | Device path of newly added driver image. |
EFI_SUCCESS | Successfully added driver. |
EFI_OUT_OF_RESOURCES | No memory resource for new driver instance. |
other | Some error occurred when locating gEfiLoadedImageProtocolGuid. |
Definition at line 163 of file PciDriverOverride.c.
EFI_STATUS EFIAPI GetDriver | ( | IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL * | This, |
IN OUT EFI_HANDLE * | DriverImageHandle | ||
) |
Uses a bus specific algorithm to retrieve a driver image handle for a controller.
This | A pointer to the EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL instance. |
DriverImageHandle | On input, a pointer to the previous driver image handle returned by GetDriver(). On output, a pointer to the next driver image handle. Passing in a NULL, will return the first driver image handle. |
EFI_SUCCESS | A bus specific override driver is returned in DriverImageHandle. |
EFI_NOT_FOUND | The end of the list of override drivers was reached. A bus specific override driver is not returned in DriverImageHandle. |
EFI_INVALID_PARAMETER | DriverImageHandle is not a handle that was returned on a previous call to GetDriver(). |
Definition at line 96 of file PciDriverOverride.c.
VOID InitializePciDriverOverrideInstance | ( | IN OUT PCI_IO_DEVICE * | PciIoDevice | ) |
Initializes a PCI Driver Override Instance.
PciIoDevice | PCI Device instance. |
Definition at line 18 of file PciDriverOverride.c.