From 3402aac7d985bf8a9f9d3c639f3fe93609380513 Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Tue, 19 Aug 2014 13:29:52 +0000 Subject: ARM Packages: Removed trailing spaces Trailing spaces create issue/warning when generating/applying patches. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ronald Cron Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15833 6f19259b-4bc3-4df7-8a09-765794883524 --- .../DebugAgentTimerLib/DebugAgentTimerLib.c | 33 +++++++------- .../DebugAgentTimerLib/DebugAgentTimerLib.inf | 3 +- Omap35xxPkg/Library/EblCmdLib/EblCmdLib.c | 4 +- Omap35xxPkg/Library/EblCmdLib/EblCmdLib.inf | 8 ++-- Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.c | 16 +++---- Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf | 8 ++-- .../Library/Omap35xxTimerLib/Omap35xxTimerLib.inf | 2 +- Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c | 16 +++---- Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.c | 52 +++++++++++----------- Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.inf | 18 ++++---- Omap35xxPkg/Library/OmapLib/OmapLib.c | 4 +- Omap35xxPkg/Library/OmapLib/OmapLib.inf | 14 +++--- .../Library/RealTimeClockLib/RealTimeClockLib.c | 14 +++--- .../Library/RealTimeClockLib/RealTimeClockLib.inf | 18 ++++---- .../Library/ResetSystemLib/ResetSystemLib.c | 8 ++-- .../Library/ResetSystemLib/ResetSystemLib.inf | 2 +- Omap35xxPkg/Library/SerialPortLib/SerialPortLib.c | 6 +-- .../Library/SerialPortLib/SerialPortLib.inf | 2 +- 18 files changed, 113 insertions(+), 115 deletions(-) (limited to 'Omap35xxPkg/Library') diff --git a/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.c b/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.c index b3da7366a9..de849d4fd6 100755 --- a/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.c +++ b/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.c @@ -2,7 +2,7 @@ Debug Agent timer lib for OMAP 35xx. Copyright (c) 2008 - 2010, Apple Inc. 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 @@ -44,7 +44,7 @@ EnableInterruptSource ( Bank = gVector / 32; Bit = 1UL << (gVector % 32); - + MmioWrite32 (INTCPS_MIR_CLEAR(Bank), Bit); } @@ -55,9 +55,9 @@ DisableInterruptSource ( { UINTN Bank; UINTN Bit; - + Bank = gVector / 32; - Bit = 1UL << (gVector % 32); + Bit = 1UL << (gVector % 32); MmioWrite32 (INTCPS_MIR_SET(Bank), Bit); } @@ -96,17 +96,17 @@ DebugAgentTimerIntialize ( CpuDeadLoop (); } // Set source clock for GPT2 - GPT9 to SYS_CLK - MmioOr32 (CM_CLKSEL_PER, 1 << (TimerNumber - 2)); + MmioOr32 (CM_CLKSEL_PER, 1 << (TimerNumber - 2)); } - - + + /** Set the period for the debug agent timer. Zero means disable the timer. @param[in] TimerPeriodMilliseconds Frequency of the debug agent timer. -**/ +**/ VOID EFIAPI DebugAgentTimerSetPeriod ( @@ -115,13 +115,13 @@ DebugAgentTimerSetPeriod ( { UINT64 TimerCount; INT32 LoadValue; - + if (TimerPeriodMilliseconds == 0) { // Turn off GPTIMER3 MmioWrite32 (gTCLR, TCLR_ST_OFF); - + DisableInterruptSource (); - } else { + } else { // Calculate required timer count TimerCount = DivU64x32(TimerPeriodMilliseconds * 1000000, PcdGet32(PcdDebugAgentTimerFreqNanoSeconds)); @@ -139,13 +139,13 @@ DebugAgentTimerSetPeriod ( EnableInterruptSource (); } } - + /** - Perform End Of Interrupt for the debug agent timer. This is called in the - interrupt handler after the interrupt has been processed. + Perform End Of Interrupt for the debug agent timer. This is called in the + interrupt handler after the interrupt has been processed. -**/ +**/ VOID EFIAPI DebugAgentTimerEndOfInterrupt ( @@ -153,7 +153,7 @@ DebugAgentTimerEndOfInterrupt ( ) { // Clear all timer interrupts - MmioWrite32 (gTISR, TISR_CLEAR_ALL); + MmioWrite32 (gTISR, TISR_CLEAR_ALL); // Poll interrupt status bits to ensure clearing while ((MmioRead32 (gTISR) & TISR_ALL_INTERRUPT_MASK) != TISR_NO_INTERRUPTS_PENDING); @@ -163,4 +163,3 @@ DebugAgentTimerEndOfInterrupt ( } - \ No newline at end of file diff --git a/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf b/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf index 551aee5385..07810d9afd 100755 --- a/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf +++ b/Omap35xxPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf @@ -33,7 +33,7 @@ EmbeddedPkg/EmbeddedPkg.dec Omap35xxPkg/Omap35xxPkg.dec ArmPkg/ArmPkg.dec - + [LibraryClasses] BaseLib @@ -44,4 +44,3 @@ [Pcd] gOmap35xxTokenSpaceGuid.PcdOmap35xxDebugAgentTimer gOmap35xxTokenSpaceGuid.PcdDebugAgentTimerFreqNanoSeconds - \ No newline at end of file diff --git a/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.c b/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.c index c59f75b5be..47161755de 100644 --- a/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.c +++ b/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.c @@ -2,7 +2,7 @@ Add custom commands for BeagleBoard development. Copyright (c) 2008 - 2009, Apple Inc. 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 @@ -35,7 +35,7 @@ Argv[0] - "%CommandName%" @param Argc Number of command arguments in Argv - @param Argv Array of strings that represent the parsed command line. + @param Argv Array of strings that represent the parsed command line. Argv[0] is the command name @return EFI_SUCCESS diff --git a/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.inf b/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.inf index 396444719f..dd7a13cf66 100644 --- a/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.inf +++ b/Omap35xxPkg/Library/EblCmdLib/EblCmdLib.inf @@ -20,7 +20,7 @@ FILE_GUID = ea62bdc3-1063-425f-8851-98cb47f213a8 MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = EblCmdLib|DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER + LIBRARY_CLASS = EblCmdLib|DXE_DRIVER UEFI_APPLICATION UEFI_DRIVER # @@ -40,9 +40,9 @@ [LibraryClasses] BaseLib DebugLib - + [Protocols] - + [Guids] - + [Pcd] diff --git a/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.c b/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.c index 54247e42e6..dcc518244a 100644 --- a/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.c +++ b/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.c @@ -2,7 +2,7 @@ Basic serial IO abstaction for GDB Copyright (c) 2008 - 2009, Apple Inc. 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 @@ -33,10 +33,10 @@ GdbSerialLibConstructor ( RETURN_STATUS EFIAPI GdbSerialInit ( - IN UINT64 BaudRate, - IN UINT8 Parity, - IN UINT8 DataBits, - IN UINT8 StopBits + IN UINT64 BaudRate, + IN UINT8 Parity, + IN UINT8 DataBits, + IN UINT8 StopBits ) { return RETURN_SUCCESS; @@ -46,7 +46,7 @@ BOOLEAN EFIAPI GdbIsCharAvailable ( VOID - ) + ) { UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; @@ -66,7 +66,7 @@ GdbGetChar ( UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; UINT32 RBR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_RBR_REG; CHAR8 Char; - + while ((MmioRead8(LSR) & UART_LSR_RX_FIFO_E_MASK) == UART_LSR_RX_FIFO_E_EMPTY); Char = MmioRead8(RBR); @@ -81,7 +81,7 @@ GdbPutChar ( { UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; UINT32 THR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_THR_REG; - + while ((MmioRead8(LSR) & UART_LSR_TX_FIFO_E_MASK) == UART_LSR_TX_FIFO_E_NOT_EMPTY); MmioWrite8(THR, Char); } diff --git a/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf b/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf index 3ab26bb90d..e7aa6c0af0 100644 --- a/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf +++ b/Omap35xxPkg/Library/GdbSerialLib/GdbSerialLib.inf @@ -1,14 +1,14 @@ #/** @file -# +# # Copyright (c) 2008 - 2010, Apple Inc. 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 -# +# # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# +# #**/ [Defines] @@ -34,7 +34,7 @@ [LibraryClasses] DebugLib IoLib - OmapLib + OmapLib [FixedPcd] gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart diff --git a/Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf b/Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf index 3afeeae53c..35086b1045 100644 --- a/Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf +++ b/Omap35xxPkg/Library/Omap35xxTimerLib/Omap35xxTimerLib.inf @@ -23,7 +23,7 @@ FILE_GUID = fe1d7183-9abb-42ce-9a3b-36d7c6a8959f MODULE_TYPE = BASE VERSION_STRING = 1.0 - LIBRARY_CLASS = TimerLib + LIBRARY_CLASS = TimerLib [Sources.common] TimerLib.c diff --git a/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c b/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c index 0b61020805..652c47b6f6 100644 --- a/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c +++ b/Omap35xxPkg/Library/Omap35xxTimerLib/TimerLib.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. 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 @@ -61,10 +61,10 @@ MicroSecondDelay ( ) { UINT64 NanoSeconds; - + NanoSeconds = MultU64x32(MicroSeconds, 1000); - while (NanoSeconds > (UINTN)-1) { + while (NanoSeconds > (UINTN)-1) { NanoSecondDelay((UINTN)-1); NanoSeconds -= (UINTN)-1; } @@ -87,12 +87,12 @@ NanoSecondDelay ( UINT32 TimerCountRegister; Delay = (NanoSeconds / PcdGet32(PcdEmbeddedPerformanceCounterPeriodInNanoseconds)) + 1; - + TimerCountRegister = TimerBase(PcdGet32(PcdOmap35xxFreeTimer)) + GPTIMER_TCRR; StartTime = MmioRead32 (TimerCountRegister); - do + do { CurrentTime = MmioRead32 (TimerCountRegister); ElapsedTime = CurrentTime - StartTime; @@ -108,7 +108,7 @@ EFIAPI GetPerformanceCounter ( VOID ) -{ +{ return (UINT64)MmioRead32 (TimerBase(PcdGet32(PcdOmap35xxFreeTimer)) + GPTIMER_TCRR); } @@ -123,11 +123,11 @@ GetPerformanceCounterProperties ( // Timer starts with the reload value *StartValue = (UINT64)MmioRead32 (TimerBase(PcdGet32(PcdOmap35xxFreeTimer)) + GPTIMER_TLDR); } - + if (EndValue != NULL) { // Timer counts up to 0xFFFFFFFF *EndValue = 0xFFFFFFFF; } - + return PcdGet64(PcdEmbeddedPerformanceCounterFrequencyInHz); } diff --git a/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.c b/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.c index d1183129a6..41cfefbebc 100755 --- a/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.c +++ b/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.c @@ -1,9 +1,9 @@ /** @file Abstractions for simple OMAP DMA channel. - + Copyright (c) 2008 - 2010, Apple Inc. 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 @@ -22,16 +22,16 @@ #include -/** +/** Configure OMAP DMA Channel - + @param Channel DMA Channel to configure - @param Dma4 Pointer to structure used to initialize DMA registers for the Channel - + @param Dma4 Pointer to structure used to initialize DMA registers for the Channel + @retval EFI_SUCCESS The range was mapped for the returned NumberOfBytes. @retval EFI_INVALID_PARAMETER Channel is not valid @retval EFI_DEVICE_ERROR The system hardware could not map the requested information. - + **/ EFI_STATUS EFIAPI @@ -50,13 +50,13 @@ EnableDmaChannel ( /* 1) Configure the transfer parameters in the logical DMA registers */ /*-------------------------------------------------------------------*/ - /* a) Set the data type CSDP[1:0], the Read/Write Port access type - CSDP[8:7]/[15:14], the Source/dest endianism CSDP[21]/CSDP[19], + /* a) Set the data type CSDP[1:0], the Read/Write Port access type + CSDP[8:7]/[15:14], the Source/dest endianism CSDP[21]/CSDP[19], write mode CSDP[17:16], source/dest packed or nonpacked CSDP[6]/CSDP[13] */ - + // Read CSDP RegVal = MmioRead32 (DMA4_CSDP (Channel)); - + // Build reg RegVal = ((RegVal & ~ 0x3) | DMA4->DataType ); RegVal = ((RegVal & ~(0x3 << 7)) | (DMA4->ReadPortAccessType << 7)); @@ -68,23 +68,23 @@ EnableDmaChannel ( RegVal = ((RegVal & ~(0x1 << 13)) | (DMA4->DestinationPacked << 13)); // Write CSDP MmioWrite32 (DMA4_CSDP (Channel), RegVal); - + /* b) Set the number of element per frame CEN[23:0]*/ MmioWrite32 (DMA4_CEN (Channel), DMA4->NumberOfElementPerFrame); - + /* c) Set the number of frame per block CFN[15:0]*/ MmioWrite32 (DMA4_CFN (Channel), DMA4->NumberOfFramePerTransferBlock); - + /* d) Set the Source/dest start address index CSSA[31:0]/CDSA[31:0]*/ MmioWrite32 (DMA4_CSSA (Channel), DMA4->SourceStartAddress); MmioWrite32 (DMA4_CDSA (Channel), DMA4->DestinationStartAddress); - + /* e) Set the Read Port addressing mode CCR[13:12], the Write Port addressing mode CCR[15:14], read/write priority CCR[6]/CCR[26] - I changed LCH CCR[20:19]=00 and CCR[4:0]=00000 to + I changed LCH CCR[20:19]=00 and CCR[4:0]=00000 to LCH CCR[20:19]= DMA4->WriteRequestNumber and CCR[4:0]=DMA4->ReadRequestNumber */ - + // Read CCR RegVal = MmioRead32 (DMA4_CCR (Channel)); @@ -95,13 +95,13 @@ EnableDmaChannel ( RegVal = ((RegVal & ~(0x3 << 14)) | (DMA4->WritePortAccessMode << 14)); RegVal = ((RegVal & ~(0x1 << 6)) | (DMA4->ReadPriority << 6)); RegVal = ((RegVal & ~(0x1 << 26)) | (DMA4->WritePriority << 26)); - + // Write CCR MmioWrite32 (DMA4_CCR (Channel), RegVal); - + /* f)- Set the source element index CSEI[15:0]*/ MmioWrite32 (DMA4_CSEI (Channel), DMA4->SourceElementIndex); - + /* - Set the source frame index CSFI[15:0]*/ MmioWrite32 (DMA4_CSFI (Channel), DMA4->SourceFrameIndex); @@ -111,7 +111,7 @@ EnableDmaChannel ( /* - Set the destination frame index CDFI[31:0]*/ MmioWrite32 (DMA4_CDFI (Channel), DMA4->DestinationFrameIndex); - + MmioWrite32 (DMA4_CDFI (Channel), DMA4->DestinationFrameIndex); // Enable all the status bits since we are polling @@ -126,17 +126,17 @@ EnableDmaChannel ( return EFI_SUCCESS; } -/** +/** Turn of DMA channel configured by EnableDma(). - + @param Channel DMA Channel to configure @param SuccesMask Bits in DMA4_CSR register indicate EFI_SUCCESS @param ErrorMask Bits in DMA4_CSR register indicate EFI_DEVICE_ERROR - + @retval EFI_SUCCESS DMA hardware disabled @retval EFI_INVALID_PARAMETER Channel is not valid @retval EFI_DEVICE_ERROR The system hardware could not map the requested information. - + **/ EFI_STATUS EFIAPI @@ -168,7 +168,7 @@ DisableDmaChannel ( MmioWrite32 (DMA4_CICR (Channel), 0); MmioWrite32 (DMA4_CSR (Channel), DMA4_CSR_RESET); - MmioAnd32 (DMA4_CCR(0), ~(DMA4_CCR_ENABLE | DMA4_CCR_RD_ACTIVE | DMA4_CCR_WR_ACTIVE)); + MmioAnd32 (DMA4_CCR(0), ~(DMA4_CCR_ENABLE | DMA4_CCR_RD_ACTIVE | DMA4_CCR_WR_ACTIVE)); return Status; } diff --git a/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.inf b/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.inf index d94ddf9867..b569cfbdef 100755 --- a/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.inf +++ b/Omap35xxPkg/Library/OmapDmaLib/OmapDmaLib.inf @@ -1,14 +1,14 @@ #/** @file -# +# # Copyright (c) 2008 - 2010, Apple Inc. 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 -# +# # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# +# #**/ [Defines] @@ -17,7 +17,7 @@ FILE_GUID = 09B17D99-BB07-49a8-B0D2-06D6AFCBE3AB MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = OmapDmaLib + LIBRARY_CLASS = OmapDmaLib [Sources.common] @@ -37,14 +37,14 @@ IoLib BaseMemoryLib ArmLib - - + + [Protocols] gEfiCpuArchProtocolGuid - + [Guids] - + [Pcd] [Depex] - gEfiCpuArchProtocolGuid \ No newline at end of file + gEfiCpuArchProtocolGuid diff --git a/Omap35xxPkg/Library/OmapLib/OmapLib.c b/Omap35xxPkg/Library/OmapLib/OmapLib.c index 4a6bc65d16..29645ee55a 100644 --- a/Omap35xxPkg/Library/OmapLib/OmapLib.c +++ b/Omap35xxPkg/Library/OmapLib/OmapLib.c @@ -1,7 +1,7 @@ /** @file Copyright (c) 2008 - 2009, Apple Inc. 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 @@ -17,7 +17,7 @@ #include #include -UINT32 +UINT32 GpioBase ( IN UINTN Port ) diff --git a/Omap35xxPkg/Library/OmapLib/OmapLib.inf b/Omap35xxPkg/Library/OmapLib/OmapLib.inf index 6de796910e..96eee09ab4 100644 --- a/Omap35xxPkg/Library/OmapLib/OmapLib.inf +++ b/Omap35xxPkg/Library/OmapLib/OmapLib.inf @@ -1,14 +1,14 @@ #/** @file -# +# # Copyright (c) 2008 - 2010, Apple Inc. 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 -# +# # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# +# #**/ [Defines] @@ -17,7 +17,7 @@ FILE_GUID = d035f5c2-1b92-4746-9f6c-5ff6202970df MODULE_TYPE = UEFI_DRIVER VERSION_STRING = 1.0 - LIBRARY_CLASS = OmapLib + LIBRARY_CLASS = OmapLib [Sources.common] OmapLib.c @@ -29,9 +29,9 @@ [LibraryClasses] DebugLib - + [Protocols] - + [Guids] - + [Pcd] diff --git a/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.c b/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.c index 0b9c70bc57..0ae452ebd7 100755 --- a/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.c +++ b/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.c @@ -1,14 +1,14 @@ /** @file * * Copyright (c) 2011, ARM Limited. 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 * -* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +* 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. * **/ diff --git a/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.inf b/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.inf index 7c4911c385..8b49638c23 100755 --- a/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.inf +++ b/Omap35xxPkg/Library/RealTimeClockLib/RealTimeClockLib.inf @@ -1,17 +1,17 @@ # Copyright (c) 2011, ARM Limited. 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 # -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# 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. # [Defines] INF_VERSION = 0x00010005 - BASE_NAME = RealTimeClockLib + BASE_NAME = RealTimeClockLib FILE_GUID = EC1713DB-7DB5-4c99-8FE2-6F52F95A1132 MODULE_TYPE = BASE VERSION_STRING = 1.0 @@ -24,7 +24,7 @@ MdePkg/MdePkg.dec EmbeddedPkg/EmbeddedPkg.dec Omap35xxPkg/Omap35xxPkg.dec - + [LibraryClasses] IoLib UefiLib diff --git a/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.c b/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.c index 42a73f2b18..82f04eaad1 100644 --- a/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.c +++ b/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.c @@ -1,11 +1,11 @@ /** @file Template library implementation to support ResetSystem Runtime call. - + Fill in the templates with what ever makes you system reset. Copyright (c) 2008 - 2009, Apple Inc. 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 @@ -66,7 +66,7 @@ LibResetSystem ( ASSERT (FALSE); return EFI_DEVICE_ERROR; } - + /** @@ -74,7 +74,7 @@ LibResetSystem ( @param ImageHandle The firmware allocated handle for the EFI image. @param SystemTable A pointer to the EFI System Table. - + @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. **/ diff --git a/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.inf b/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.inf index 8f1c79f17d..3ca5c51820 100644 --- a/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.inf +++ b/Omap35xxPkg/Library/ResetSystemLib/ResetSystemLib.inf @@ -34,7 +34,7 @@ [Pcd.common] gArmTokenSpaceGuid.PcdCpuResetAddress gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress - + [LibraryClasses] DebugLib BeagleBoardSystemLib diff --git a/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.c b/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.c index 2f93140e4c..58f70d5512 100644 --- a/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.c +++ b/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.c @@ -3,7 +3,7 @@ Copyright (c) 2008 - 2009, Apple Inc. 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 @@ -59,7 +59,7 @@ SerialPortWrite ( UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; UINT32 THR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_THR_REG; UINTN Count; - + for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) { while ((MmioRead8(LSR) & UART_LSR_TX_FIFO_E_MASK) == UART_LSR_TX_FIFO_E_NOT_EMPTY); MmioWrite8(THR, *Buffer); @@ -89,7 +89,7 @@ SerialPortRead ( UINT32 LSR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_LSR_REG; UINT32 RBR = UartBase(PcdGet32(PcdOmap35xxConsoleUart)) + UART_RBR_REG; UINTN Count; - + for (Count = 0; Count < NumberOfBytes; Count++, Buffer++) { while ((MmioRead8(LSR) & UART_LSR_RX_FIFO_E_MASK) == UART_LSR_RX_FIFO_E_EMPTY); *Buffer = MmioRead8(RBR); diff --git a/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf b/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf index 340f4a6a4d..45402e4006 100644 --- a/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf +++ b/Omap35xxPkg/Library/SerialPortLib/SerialPortLib.inf @@ -38,7 +38,7 @@ EmbeddedPkg/EmbeddedPkg.dec MdePkg/MdePkg.dec Omap35xxPkg/Omap35xxPkg.dec - + [FixedPcd] gOmap35xxTokenSpaceGuid.PcdOmap35xxConsoleUart -- cgit v1.2.3