IntelFrameworkPkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Internal header file for Smbus library.
|
||||
|
||||
Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -46,7 +46,7 @@ InternalGetSmbusPpi (
|
||||
);
|
||||
|
||||
/**
|
||||
Executes an SMBus operation to an SMBus controller.
|
||||
Executes an SMBus operation to an SMBus controller.
|
||||
|
||||
This function provides a standard way to execute Smbus script
|
||||
as defined in the SmBus Specification. The data can either be of
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Implementation of SmBusLib class library for PEI phase.
|
||||
|
||||
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
@@ -19,14 +19,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
This internal function retrieves Smbus PPI from PPI database.
|
||||
If gEfiPeiSmbusPpiGuid can not be located, then ASSERT()
|
||||
|
||||
|
||||
@return The pointer to Smbus PPI.
|
||||
|
||||
**/
|
||||
EFI_PEI_SMBUS_PPI *
|
||||
InternalGetSmbusPpi (
|
||||
VOID
|
||||
)
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_PEI_SMBUS_PPI *SmbusPpi;
|
||||
@@ -39,7 +39,7 @@ InternalGetSmbusPpi (
|
||||
}
|
||||
|
||||
/**
|
||||
Executes an SMBus operation to an SMBus controller.
|
||||
Executes an SMBus operation to an SMBus controller.
|
||||
|
||||
This function provides a standard way to execute Smbus script
|
||||
as defined in the SmBus Specification. The data can either be of
|
||||
@@ -83,7 +83,7 @@ InternalSmBusExec (
|
||||
SmbusDeviceAddress,
|
||||
SMBUS_LIB_COMMAND (SmBusAddress),
|
||||
SmbusOperation,
|
||||
SMBUS_LIB_PEC (SmBusAddress),
|
||||
SMBUS_LIB_PEC (SmBusAddress),
|
||||
&Length,
|
||||
Buffer
|
||||
);
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# SMBUS library that layers on top of the SMBUS PPI.
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -20,7 +20,7 @@
|
||||
FILE_GUID = 51C4C059-67F0-4e3c-9A55-FF42A8291C8C
|
||||
MODULE_TYPE = PEIM
|
||||
VERSION_STRING = 1.0
|
||||
LIBRARY_CLASS = SmbusLib|PEIM
|
||||
LIBRARY_CLASS = SmbusLib|PEIM
|
||||
|
||||
|
||||
#
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
Implementation of SmBusLib class library for PEI phase.
|
||||
|
||||
Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
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
|
||||
|
||||
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: SmbusLib.c
|
||||
@@ -189,7 +189,7 @@ SmBusReadDataByte (
|
||||
ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
|
||||
|
||||
InternalSmBusExec (EfiSmbusReadByte, SmBusAddress, 1, &Byte, Status);
|
||||
|
||||
|
||||
return Byte;
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ SmBusWriteDataByte (
|
||||
|
||||
Byte = Value;
|
||||
InternalSmBusExec (EfiSmbusWriteByte, SmBusAddress, 1, &Byte, Status);
|
||||
|
||||
|
||||
return Value;
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ SmBusWriteDataByte (
|
||||
If Status is not NULL, then the status of the executed command is returned in Status.
|
||||
If Length in SmBusAddress is not zero, then ASSERT().
|
||||
If any reserved bits of SmBusAddress are set, then ASSERT().
|
||||
|
||||
|
||||
@param SmBusAddress Address that encodes the SMBUS Slave Address,
|
||||
SMBUS Command, SMBUS Data Length, and PEC.
|
||||
@param Status Return status for the executed command.
|
||||
@@ -263,7 +263,7 @@ SmBusReadDataWord (
|
||||
ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
|
||||
|
||||
InternalSmBusExec (EfiSmbusReadWord, SmBusAddress, 2, &Word, Status);
|
||||
|
||||
|
||||
return Word;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ SmBusProcessCall (
|
||||
ASSERT (SMBUS_LIB_RESERVED (SmBusAddress) == 0);
|
||||
|
||||
InternalSmBusExec (EfiSmbusProcessCall, SmBusAddress, 2, &Value, Status);
|
||||
|
||||
|
||||
return Value;
|
||||
}
|
||||
|
||||
@@ -387,7 +387,7 @@ SmBusReadBlock (
|
||||
The SMBUS slave address, SMBUS command, and SMBUS length fields of SmBusAddress are required.
|
||||
Bytes are written to the SMBUS from Buffer.
|
||||
The number of bytes written is returned, and will never return a value larger than 32-bytes.
|
||||
If Status is not NULL, then the status of the executed command is returned in Status.
|
||||
If Status is not NULL, then the status of the executed command is returned in Status.
|
||||
If Length in SmBusAddress is zero or greater than 32, then ASSERT().
|
||||
If Buffer is NULL, then ASSERT().
|
||||
If any reserved bits of SmBusAddress are set, then ASSERT().
|
||||
|
Reference in New Issue
Block a user