]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/DriverConfiguration2.h
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Include / Protocol / DriverConfiguration2.h
index 4ae1d0235a7bdccd70e247a99de47bde6dac8ae0..9c5f221f1efa2e3efbd0ec261a4088020da121a2 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   UEFI Driver Configuration2 Protocol\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation                                                         \r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
   http://opensource.org/licenses/bsd-license.php                                            \r
 typedef struct _EFI_DRIVER_CONFIGURATION2_PROTOCOL  EFI_DRIVER_CONFIGURATION2_PROTOCOL;\r
 \r
 typedef enum {\r
+  ///\r
+  /// The controller is still in a usable state. No actions\r
+  /// are required before this controller can be used again.\r
+  ///\r
   EfiDriverConfigurationActionNone              = 0,\r
+  ///\r
+  /// The driver has detected that the controller is not in a\r
+  /// usable state, and it needs to be stopped.\r
+  ///\r
   EfiDriverConfigurationActionStopController    = 1,\r
+  ///\r
+  /// This controller needs to be stopped and restarted\r
+  /// before it can be used again.\r
+  ///\r
   EfiDriverConfigurationActionRestartController = 2,\r
+  ///\r
+  /// A configuration change has been made that requires the platform to be restarted before\r
+  /// the controller can be used again.\r
+  ///\r
   EfiDriverConfigurationActionRestartPlatform   = 3,\r
   EfiDriverConfigurationActionMaximum\r
 } EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED;\r
@@ -46,11 +62,11 @@ typedef enum {
   @param  ControllerHandle The handle of the controller to set options on.\r
   @param  ChildHandle      The handle of the child controller to set options on.  This\r
                            is an optional parameter that may be NULL.  It will be NULL\r
-                           for device drivers, and for bus drivers that wish to set\r
+                           for device drivers, and for bus drivers that wish to set\r
                            options for the bus controller.  It will not be NULL for a\r
                            bus driver that wishes to set options for one of its child\r
                            controllers.\r
-  @param  Language         A Null-terminated ASCII string that contains one or more RFC 3066\r
+  @param  Language         A Null-terminated ASCII string that contains one or more RFC 4646\r
                            language codes. This is the list of language codes that this\r
                            protocol supports. The number of languages\r
                            supported by a driver is up to the driver writer.\r
@@ -62,7 +78,7 @@ typedef enum {
 \r
   @retval EFI_SUCCESS           The driver specified by This successfully set the\r
                                 configuration options for the controller specified\r
-                                by ControllerHandle..\r
+                                by ControllerHandle.\r
   @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
   @retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid EFI_HANDLE.\r
   @retval EFI_INVALID_PARAMETER ActionRequired is NULL.\r
@@ -71,7 +87,7 @@ typedef enum {
                                 ControllerHandle and ChildHandle.\r
   @retval EFI_UNSUPPORTED       The driver specified by This does not support the\r
                                 language specified by Language.\r
-  @retval EFI_DEVICE_ERROR      A device error occurred while attempt to set the\r
+  @retval EFI_DEVICE_ERROR      A device error occurred while attempting to set the\r
                                 configuration options for the controller specified\r
                                 by ControllerHandle and ChildHandle.\r
   @retval EFI_OUT_RESOURCES     There are not enough resources available to set the\r
@@ -98,7 +114,7 @@ EFI_STATUS
   @param  ChildHandle      The handle of the child controller to test if it's current\r
                            configuration options are valid.  This is an optional\r
                            parameter that may be NULL.  It will be NULL for device\r
-                           drivers.  It will also be NULL for bus drivers that wish\r
+                           drivers.  It will also be NULL for bus drivers that wish\r
                            to test the configuration options for the bus controller.\r
                            It will not be NULL for a bus driver that wishes to test\r
                            configuration options for one of its child controllers.\r
@@ -131,9 +147,9 @@ EFI_STATUS
 \r
   @param  This             A pointer to the EFI_DRIVER_CONFIGURATION2_PROTOCOL instance.\r
   @param  ControllerHandle The handle of the controller to force default configuration options on.\r
-  @param  ChildHandle      The handle of the child controller to force default configuration options on  This is an optional parameter that may be NULL.  It will be NULL for device drivers.  It will also be NULL for bus drivers that wish to force default configuration options for the bus controller.  It will not be NULL for a bus driver that wishes to force default configuration options for one of its child controllers.\r
+  @param  ChildHandle      The handle of the child controller to force default configuration options on  This is an optional parameter that may be NULL.  It will be NULL for device drivers.  It will also be NULL for bus drivers that wish to force default configuration options for the bus controller.  It will not be NULL for a bus driver that wishes to force default configuration options for one of its child controllers.\r
   @param  DefaultType      The type of default configuration options to force on the controller specified by ControllerHandle and ChildHandle.  See Table 9-1 for legal values.  A DefaultType of 0x00000000 must be supported by this protocol.\r
-  @param  ActionRequired   A pointer to the action that the calling agent is required to perform when this function returns.  See "Related Definitions" in Section 9.1for a list of the actions that the calling agent is required to perform prior to accessing ControllerHandle again.\r
+  @param  ActionRequired   A pointer to the action that the calling agent is required to perform when this function returns.  See "Related Definitions" in Section 9.1 for a list of the actions that the calling agent is required to perform prior to accessing ControllerHandle again.\r
 \r
   @retval EFI_SUCCESS           The driver specified by This successfully forced the default configuration options on the controller specified by ControllerHandle and ChildHandle.\r
   @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
@@ -155,37 +171,20 @@ EFI_STATUS
   OUT EFI_DRIVER_CONFIGURATION_ACTION_REQUIRED                *ActionRequired\r
   );\r
 \r
-/**\r
-  Interface structure for the Driver Configuration Protocol.\r
-\r
-  @par Protocol Description:  \r
-  Used to set configuration options for a controller that an EFI Driver is managing.\r
-\r
-  @param SetOptions          Allows the use to set drivers specific configuration \r
-                             options for a controller that the driver is currently managing.\r
-                             \r
-  @param OptionsValid        Tests to see if a controller's current configuration \r
-                             options are valid. \r
-                             \r
-  @param ForceDefaults       Forces a driver to set the default configuration options \r
-                             for a controller.\r
-\r
-  @param SupportedLanguages  A Null-terminated ASCII string that\r
-                             contains one or more RFC 3066\r
-                             language codes.  This is the list\r
-                             of language codes that this\r
-                             protocol supports.\r
-\r
-**/\r
+///\r
+/// Used to set configuration options for a controller that an EFI Driver is managing.\r
+///\r
 struct _EFI_DRIVER_CONFIGURATION2_PROTOCOL {\r
   EFI_DRIVER_CONFIGURATION2_SET_OPTIONS     SetOptions;\r
   EFI_DRIVER_CONFIGURATION2_OPTIONS_VALID   OptionsValid;\r
   EFI_DRIVER_CONFIGURATION2_FORCE_DEFAULTS  ForceDefaults;\r
+  ///\r
+  /// A Null-terminated ASCII string that contains one or more RFC 4646\r
+  /// language codes.  This is the list of language codes that this protocol supports.  \r
+  ///\r
   CHAR8                                     *SupportedLanguages;\r
 };\r
 \r
-\r
-\r
 extern EFI_GUID gEfiDriverConfiguration2ProtocolGuid;\r
 \r
 #endif\r