mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
UefiPayloadPkg: Fix the issue detected by Uncrustify
Signed-off-by: Guo Dong <guo.dong@intel.com>
This commit is contained in:
parent
c5811ef1b3
commit
4af5849556
@ -69,7 +69,7 @@ UPL_PCI_SEGMENT_INFO_HOB *mUplPciSegmentInfoHob;
|
||||
/**
|
||||
Build a Handoff Information Table HOB
|
||||
|
||||
This function initialize a HOB region from EfiMemoryBegin to
|
||||
This function initializes a HOB region from EfiMemoryBegin to
|
||||
EfiMemoryTop. And EfiFreeMemoryBottom and EfiFreeMemoryTop should
|
||||
be inside the HOB region.
|
||||
|
||||
@ -93,7 +93,7 @@ HobConstructor (
|
||||
/**
|
||||
It will record the memory node initialized.
|
||||
|
||||
@param[in] Node memory node is going to parsing..
|
||||
@param[in] Node memory node is going to parsing.
|
||||
**/
|
||||
VOID
|
||||
RecordMemoryNode (
|
||||
@ -108,7 +108,7 @@ RecordMemoryNode (
|
||||
/**
|
||||
Check the memory node if initialized.
|
||||
|
||||
@param[in] Node memory node is going to parsing..
|
||||
@param[in] Node memory node is going to parsing.
|
||||
|
||||
@return TRUE memory node was initialized. don't parse it again.
|
||||
@return FALSE memory node wasn't initialized, go to parse it.
|
||||
@ -620,6 +620,7 @@ ParseSerialPort (
|
||||
if (Value32 < SIZE_64KB) {
|
||||
Serial->UseMmio = FALSE;
|
||||
}
|
||||
|
||||
break;
|
||||
case 2:
|
||||
Serial->RegisterBase = Fdt32ToCpu (Data32[1]);
|
||||
@ -629,12 +630,14 @@ ParseSerialPort (
|
||||
} else {
|
||||
Serial->RegisterBase |= LShiftU64 (Value32, 32);
|
||||
}
|
||||
|
||||
break;
|
||||
case 3:
|
||||
// First U32 format: npt000ss bbbbbbbb dddddfff rrrrrrrr
|
||||
if ((Value32 & 0x03000000) == 0x01000000) {
|
||||
Serial->UseMmio = FALSE;
|
||||
}
|
||||
|
||||
Serial->RegisterBase = LShiftU64 ((UINT64)Fdt32ToCpu (Data32[1]), 32) | Fdt32ToCpu (Data32[2]);
|
||||
break;
|
||||
default:
|
||||
@ -642,6 +645,7 @@ ParseSerialPort (
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG ((DEBUG_INFO, "Serial->UseMmio = %x\n", Serial->UseMmio));
|
||||
DEBUG ((DEBUG_INFO, "Serial->RegisterBase = 0x%x\n", Serial->RegisterBase));
|
||||
DEBUG ((DEBUG_INFO, "Serial->BaudRate = %d\n", Serial->BaudRate));
|
||||
@ -917,8 +921,7 @@ ParseDtb (
|
||||
}
|
||||
}
|
||||
}
|
||||
} // end of memory node
|
||||
else {
|
||||
} else {
|
||||
PropertyPtr = FdtGetProperty (Fdt, Node, "compatible", &TempLen);
|
||||
if (PropertyPtr == NULL) {
|
||||
continue;
|
||||
@ -1037,9 +1040,10 @@ ParseDtb (
|
||||
|
||||
/**
|
||||
It will Parse FDT -node based on information from bootloaders.
|
||||
@param[in] FdtBase The starting memory address of FdtBase
|
||||
@retval HobList The base address of Hoblist.
|
||||
|
||||
@param[in] FdtBase The starting memory address of FdtBase
|
||||
|
||||
@retval HobList The base address of Hoblist.
|
||||
**/
|
||||
UINTN
|
||||
EFIAPI
|
||||
@ -1068,7 +1072,7 @@ UplInitHob (
|
||||
|
||||
NHobAddress = 0;
|
||||
//
|
||||
// Check parameter type(
|
||||
// Check parameter type
|
||||
//
|
||||
if (FdtCheckHeader (FdtBase) == 0) {
|
||||
DEBUG ((DEBUG_INFO, "%a() FDT blob\n", __func__));
|
||||
|
Loading…
x
Reference in New Issue
Block a user