PciDriverOverride.c revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter Functions implementation for Bus Specific Driver Override protoocl.
940d71d237794874e18a0eb72f6564821a823517eschrockCopyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterThis program and the accompanying materials
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterare licensed and made available under the terms and conditions of the BSD License
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterwhich accompanies this distribution. The full text of the license may be found at
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterTHE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterWITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter Initializes a PCI Driver Override Instance.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter @param PciIoDevice PCI Device instance.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter PciIoDevice->PciDriverOverride.GetDriver = GetDriver;
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter Uses a bus specific algorithm to retrieve a driver image handle for a controller.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter @param This A pointer to the EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL instance.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter @param DriverImageHandle On input, a pointer to the previous driver image handle returned
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter by GetDriver(). On output, a pointer to the next driver
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter image handle. Passing in a NULL, will return the first driver
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter image handle.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter @retval EFI_SUCCESS A bus specific override driver is returned in DriverImageHandle.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter @retval EFI_NOT_FOUND The end of the list of override drivers was reached.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter A bus specific override driver is not returned in DriverImageHandle.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter @retval EFI_INVALID_PARAMETER DriverImageHandle is not a handle that was returned on a
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter previous call to GetDriver().
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This,
return EFI_SUCCESS;
return EFI_NOT_FOUND;
return EFI_SUCCESS;
return EFI_INVALID_PARAMETER;
Status = gBS->HandleProtocol (DriverImageHandle, &gEfiLoadedImageProtocolGuid, (VOID **) &LoadedImage);
return Status;
return EFI_OUT_OF_RESOURCES;
return EFI_SUCCESS;