TianoCore EDK2 master
|
#include "PciBus.h"
Go to the source code of this file.
Functions | |
VOID | InitializePciDriverOverrideInstance (IN OUT PCI_IO_DEVICE *PciIoDevice) |
EFI_HANDLE | LocateImageHandle (IN EFI_DEVICE_PATH_PROTOCOL *ImagePath) |
EFI_STATUS EFIAPI | GetDriver (IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This, IN OUT EFI_HANDLE *DriverImageHandle) |
EFI_STATUS | AddDriver (IN PCI_IO_DEVICE *PciIoDevice, IN EFI_HANDLE DriverImageHandle, IN EFI_DEVICE_PATH_PROTOCOL *DriverImagePath) |
Functions implementation 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.c.
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.
EFI_HANDLE LocateImageHandle | ( | IN EFI_DEVICE_PATH_PROTOCOL * | ImagePath | ) |
Find the image handle whose path equals to ImagePath.
ImagePath | Image path. |
Definition at line 33 of file PciDriverOverride.c.