]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueUefiDriverModelLib.h
Sync all bug fixes between EDK1.04 and EDK1.06 into EdkCompatibilityPkg.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Library / EdkIIGlueUefiDriverModelLib.h
CommitLineData
3eb9473e 1/*++\r
2\r
3e99020d 3Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
2c7e5c2f 4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 EdkIIGlueUefiDriverModelLib.h\r
16 \r
17Abstract: \r
18\r
19 Public header file for UEFI Driver Model Lib\r
20\r
21--*/\r
22\r
23#ifndef __EDKII_GLUE_UEFI_DRIVER_MODEL_LIB_H__\r
24#define __EDKII_GLUE_UEFI_DRIVER_MODEL_LIB_H__\r
25\r
26//\r
27// Declare bitmask values for the protocols that are enabled \r
28//\r
29#define UEFI_DRIVER_MODEL_LIBRARY_COMPONENT_NAME_PROTOCOL_ENABLED 0x01\r
30#define UEFI_DRIVER_MODEL_LIBRARY_DRIVER_DIAGNOSTICS_PROTOCOL_ENABLED 0x02\r
31#define UEFI_DRIVER_MODEL_LIBRARY_DRIVER_CONFIGURATION_PROTOCOL_ENABLED 0x04\r
32\r
33//\r
34// Data structure that declares pointers to the Driver Model \r
35// Protocols.\r
36//\r
3e99020d
LG
37typedef struct { \r
38 const EFI_DRIVER_BINDING_PROTOCOL *DriverBinding;\r
39 const EFI_COMPONENT_NAME_PROTOCOL *ComponentName;\r
40 const EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration;\r
41 const EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics;\r
42 const EFI_COMPONENT_NAME2_PROTOCOL *ComponentName2;\r
43 const EFI_DRIVER_CONFIGURATION2_PROTOCOL *DriverConfiguration2;\r
44 const EFI_DRIVER_DIAGNOSTICS2_PROTOCOL *DriverDiagnostics2;\r
3eb9473e 45} EFI_DRIVER_MODEL_PROTOCOL_LIST;\r
46\r
47//\r
48// UEFI Driver Model Protocols arrary\r
49//\r
50extern const EFI_DRIVER_MODEL_PROTOCOL_LIST _gDriverModelProtocolList[];\r
51\r
52#endif\r