]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Smbus.h
Remove BugBug in comments and adjust function header according to code style doc.
[mirror_edk2.git] / MdePkg / Include / Protocol / Smbus.h
index 8fe37b17d3bdec3799d2c2118c5df4741d02ac90..1150933541ab4bc7a07da6164d8b1c3e2743b0da 100644 (file)
@@ -31,45 +31,32 @@ typedef struct _EFI_SMBUS_HC_PROTOCOL EFI_SMBUS_HC_PROTOCOL;
 /**\r
   Executes an SMBus operation to an SMBus controller.\r
 \r
-  @param  This A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
-  \r
-  @param  SlaveAddress The SMBus slave address of the device with which to communicate.\r
-  \r
-  @param  Command This command is transmitted by the SMBus host \r
-  controller to the SMBus slave device and the interpretation is \r
-  SMBus slave device specific.\r
-  \r
-  @param  Operation Signifies which particular SMBus hardware protocol \r
-  instance that it will use to execute the SMBus transactions. \r
-  \r
-  @param  PecCheck Defines if Packet Error Code (PEC) checking is required \r
-  for this operation.\r
-  \r
-  @param  Length Signifies the number of bytes that this operation will do.\r
-  \r
-  @param  Buffer Contains the value of data to execute to the SMBus slave device.\r
-\r
-  @retval EFI_SUCCESS The last data that was returned from the access \r
-  matched the poll exit criteria.\r
-  \r
-  @retval EFI_CRC_ERROR The checksum is not correct (PEC is incorrect)\r
-  \r
-  @retval EFI_TIMEOUT Timeout expired before the operation was completed. \r
-  Timeout is determined by the SMBus host controller device.\r
-  \r
-  @retval EFI_OUT_OF_RESOURCES The request could not be completed \r
-  due to a lack of resources.\r
-  \r
-  @retval EFI_DEVICE_ERROR The request was not completed because \r
-  a failure reflected in the Host Status Register bit.\r
-  \r
+  @param  This                  A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
+  @param  SlaveAddress          The SMBus slave address of the device with which to communicate.\r
+  @param  Command               This command is transmitted by the SMBus host\r
+                                controller to the SMBus slave device and the interpretation is\r
+                                SMBus slave device specific.\r
+  @param  Operation             Signifies which particular SMBus hardware protocol\r
+                                instance that it will use to execute the SMBus transactions.\r
+  @param  PecCheck              Defines if Packet Error Code (PEC) checking is required\r
+                                for this operation.\r
+  @param  Length                Signifies the number of bytes that this operation will do.\r
+  @param  Buffer                Contains the value of data to execute to the SMBus slave device.\r
+\r
+  @retval EFI_SUCCESS           The last data that was returned from the access\r
+                                matched the poll exit criteria.\r
+  @retval EFI_CRC_ERROR         The checksum is not correct (PEC is incorrect)\r
+  @retval EFI_TIMEOUT           Timeout expired before the operation was completed.\r
+                                Timeout is determined by the SMBus host controller device.\r
+  @retval EFI_OUT_OF_RESOURCES  The request could not be completed\r
+                                due to a lack of resources.\r
+  @retval EFI_DEVICE_ERROR      The request was not completed because\r
+                                a failure reflected in the Host Status Register bit.\r
   @retval EFI_INVALID_PARAMETER Operation is not defined in EFI_SMBUS_OPERATION.\r
-  Or Length/Buffer is NULL for operations except for EfiSmbusQuickRead and \r
-  EfiSmbusQuickWrite. Length is outside the range of valid values.\r
-  \r
-  @retval EFI_UNSUPPORTED The SMBus operation or PEC is not supported.\r
-  \r
-  @retval EFI_BUFFER_TOO_SMALL Buffer is not sufficient for this operation.\r
+                                Or Length/Buffer is NULL for operations except for EfiSmbusQuickRead and\r
+                                EfiSmbusQuickWrite. Length is outside the range of valid values.\r
+  @retval EFI_UNSUPPORTED       The SMBus operation or PEC is not supported.\r
+  @retval EFI_BUFFER_TOO_SMALL  Buffer is not sufficient for this operation.\r
 \r
 **/\r
 typedef\r
@@ -98,11 +85,10 @@ typedef struct {
 /**\r
   CallBack function can be registered in EFI_SMBUS_HC_PROTOCOL_NOTIFY.\r
 \r
-  @param  SlaveAddress The SMBUS hardware address to which the SMBUS \r
-  device is preassigned or allocated.\r
-  \r
-  @param  Data Data of the SMBus host notify command that \r
-  the caller wants to be called.\r
+  @param  SlaveAddress          The SMBUS hardware address to which the SMBUS\r
+                                device is preassigned or allocated.\r
+  @param  Data                  Data of the SMBus host notify command that\r
+                                the caller wants to be called.\r
 \r
   @return Status Code\r
 \r
@@ -118,29 +104,22 @@ EFI_STATUS
   Sets the SMBus slave device addresses for the device with a given unique ID \r
   or enumerates the entire bus.\r
 \r
-  @param  This A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
-  \r
-  @param  ArpAll A Boolean expression that indicates if the host drivers need \r
-  to enumerate all the devices or enumerate only the device that is identified \r
-  by SmbusUdid. If ArpAll is TRUE, SmbusUdid and SlaveAddress are optional. \r
-  If ArpAll is FALSE, ArpDevice will enumerate SmbusUdid and the address \r
-  will be at SlaveAddress.\r
-  \r
-  @param  SmbusUdid The Unique Device Identifier (UDID) that is associated \r
-  with this device.\r
-  \r
-  @param  SlaveAddress The SMBus slave address that is associated with an SMBus UDID. \r
-\r
-  @retval EFI_SUCCESS The SMBus slave device address was set.\r
-  \r
+  @param  This                  A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
+  @param  ArpAll                A Boolean expression that indicates if the host drivers need\r
+                                to enumerate all the devices or enumerate only the device that is identified\r
+                                by SmbusUdid. If ArpAll is TRUE, SmbusUdid and SlaveAddress are optional.\r
+                                If ArpAll is FALSE, ArpDevice will enumerate SmbusUdid and the address\r
+                                will be at SlaveAddress.\r
+  @param  SmbusUdid             The Unique Device Identifier (UDID) that is associated\r
+                                with this device.\r
+  @param  SlaveAddress          The SMBus slave address that is associated with an SMBus UDID.\r
+\r
+  @retval EFI_SUCCESS           The SMBus slave device address was set.\r
   @retval EFI_INVALID_PARAMETER SlaveAddress is NULL.\r
-  \r
-  @retval EFI_OUT_OF_RESOURCES The request could not be completed \r
-  due to a lack of resources.\r
-  \r
-  @retval EFI_TIMEOUT The SMBus slave device did not respond.\r
-  \r
-  @retval EFI_DEVICE_ERROR The request was not completed because the transaction failed.\r
+  @retval EFI_OUT_OF_RESOURCES  The request could not be completed\r
+                                due to a lack of resources.\r
+  @retval EFI_TIMEOUT           The SMBus slave device did not respond.\r
+  @retval EFI_DEVICE_ERROR      The request was not completed because the transaction failed.\r
 \r
 **/\r
 typedef\r
@@ -161,14 +140,12 @@ typedef struct {
   The GetArpMap() function returns the mapping of all the SMBus devices \r
   that are enumerated by the SMBus host driver. \r
 \r
-  @param  This A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
-  \r
-  @param  Length Size of the buffer that contains the SMBus device map.\r
-  \r
-  @param  SmbusDeviceMap The pointer to the device map as enumerated \r
-  by the SMBus controller driver.\r
+  @param  This                  A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
+  @param  Length                Size of the buffer that contains the SMBus device map.\r
+  @param  SmbusDeviceMap        The pointer to the device map as enumerated\r
+                                by the SMBus controller driver.\r
 \r
-  @retval EFI_SUCCESS The device map was returned correctly in the buffer.\r
+  @retval EFI_SUCCESS           The device map was returned correctly in the buffer.\r
 \r
 **/\r
 typedef\r
@@ -183,18 +160,15 @@ EFI_STATUS
   The Notify() function registers all the callback functions to allow the \r
   bus driver to call these functions when the SlaveAddress/Data pair happens.\r
 \r
-  @param  This A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
-  \r
-  @param  SlaveAddress Address that the host controller detects as \r
-  sending a message and calls all the registered functions.\r
-  \r
-  @param  Data Data that the host controller detects as sending a message \r
-  and calls all the registered functions.\r
-  \r
-  @param  NotifyFunction The function to call when the bus driver \r
-  detects the SlaveAddress and Data pair.\r
-\r
-  @retval EFI_SUCCESS NotifyFunction was registered.\r
+  @param  This                  A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
+  @param  SlaveAddress          Address that the host controller detects as\r
+                                sending a message and calls all the registered functions.\r
+  @param  Data                  Data that the host controller detects as sending a message\r
+                                and calls all the registered functions.\r
+  @param  NotifyFunction        The function to call when the bus driver\r
+                                detects the SlaveAddress and Data pair.\r
+\r
+  @retval EFI_SUCCESS           NotifyFunction was registered.\r
 \r
 **/\r
 typedef\r