]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/SmbusHc.h
MdePkg/Include/Protocol/Tls.h: pack structures from the TLS RFC
[mirror_edk2.git] / MdePkg / Include / Protocol / SmbusHc.h
index 67a174eec6d5ee14aeba9a4e3c53755626540f5b..ed20a471785913c5ab6a512fb783e1409580b5bd 100644 (file)
@@ -2,8 +2,8 @@
   The file provides basic SMBus host controller management \r
   and basic data transactions over the SMBus.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation                                                          \r
-  All rights reserved. This program and the accompanying materials                          \r
+  Copyright (c) 2006 - 2011, 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
@@ -19,7 +19,7 @@
 #ifndef __SMBUS_HC_H__\r
 #define __SMBUS_HC_H__\r
 \r
-#include <Ppi/Smbus2.h>\r
+#include <IndustryStandard/SmBus.h>\r
 \r
 #define EFI_SMBUS_HC_PROTOCOL_GUID \\r
   {0xe49d33ed, 0x513d, 0x4634, { 0xb6, 0x98, 0x6f, 0x55, 0xaa, 0x75, 0x1c, 0x1b} }\r
@@ -32,7 +32,7 @@ typedef struct _EFI_SMBUS_HC_PROTOCOL EFI_SMBUS_HC_PROTOCOL;
   operation as defined in the System Management Bus (SMBus)\r
   Specification. The resulting transaction will be either that\r
   the SMBus slave devices accept this transaction or that this\r
-  function returns with error. Status Codes Returned\r
+  function returns with error. \r
   \r
   @param This     A pointer to the EFI_SMBUS_HC_PROTOCOL instance.\r
                   SlaveAddress The SMBus slave address of the device\r
@@ -51,8 +51,9 @@ typedef struct _EFI_SMBUS_HC_PROTOCOL EFI_SMBUS_HC_PROTOCOL;
                   EFI_SMBUS_DEVICE_COMMAND is defined in\r
                   EFI_PEI_SMBUS_PPI.Execute() in the Platform\r
                   Initialization SMBus PPI Specification.\r
-                  Operation Signifies which particular SMBus\r
-                  hardware protocol instance that it will use to\r
+\r
+ @param Operation Signifies the particular SMBus\r
+                  hardware protocol instance it will use to\r
                   execute the SMBus transactions. This SMBus\r
                   hardware protocol is defined by the SMBus\r
                   Specification and is not related to PI\r
@@ -64,8 +65,9 @@ typedef struct _EFI_SMBUS_HC_PROTOCOL EFI_SMBUS_HC_PROTOCOL;
   @param PecCheck Defines if Packet Error Code (PEC) checking\r
                   is required for this operation. SMBus Host\r
                   Controller Code Definitions Version 1.0\r
-                  August 21, 2006 13 Length Signifies the\r
-                  number of bytes that this operation will do.\r
+                  August 21, 2006 13 \r
+                  \r
+ @param Length    Signifies the number of bytes that this operation will do.\r
                   The maximum number of bytes can be revision\r
                   specific and operation specific. This field\r
                   will contain the actual number of bytes that\r
@@ -121,10 +123,10 @@ typedef
 EFI_STATUS\r
 (EFIAPI *EFI_SMBUS_HC_EXECUTE_OPERATION)(\r
   IN CONST  EFI_SMBUS_HC_PROTOCOL     *This,\r
-  IN CONST  EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
-  IN CONST  EFI_SMBUS_DEVICE_COMMAND  Command,\r
-  IN CONST  EFI_SMBUS_OPERATION       Operation,\r
-  IN CONST  BOOLEAN                   PecCheck,\r
+  IN        EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
+  IN        EFI_SMBUS_DEVICE_COMMAND  Command,\r
+  IN        EFI_SMBUS_OPERATION       Operation,\r
+  IN        BOOLEAN                   PecCheck,\r
   IN OUT    UINTN                     *Length,\r
   IN OUT    VOID                      *Buffer\r
 );\r
@@ -187,8 +189,8 @@ typedef
 EFI_STATUS\r
 (EFIAPI *EFI_SMBUS_HC_PROTOCOL_ARP_DEVICE)(\r
   IN CONST  EFI_SMBUS_HC_PROTOCOL     *This,\r
-  IN CONST  BOOLEAN                   ArpAll,\r
-  IN CONST  EFI_SMBUS_UDID            *SmbusUdid,   OPTIONAL\r
+  IN        BOOLEAN                   ArpAll,\r
+  IN        EFI_SMBUS_UDID            *SmbusUdid,   OPTIONAL\r
   IN OUT    EFI_SMBUS_DEVICE_ADDRESS  *SlaveAddress OPTIONAL\r
 );\r
 \r
@@ -234,8 +236,8 @@ EFI_STATUS
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_SMBUS_NOTIFY_FUNCTION)(\r
-  IN CONST  EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
-  IN CONST  UINTN                     Data\r
+  IN        EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
+  IN        UINTN                     Data\r
 );\r
 \r
 \r
@@ -268,9 +270,9 @@ typedef
 EFI_STATUS\r
 (EFIAPI *EFI_SMBUS_HC_PROTOCOL_NOTIFY)(\r
   IN CONST  EFI_SMBUS_HC_PROTOCOL     *This,\r
-  IN CONST  EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
-  IN CONST  UINTN                     Data,\r
-  IN CONST  EFI_SMBUS_NOTIFY_FUNCTION NotifyFunction\r
+  IN        EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
+  IN        UINTN                     Data,\r
+  IN        EFI_SMBUS_NOTIFY_FUNCTION NotifyFunction\r
 );\r
 \r
 \r