]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciDriverOverride.h
PEI Core: Remove unused variable in PeiLoadImageLoadImage function.
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / PciBusDxe / PciDriverOverride.h
CommitLineData
97404058 1/** @file\r
8e8227d1 2 Functions declaration for Bus Specific Driver Override protoocl.\r
ead42efc 3\r
8e8227d1 4Copyright (c) 2006 - 2009, Intel Corporation\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
ead42efc 12\r
3db51098 13**/\r
ead42efc 14\r
ead42efc 15\r
eeefcb9d 16#ifndef _EFI_PCI_DRIVER_OVERRRIDE_H_\r
17#define _EFI_PCI_DRIVER_OVERRRIDE_H_\r
ead42efc 18\r
f02bd376 19#define DRIVER_OVERRIDE_SIGNATURE SIGNATURE_32 ('d', 'r', 'o', 'v')\r
ead42efc 20\r
8e8227d1 21//\r
22// PCI driver override driver image list\r
23//\r
ead42efc 24typedef struct {\r
25 UINT32 Signature;\r
26 LIST_ENTRY Link;\r
27 EFI_HANDLE DriverImageHandle;\r
28} PCI_DRIVER_OVERRIDE_LIST;\r
29\r
30\r
31#define DRIVER_OVERRIDE_FROM_LINK(a) \\r
32 CR (a, PCI_DRIVER_OVERRIDE_LIST, Link, DRIVER_OVERRIDE_SIGNATURE)\r
33\r
a3b8e257 34/**\r
97404058 35 Initializes a PCI Driver Override Instance.\r
a3b8e257 36\r
8e8227d1 37 @param PciIoDevice PCI Device instance.\r
ead42efc 38\r
a3b8e257 39**/\r
8e6b0dcb 40VOID\r
ead42efc 41InitializePciDriverOverrideInstance (\r
8e8227d1 42 IN OUT PCI_IO_DEVICE *PciIoDevice\r
ed66e1bc 43 );\r
ead42efc 44\r
a3b8e257 45/**\r
97404058 46 Add an overriding driver image.\r
8e8227d1 47\r
97404058 48 @param PciIoDevice Instance of PciIo device.\r
49 @param DriverImageHandle new added driver image.\r
8e8227d1 50\r
51 @retval EFI_SUCCESS Successfully added driver.\r
52 @retval EFI_OUT_OF_RESOURCES No memory resource for new driver instance.\r
53 @retval other Some error occurred when locating gEfiLoadedImageProtocolGuid.\r
54\r
a3b8e257 55**/\r
ead42efc 56EFI_STATUS\r
57AddDriver (\r
58 IN PCI_IO_DEVICE *PciIoDevice,\r
59 IN EFI_HANDLE DriverImageHandle\r
ed66e1bc 60 );\r
ead42efc 61\r
ead42efc 62\r
a3b8e257 63/**\r
8e8227d1 64 Uses a bus specific algorithm to retrieve a driver image handle for a controller.\r
65\r
66 @param This A pointer to the EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL instance.\r
67 @param DriverImageHandle On input, a pointer to the previous driver image handle returned\r
68 by GetDriver(). On output, a pointer to the next driver\r
69 image handle. Passing in a NULL, will return the first driver\r
70 image handle.\r
71\r
72 @retval EFI_SUCCESS A bus specific override driver is returned in DriverImageHandle.\r
73 @retval EFI_NOT_FOUND The end of the list of override drivers was reached.\r
74 A bus specific override driver is not returned in DriverImageHandle.\r
75 @retval EFI_INVALID_PARAMETER DriverImageHandle is not a handle that was returned on a\r
76 previous call to GetDriver().\r
77\r
bcd70414 78**/\r
ead42efc 79EFI_STATUS\r
80EFIAPI\r
81GetDriver (\r
82 IN EFI_BUS_SPECIFIC_DRIVER_OVERRIDE_PROTOCOL *This,\r
83 IN OUT EFI_HANDLE *DriverImageHandle\r
ed66e1bc 84 );\r
ead42efc 85\r
86#endif\r