]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiSmbusLibSmbus2Ppi/SmbusLib.c
MdePkg: Clean up source files
[mirror_edk2.git] / MdePkg / Library / PeiSmbusLibSmbus2Ppi / SmbusLib.c
index 42e9513f5788c9c2469069b60b1e2509f75e4183..639a2e7e6fa341f8e9382d6d6a2bbb1e23c6aa5d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Implementation of SmBusLib class library for PEI phase.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, 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
@@ -31,11 +31,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS:  The SMBUS command was executed.\r
-                        RETURN_TIMEOUT:  A timeout occurred while executing the \r
+                        RETURN_TIMEOUT:  A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR: The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR: The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle\r
                         (host initiated), or bus errors (collisions).\r
                         RETURN_UNSUPPORTED:  The SMBus operation is not supported.\r
@@ -72,12 +72,12 @@ SmBusQuickRead (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  Device \r
-                        errors are a result of a transaction collision, illegal \r
-                        command field, unclaimed cycle (host initiated), or bus \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.  Device\r
+                        errors are a result of a transaction collision, illegal\r
+                        command field, unclaimed cycle (host initiated), or bus\r
                         errors (collisions).\r
                         RETURN_UNSUPPORTED::  The SMBus operation is not supported.\r
 \r
@@ -113,11 +113,11 @@ SmBusQuickWrite (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
@@ -161,12 +161,12 @@ SmBusReceiveByte (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  Device \r
-                        errors are a result of a transaction collision, illegal \r
-                        command field, unclaimed cycle (host initiated), or bus \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.  Device\r
+                        errors are a result of a transaction collision, illegal\r
+                        command field, unclaimed cycle (host initiated), or bus\r
                         errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
                         RETURN_UNSUPPORTED:  The SMBus operation is not supported.\r
@@ -209,11 +209,11 @@ SmBusSendByte (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle (host initiated),\r
                        or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
@@ -256,11 +256,11 @@ SmBusReadDataByte (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
@@ -297,17 +297,17 @@ SmBusWriteDataByte (
   If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is not zero, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
-  \r
+\r
   @param  SmBusAddress  The address that encodes the SMBUS Slave Address,\r
                         SMBUS Command, SMBUS Data Length, and PEC.\r
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
@@ -350,11 +350,11 @@ SmBusReadDataWord (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
@@ -399,11 +399,11 @@ SmBusWriteDataWord (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
                         illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
@@ -448,12 +448,12 @@ SmBusProcessCall (
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
                         RETURN_SUCCESS: The SMBUS command was executed.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
-                        illegal command field, unclaimed cycle (host initiated), \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
+                        illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct. (PEC is incorrect.)\r
                         RETURN_UNSUPPORTED:  The SMBus operation is not supported.\r
@@ -483,7 +483,7 @@ SmBusReadBlock (
   The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.\r
   Bytes are written to the SMBUS from Buffer.\r
   The number of bytes written is returned, and will never return a value larger than 32-bytes.\r
-  If Status is not NULL, then the status of the executed command is returned in Status.  \r
+  If Status is not NULL, then the status of the executed command is returned in Status.\r
   If Length in SmBusAddress is zero or greater than 32, then ASSERT().\r
   If Buffer is NULL, then ASSERT().\r
   If any reserved bits of SmBusAddress are set, then ASSERT().\r
@@ -493,12 +493,12 @@ SmBusReadBlock (
   @param  Buffer        The pointer to the buffer to store the bytes read from the SMBUS.\r
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
-                        illegal command field, unclaimed cycle (host initiated), \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
+                        illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR:  The checksum is not correct (PEC is incorrect)\r
                         RETURN_UNSUPPORTED:  The SMBus operation is not supported.\r
@@ -545,12 +545,12 @@ SmBusWriteBlock (
   @param  ReadBuffer    The pointer to the buffer of bytes to read from the SMBUS.\r
   @param  Status        Return status for the executed command.\r
                         This is an optional parameter and may be NULL.\r
-                        RETURN_TIMEOUT: A timeout occurred while executing the \r
+                        RETURN_TIMEOUT: A timeout occurred while executing the\r
                         SMBUS command.\r
-                        RETURN_DEVICE_ERROR:  The request was not completed because \r
-                        a failure reflected in the Host Status Register bit.  \r
-                        Device errors are a result of a transaction collision, \r
-                        illegal command field, unclaimed cycle (host initiated), \r
+                        RETURN_DEVICE_ERROR:  The request was not completed because\r
+                        a failure reflected in the Host Status Register bit.\r
+                        Device errors are a result of a transaction collision,\r
+                        illegal command field, unclaimed cycle (host initiated),\r
                         or bus errors (collisions).\r
                         RETURN_CRC_ERROR  The checksum is not correct. (PEC is incorrect.)\r
                         RETURN_UNSUPPORTED:  The SMBus operation is not supported.\r