]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004 - 2007, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | EdkIIGlueUefiDriverModelLib.h\r | |
16 | \r | |
17 | Abstract: \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 | |
37 | typedef struct {\r | |
38 | const EFI_DRIVER_BINDING_PROTOCOL *DriverBinding;\r | |
39 | #if (EFI_SPECIFICATION_VERSION >= 0x00020000)\r | |
40 | const EFI_COMPONENT_NAME2_PROTOCOL *ComponentName;\r | |
41 | #else\r | |
42 | const EFI_COMPONENT_NAME_PROTOCOL *ComponentName;\r | |
43 | #endif\r | |
44 | const EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration;\r | |
45 | const EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics;\r | |
46 | } EFI_DRIVER_MODEL_PROTOCOL_LIST;\r | |
47 | \r | |
48 | //\r | |
49 | // UEFI Driver Model Protocols arrary\r | |
50 | //\r | |
51 | extern const EFI_DRIVER_MODEL_PROTOCOL_LIST _gDriverModelProtocolList[];\r | |
52 | \r | |
53 | #endif\r |