]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Efi/Protocol/DriverDiagnostics2/DriverDiagnostics2.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Efi / Protocol / DriverDiagnostics2 / DriverDiagnostics2.h
CommitLineData
03284334 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials\r
03284334 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
12Module Name:\r
13\r
14 DriverDiagnostics2.h\r
15\r
16Abstract:\r
17\r
18 EFI Driver Diagnostics2 Protocol\r
19\r
20Revision History\r
21\r
22--*/\r
23\r
24#ifndef _EFI_DRIVER_DIAGNOSTICS2_H_\r
25#define _EFI_DRIVER_DIAGNOSTICS2_H_\r
26\r
27#include EFI_PROTOCOL_DEFINITION (DriverDiagnostics)\r
28\r
29//\r
30// Global ID for the Driver Diagnostics Protocol\r
31//\r
32#define EFI_DRIVER_DIAGNOSTICS2_PROTOCOL_GUID \\r
33 { \\r
34 0x4d330321, 0x025f, 0x4aac, {0x90, 0xd8, 0x5e, 0xd9, 0x0, 0x17, 0x3b, 0x63} \\r
35 }\r
36\r
37EFI_FORWARD_DECLARATION (EFI_DRIVER_DIAGNOSTICS2_PROTOCOL);\r
38\r
39typedef\r
40EFI_STATUS\r
41(EFIAPI *EFI_DRIVER_DIAGNOSTICS2_RUN_DIAGNOSTICS) (\r
42 IN EFI_DRIVER_DIAGNOSTICS2_PROTOCOL * This,\r
43 IN EFI_HANDLE ControllerHandle,\r
44 IN EFI_HANDLE ChildHandle OPTIONAL,\r
45 IN EFI_DRIVER_DIAGNOSTIC_TYPE DiagnosticType,\r
46 IN CHAR8 *Language,\r
47 OUT EFI_GUID **ErrorType,\r
48 OUT UINTN *BufferSize,\r
49 OUT CHAR16 **Buffer\r
50 );\r
51\r
52/*++\r
53\r
54 Routine Description:\r
55 Runs diagnostics on a controller.\r
56\r
57 Arguments:\r
58 This - A pointer to the EFI_DRIVER_DIAGNOSTICS2_PROTOCOL instance.\r
59 ControllerHandle - The handle of the controller to run diagnostics on.\r
60 ChildHandle - The handle of the child controller to run diagnostics on\r
61 This is an optional parameter that may be NULL. It will\r
62 be NULL for device drivers. It will also be NULL for a\r
63 bus drivers that wish to run diagnostics on the bus\r
64 controller. It will not be NULL for a bus driver that\r
65 wishes to run diagnostics on one of its child controllers.\r
66 DiagnosticType - Indicates type of diagnostics to perform on the controller\r
67 specified by ControllerHandle and ChildHandle. See\r
68 "Related Definitions" for the list of supported types.\r
69 Language - A pointer to a NULL-terminated ASCII string array indicating\r
70 the language. This is the language in which the optional\r
71 error message should be returned in Buffer, and it must\r
72 match one of the languages specified in SupportedLanguages.\r
73 The number of languages supported by a driver is up to\r
74 the driver writer. Language is specified in RFC 3066\r
75 language code format.\r
76 ErrorType - A GUID that defines the format of the data returned in\r
77 Buffer.\r
78 BufferSize - The size, in bytes, of the data returned in Buffer.\r
79 Buffer - A buffer that contains a Null-terminated Unicode string\r
80 plus some additional data whose format is defined by\r
81 ErrorType. Buffer is allocated by this function with\r
82 AllocatePool(), and it is the caller's responsibility\r
83 to free it with a call to FreePool().\r
84\r
85 Returns:\r
86 EFI_SUCCESS - The controller specified by ControllerHandle and\r
87 ChildHandle passed the diagnostic.\r
88 EFI_INVALID_PARAMETER - ControllerHandle is not a valid EFI_HANDLE.\r
89 EFI_INVALID_PARAMETER - ChildHandle is not NULL and it is not a valid\r
90 EFI_HANDLE.\r
91 EFI_INVALID_PARAMETER - Language is NULL.\r
92 EFI_INVALID_PARAMETER - ErrorType is NULL.\r
93 EFI_INVALID_PARAMETER - BufferType is NULL.\r
94 EFI_INVALID_PARAMETER - Buffer is NULL.\r
95 EFI_UNSUPPORTED - The driver specified by This does not support\r
96 running diagnostics for the controller specified\r
97 by ControllerHandle and ChildHandle.\r
98 EFI_UNSUPPORTED - The driver specified by This does not support the\r
99 type of diagnostic specified by DiagnosticType.\r
100 EFI_UNSUPPORTED - The driver specified by This does not support the\r
101 language specified by Language.\r
102 EFI_OUT_OF_RESOURCES - There are not enough resources available to complete\r
103 the diagnostics.\r
104 EFI_OUT_OF_RESOURCES - There are not enough resources available to return\r
105 the status information in ErrorType, BufferSize,\r
106 and Buffer.\r
107 EFI_DEVICE_ERROR - The controller specified by ControllerHandle and\r
108 ChildHandle did not pass the diagnostic.\r
109\r
110--*/\r
111\r
112//\r
113// Interface structure for the Driver Diagnostics Protocol\r
114//\r
a1cb16bd 115struct _EFI_DRIVER_DIAGNOSTICS2_PROTOCOL {\r
03284334 116 EFI_DRIVER_DIAGNOSTICS2_RUN_DIAGNOSTICS RunDiagnostics;\r
117 CHAR8 *SupportedLanguages;\r
a1cb16bd 118};\r
03284334 119\r
120/*++\r
121\r
122 Protocol Description:\r
123 Used to perform diagnostics on a controller that an EFI Driver is managing.\r
124\r
125 Parameters:\r
126 RunDiagnostics - Runs diagnostics on a controller.\r
127 SupportedLanguages - A Null-terminated ASCII string that contains one or more\r
128 RFC 3066 language codes. This is the list of language\r
129 codes that this protocol supports.\r
130\r
131--*/\r
132\r
133extern EFI_GUID gEfiDriverDiagnostics2ProtocolGuid;\r
134\r
135#endif\r