]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2004, 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 | Module Name:\r | |
13 | \r | |
14 | DebugMask.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | This protocol is used to abstract the Debug Mask serivces for \r | |
19 | the specific driver or application image.\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef _DEBUG_MASK_H_\r | |
24 | #define _DEBUG_MASK_H_\r | |
25 | \r | |
26 | //\r | |
27 | //4C8A2451-C207-405b-9694-99EA13251341\r | |
28 | //\r | |
29 | #define EFI_DEBUG_MASK_PROTOCOL_GUID \\r | |
30 | { 0x4c8a2451, 0xc207, 0x405b, 0x96, 0x94, 0x99, 0xea, 0x13, 0x25, 0x13, 0x41 }\r | |
31 | \r | |
32 | \r | |
33 | #define EFI_DEBUG_MASK_REVISION 0x00010000\r | |
34 | \r | |
35 | //\r | |
36 | // Forward reference for pure ANSI compatability\r | |
37 | //\r | |
38 | EFI_FORWARD_DECLARATION (EFI_DEBUG_MASK_PROTOCOL);\r | |
39 | \r | |
40 | //\r | |
41 | // DebugMask member functions definition\r | |
42 | //\r | |
43 | typedef\r | |
44 | EFI_STATUS\r | |
45 | (EFIAPI * EFI_GET_DEBUG_MASK) (\r | |
46 | IN EFI_DEBUG_MASK_PROTOCOL *This, // Calling context\r | |
47 | IN OUT UINTN *CurrentDebugMask // Ptr to store current debug mask\r | |
48 | );\r | |
49 | \r | |
50 | typedef \r | |
51 | EFI_STATUS\r | |
52 | (EFIAPI *EFI_SET_DEBUG_MASK) (\r | |
53 | IN EFI_DEBUG_MASK_PROTOCOL *This, // Calling context\r | |
54 | IN UINTN NewDebugMask // New Debug Mask value to set\r | |
55 | );\r | |
56 | \r | |
57 | //\r | |
58 | // DebugMask protocol definition\r | |
59 | //\r | |
60 | typedef struct _EFI_DEBUG_MASK_PROTOCOL {\r | |
61 | INT64 Revision;\r | |
62 | EFI_GET_DEBUG_MASK GetDebugMask;\r | |
63 | EFI_SET_DEBUG_MASK SetDebugMask;\r | |
64 | } EFI_DEBUG_MASK_PROTOCOL;\r | |
65 | \r | |
66 | extern EFI_GUID gEfiDebugMaskProtocolGuid;\r | |
67 | \r | |
68 | #endif\r |