]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /** @file\r |
24e25d11 | 2 | UEFI Driver Model Library Services\r |
878ddf1f | 3 | \r |
24e25d11 | 4 | Copyright (c) 2006, Intel Corporation \r |
5 | All rights reserved. This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
878ddf1f | 9 | \r |
24e25d11 | 10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
878ddf1f | 12 | \r |
24e25d11 | 13 | Module Name: UefiDriverModelLib.h\r |
878ddf1f | 14 | \r |
15 | **/\r | |
16 | \r | |
17 | #ifndef __UEFI_DRIVER_MODEL_LIB_H__\r | |
18 | #define __UEFI_DRIVER_MODEL_LIB_H__\r | |
19 | \r | |
20 | //\r | |
21 | // Declare bitmask values for the protocols that are enabled \r | |
22 | //\r | |
23 | #define UEFI_DRIVER_MODEL_LIBRARY_COMPONENT_NAME_PROTOCOL_ENABLED 0x01\r | |
24 | #define UEFI_DRIVER_MODEL_LIBRARY_DRIVER_DIAGNOSTICS_PROTOCOL_ENABLED 0x02\r | |
25 | #define UEFI_DRIVER_MODEL_LIBRARY_DRIVER_CONFIGURATION_PROTOCOL_ENABLED 0x04\r | |
26 | \r | |
27 | //\r | |
9136b0e0 | 28 | // Bitmask values for the protocols that are enabled\r |
878ddf1f | 29 | //\r |
30 | extern const UINT8 _gDriverModelProtocolBitmask;\r | |
31 | \r | |
32 | //\r | |
9136b0e0 | 33 | // Data structure that declares pointers to the Driver Model \r |
34 | // Protocols.\r | |
878ddf1f | 35 | //\r |
36 | typedef struct {\r | |
37 | const EFI_DRIVER_BINDING_PROTOCOL *DriverBinding;\r | |
38 | const EFI_COMPONENT_NAME_PROTOCOL *ComponentName;\r | |
39 | const EFI_DRIVER_CONFIGURATION_PROTOCOL *DriverConfiguration;\r | |
40 | const EFI_DRIVER_DIAGNOSTICS_PROTOCOL *DriverDiagnostics;\r | |
41 | } EFI_DRIVER_MODEL_PROTOCOL_LIST;\r | |
42 | \r | |
43 | //\r | |
9136b0e0 | 44 | // The number of UEFI Driver Model Protocols that the module\r |
45 | // produces. Typically drivers only produce one.\r | |
46 | // When UEFI drivers are merged, they will produce several.\r | |
878ddf1f | 47 | //\r |
48 | extern const UINTN _gDriverModelProtocolListEntries;\r | |
9136b0e0 | 49 | \r |
50 | //\r | |
51 | // UEFI Driver Model Protocols arrary\r | |
52 | //\r | |
878ddf1f | 53 | extern const EFI_DRIVER_MODEL_PROTOCOL_LIST _gDriverModelProtocolList[];\r |
54 | \r | |
55 | #endif\r |