X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=IntelFrameworkPkg%2FLibrary%2FPeiSmbusLibSmbusPpi%2FPeiSmbusLib.c;h=33d90968331abca02f46dfe86e57b18727522f5f;hp=dcae66e8bb6c8dfcc3eb2052e427030ee1b00ff4;hb=2b3687dbb512ccd3cfbb75fa8966c3c93b3c067d;hpb=22936e958fb551cfa38a92b846ba43434d0c6cee diff --git a/IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLib.c b/IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLib.c index dcae66e8bb..33d9096833 100644 --- a/IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLib.c +++ b/IntelFrameworkPkg/Library/PeiSmbusLibSmbusPpi/PeiSmbusLib.c @@ -1,8 +1,8 @@ /** @file -Implementation of SmBusLib class library for PEI phase. + Implementation of SmBusLib class library for PEI phase. -Copyright (c) 2006, Intel Corporation
-All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -10,9 +10,6 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -Module Name: PeiSmbusLib.c - **/ #include "InternalSmbusLib.h" @@ -21,9 +18,8 @@ Module Name: PeiSmbusLib.c Gets Smbus PPIs. This internal function retrieves Smbus PPI from PPI database. - - @param PeiServices An indirect pointer to the EFI_PEI_SERVICES published by the PEI Foundation. - + If gEfiPeiSmbusPpiGuid can not be located, then ASSERT() + @return The pointer to Smbus PPI. **/ @@ -73,7 +69,7 @@ InternalSmBusExec ( ) { EFI_PEI_SMBUS_PPI *SmbusPpi; - EFI_PEI_SERVICES **PeiServices; + CONST EFI_PEI_SERVICES **PeiServices; RETURN_STATUS ReturnStatus; EFI_SMBUS_DEVICE_ADDRESS SmbusDeviceAddress; @@ -82,7 +78,7 @@ InternalSmBusExec ( SmbusDeviceAddress.SmbusDeviceAddress = SMBUS_LIB_SLAVE_ADDRESS (SmBusAddress); ReturnStatus = SmbusPpi->Execute ( - PeiServices, + (EFI_PEI_SERVICES **) PeiServices, SmbusPpi, SmbusDeviceAddress, SMBUS_LIB_COMMAND (SmBusAddress),