MdeModulePkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the MdeModulePkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
7c7184e201
commit
1436aea4d5
@@ -28,19 +28,19 @@
|
||||
**/
|
||||
UINT8
|
||||
AhciS3GetEumeratePorts (
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *HcDevicePath,
|
||||
IN UINTN HcDevicePathLength,
|
||||
OUT UINT32 *PortBitMap
|
||||
IN EFI_DEVICE_PATH_PROTOCOL *HcDevicePath,
|
||||
IN UINTN HcDevicePathLength,
|
||||
OUT UINT32 *PortBitMap
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
UINT8 DummyData;
|
||||
UINTN S3InitDevicesLength;
|
||||
EFI_DEVICE_PATH_PROTOCOL *S3InitDevices;
|
||||
EFI_DEVICE_PATH_PROTOCOL *DevicePathInst;
|
||||
UINTN DevicePathInstLength;
|
||||
BOOLEAN EntireEnd;
|
||||
SATA_DEVICE_PATH *SataDeviceNode;
|
||||
EFI_STATUS Status;
|
||||
UINT8 DummyData;
|
||||
UINTN S3InitDevicesLength;
|
||||
EFI_DEVICE_PATH_PROTOCOL *S3InitDevices;
|
||||
EFI_DEVICE_PATH_PROTOCOL *DevicePathInst;
|
||||
UINTN DevicePathInstLength;
|
||||
BOOLEAN EntireEnd;
|
||||
SATA_DEVICE_PATH *SataDeviceNode;
|
||||
|
||||
*PortBitMap = 0;
|
||||
|
||||
@@ -51,7 +51,7 @@ AhciS3GetEumeratePorts (
|
||||
S3InitDevices = NULL;
|
||||
S3InitDevicesLength = sizeof (DummyData);
|
||||
EntireEnd = FALSE;
|
||||
Status = RestoreLockBox (&gS3StorageDeviceInitListGuid, &DummyData, &S3InitDevicesLength);
|
||||
Status = RestoreLockBox (&gS3StorageDeviceInitListGuid, &DummyData, &S3InitDevicesLength);
|
||||
if (Status != EFI_BUFFER_TOO_SMALL) {
|
||||
return 0;
|
||||
} else {
|
||||
@@ -87,7 +87,7 @@ AhciS3GetEumeratePorts (
|
||||
}
|
||||
|
||||
DevicePathInst = S3InitDevices;
|
||||
S3InitDevices = (EFI_DEVICE_PATH_PROTOCOL *)((UINTN) S3InitDevices + DevicePathInstLength);
|
||||
S3InitDevices = (EFI_DEVICE_PATH_PROTOCOL *)((UINTN)S3InitDevices + DevicePathInstLength);
|
||||
|
||||
if (HcDevicePathLength >= DevicePathInstLength) {
|
||||
continue;
|
||||
@@ -101,25 +101,30 @@ AhciS3GetEumeratePorts (
|
||||
DevicePathInst,
|
||||
HcDevicePath,
|
||||
HcDevicePathLength - sizeof (EFI_DEVICE_PATH_PROTOCOL)
|
||||
) == 0) {
|
||||
) == 0)
|
||||
{
|
||||
//
|
||||
// Get the port number.
|
||||
//
|
||||
while (DevicePathInst->Type != END_DEVICE_PATH_TYPE) {
|
||||
if ((DevicePathInst->Type == MESSAGING_DEVICE_PATH) &&
|
||||
(DevicePathInst->SubType == MSG_SATA_DP)) {
|
||||
SataDeviceNode = (SATA_DEVICE_PATH *) DevicePathInst;
|
||||
(DevicePathInst->SubType == MSG_SATA_DP))
|
||||
{
|
||||
SataDeviceNode = (SATA_DEVICE_PATH *)DevicePathInst;
|
||||
//
|
||||
// For now, the driver only support upto AHCI_MAX_PORTS ports and
|
||||
// devices directly connected to a HBA.
|
||||
//
|
||||
if ((SataDeviceNode->HBAPortNumber >= AHCI_MAX_PORTS) ||
|
||||
(SataDeviceNode->PortMultiplierPortNumber != 0xFFFF)) {
|
||||
(SataDeviceNode->PortMultiplierPortNumber != 0xFFFF))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
*PortBitMap |= (UINT32)BIT0 << SataDeviceNode->HBAPortNumber;
|
||||
break;
|
||||
}
|
||||
|
||||
DevicePathInst = NextDevicePathNode (DevicePathInst);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user