]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Ppi/Smbus2.h
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Include / Ppi / Smbus2.h
index 508267ee4cc71fa508f7495b5fa259c43ef0b8f0..3e386b823b65baa55e5fbdf594476abce188c475 100644 (file)
@@ -4,13 +4,7 @@
   SMBus controller and the slave devices attached to it.\r
 \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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
   @par Revision Reference:\r
   This PPI is introduced in PI Version 1.0.\r
@@ -25,7 +19,6 @@
 #define EFI_PEI_SMBUS2_PPI_GUID \\r
   { 0x9ca93627, 0xb65b, 0x4324, { 0xa2, 0x2, 0xc0, 0xb4, 0x61, 0x76, 0x45, 0x43 } }\r
 \r
-\r
 typedef struct _EFI_PEI_SMBUS2_PPI EFI_PEI_SMBUS2_PPI;\r
 \r
 /**\r
@@ -80,7 +73,7 @@ EFI_STATUS
   IN        BOOLEAN                   PecCheck,\r
   IN OUT    UINTN                     *Length,\r
   IN OUT    VOID                      *Buffer\r
-);\r
+  );\r
 \r
 /**\r
   The ArpDevice() function enumerates the entire bus or enumerates a specific\r
@@ -111,9 +104,9 @@ EFI_STATUS
 (EFIAPI *EFI_PEI_SMBUS2_PPI_ARP_DEVICE)(\r
   IN CONST  EFI_PEI_SMBUS2_PPI        *This,\r
   IN        BOOLEAN                   ArpAll,\r
-  IN        EFI_SMBUS_UDID            *SmbusUdid,   OPTIONAL\r
+  IN        EFI_SMBUS_UDID            *SmbusUdid    OPTIONAL,\r
   IN OUT    EFI_SMBUS_DEVICE_ADDRESS  *SlaveAddress OPTIONAL\r
-);\r
+  );\r
 \r
 /**\r
   The GetArpMap() function returns the mapping of all the SMBus devices\r
@@ -134,7 +127,7 @@ EFI_STATUS
   IN CONST  EFI_PEI_SMBUS2_PPI    *This,\r
   IN OUT    UINTN                 *Length,\r
   IN OUT    EFI_SMBUS_DEVICE_MAP  **SmbusDeviceMap\r
-);\r
+  );\r
 \r
 /**\r
   CallBack function can be registered in EFI_PEI_SMBUS2_PPI_NOTIFY.\r
@@ -156,7 +149,7 @@ EFI_STATUS
   IN CONST  EFI_PEI_SMBUS2_PPI        *SmbusPpi,\r
   IN        EFI_SMBUS_DEVICE_ADDRESS  SlaveAddress,\r
   IN        UINTN                     Data\r
-);\r
+  );\r
 \r
 /**\r
   The Notify() function registers all the callback functions to allow the\r
@@ -181,23 +174,23 @@ EFI_STATUS
   IN       EFI_SMBUS_DEVICE_ADDRESS        SlaveAddress,\r
   IN       UINTN                           Data,\r
   IN       EFI_PEI_SMBUS_NOTIFY2_FUNCTION  NotifyFunction\r
-);\r
+  );\r
 \r
 ///\r
 ///  Provides the basic I/O interfaces that a PEIM uses to access\r
 ///  its SMBus controller and the slave devices attached to it.\r
 ///\r
 struct _EFI_PEI_SMBUS2_PPI {\r
-  EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION  Execute;\r
-  EFI_PEI_SMBUS2_PPI_ARP_DEVICE         ArpDevice;\r
-  EFI_PEI_SMBUS2_PPI_GET_ARP_MAP        GetArpMap;\r
-  EFI_PEI_SMBUS2_PPI_NOTIFY             Notify;\r
+  EFI_PEI_SMBUS2_PPI_EXECUTE_OPERATION    Execute;\r
+  EFI_PEI_SMBUS2_PPI_ARP_DEVICE           ArpDevice;\r
+  EFI_PEI_SMBUS2_PPI_GET_ARP_MAP          GetArpMap;\r
+  EFI_PEI_SMBUS2_PPI_NOTIFY               Notify;\r
   ///\r
   /// Identifier which uniquely identifies this SMBus controller in a system.\r
   ///\r
-  EFI_GUID                              Identifier;\r
+  EFI_GUID                                Identifier;\r
 };\r
 \r
-extern EFI_GUID gEfiPeiSmbus2PpiGuid;\r
+extern EFI_GUID  gEfiPeiSmbus2PpiGuid;\r
 \r
 #endif\r