X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FDriverDiagnostics.h;h=f3683f3304053298364c76d01964719f72789a7b;hb=34860f7a069641fb9e14077c01605215aae68a9b;hp=d8cddd963f325c0fa5bd18f37e4ac12ec81a1248;hpb=99e8ed219f48b82694424e46c9512d4929d9d54e;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/DriverDiagnostics.h b/MdePkg/Include/Protocol/DriverDiagnostics.h index d8cddd963f..f3683f3304 100644 --- a/MdePkg/Include/Protocol/DriverDiagnostics.h +++ b/MdePkg/Include/Protocol/DriverDiagnostics.h @@ -15,10 +15,8 @@ #ifndef __EFI_DRIVER_DIAGNOSTICS_H__ #define __EFI_DRIVER_DIAGNOSTICS_H__ -#include - /// -/// Global ID for the Driver Diagnostics Protocol as defined in UEFI 2.0. +/// Global ID for the Driver Diagnostics Protocol as defined in EFI 1.1. /// #define EFI_DRIVER_DIAGNOSTICS_PROTOCOL_GUID \ { \ @@ -28,8 +26,19 @@ typedef struct _EFI_DRIVER_DIAGNOSTICS_PROTOCOL EFI_DRIVER_DIAGNOSTICS_PROTOCOL; typedef enum { + /// + /// Performs standard diagnostics on the controller. + /// EfiDriverDiagnosticTypeStandard = 0, + /// + /// This is an optional diagnostic type that performs diagnostics on the controller that may + /// take an extended amount of time to execute. + /// EfiDriverDiagnosticTypeExtended = 1, + /// + /// This is an optional diagnostic type that performs diagnostics on the controller that are + /// suitable for a manufacturing and test environment. + /// EfiDriverDiagnosticTypeManufacturing= 2, EfiDriverDiagnosticTypeMaximum } EFI_DRIVER_DIAGNOSTIC_TYPE; @@ -99,24 +108,15 @@ EFI_STATUS OUT CHAR16 **Buffer ); - -// -// - -/** - Interface structure for the Driver Diagnostics Protocol. - - @par Protocol Description: - Used to perform diagnostics on a controller that an EFI Driver is managing. - - @param RunDiagnostics Runs diagnostics on a controller. - @param SupportedLanguages A Null-terminated ASCII string that contains one or more - ISO 639-2 language codes. This is the list of language - codes that this protocol supports. - -**/ +/// +/// Used to perform diagnostics on a controller that an EFI Driver is managing. +/// struct _EFI_DRIVER_DIAGNOSTICS_PROTOCOL { EFI_DRIVER_DIAGNOSTICS_RUN_DIAGNOSTICS RunDiagnostics; + /// + /// A Null-terminated ASCII string that contains one or more RFC 3066 + /// language codes. This is the list of language codes that this protocol supports. + /// CHAR8 *SupportedLanguages; };