]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CorebootModulePkg: Convert TAB to white space for CbSupportDxe driver
authorMaurice Ma <maurice.ma@intel.com>
Wed, 18 May 2016 19:30:06 +0000 (12:30 -0700)
committerMaurice Ma <maurice.ma@intel.com>
Fri, 20 May 2016 17:11:52 +0000 (10:11 -0700)
Convert TAB to white space for CbSupportDxe driver.

Cc: Prince Agyeman <prince.agyeman@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Maurice Ma <maurice.ma@intel.com>
Reviewed-by: Lee Leahy <leroy.p.leahy@intel.com>
CorebootModulePkg/CbSupportDxe/CbSupportDxe.c

index 68baad6d00e0efdc511cfbb5ec6ba2a9e2deada8..d81b7c23b71737aaa24ffc5f4b3eb8abf00f938d 100755 (executable)
@@ -1,7 +1,7 @@
 /** @file\r
 /** @file\r
-  This driver will report some MMIO/IO resources to dxe core, extract smbios and acpi \r
+  This driver will report some MMIO/IO resources to dxe core, extract smbios and acpi\r
   tables from coreboot and install.\r
   tables from coreboot and install.\r
-  \r
+\r
   Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -37,7 +37,7 @@ CbReserveResourceInGcd (
   IN EFI_HANDLE            ImageHandle\r
   )\r
 {\r
   IN EFI_HANDLE            ImageHandle\r
   )\r
 {\r
-       EFI_STATUS               Status;\r
+  EFI_STATUS               Status;\r
 \r
   if (IsMMIO) {\r
     Status = gDS->AddMemorySpace (\r
 \r
   if (IsMMIO) {\r
     Status = gDS->AddMemorySpace (\r
@@ -103,21 +103,21 @@ OnReadyToBoot (
   IN  EFI_EVENT  Event,\r
   IN  VOID       *Context\r
   )\r
   IN  EFI_EVENT  Event,\r
   IN  VOID       *Context\r
   )\r
-{      \r
-       //\r
-       // Enable SCI\r
-       //\r
-       IoOr16 (mPmCtrlReg, BIT0);\r
-       \r
-       DEBUG ((EFI_D_ERROR, "Enable SCI bit at 0x%lx before boot\n", (UINT64)mPmCtrlReg));     \r
+{\r
+  //\r
+  // Enable SCI\r
+  //\r
+  IoOr16 (mPmCtrlReg, BIT0);\r
+\r
+  DEBUG ((EFI_D_ERROR, "Enable SCI bit at 0x%lx before boot\n", (UINT64)mPmCtrlReg));\r
 }\r
 \r
 /**\r
   Main entry for the Coreboot Support DXE module.\r
 }\r
 \r
 /**\r
   Main entry for the Coreboot Support DXE module.\r
-  \r
+\r
   @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
   @param[in] ImageHandle    The firmware allocated handle for the EFI image.\r
   @param[in] SystemTable    A pointer to the EFI System Table.\r
-  \r
+\r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
   @retval EFI_SUCCESS       The entry point is executed successfully.\r
   @retval other             Some error occurs when executing this entry point.\r
 \r
@@ -128,66 +128,66 @@ CbDxeEntryPoint (
   IN EFI_HANDLE         ImageHandle,\r
   IN EFI_SYSTEM_TABLE   *SystemTable\r
   )\r
   IN EFI_HANDLE         ImageHandle,\r
   IN EFI_SYSTEM_TABLE   *SystemTable\r
   )\r
-{  \r
-       EFI_STATUS Status;\r
-       EFI_EVENT  ReadyToBootEvent;\r
-       EFI_HOB_GUID_TYPE  *GuidHob;\r
-       SYSTEM_TABLE_INFO  *pSystemTableInfo;\r
-       ACPI_BOARD_INFO    *pAcpiBoardInfo;\r
-       \r
-       Status = EFI_SUCCESS;\r
-       //\r
-       // Report MMIO/IO Resources\r
-       //\r
-       Status = CbReserveResourceInGcd (TRUE, EfiGcdMemoryTypeMemoryMappedIo, 0xFEE00000, SIZE_1MB, 0, SystemTable); // LAPIC \r
-       ASSERT_EFI_ERROR (Status);\r
-       \r
-       Status = CbReserveResourceInGcd (TRUE, EfiGcdMemoryTypeMemoryMappedIo, 0xFEC00000, SIZE_4KB, 0, SystemTable); // IOAPIC \r
-       ASSERT_EFI_ERROR (Status);\r
-       \r
-       Status = CbReserveResourceInGcd (TRUE, EfiGcdMemoryTypeMemoryMappedIo, 0xFED00000, SIZE_1KB, 0, SystemTable); // HPET \r
-       ASSERT_EFI_ERROR (Status);\r
-       \r
-       //\r
-       // Find the system table information guid hob\r
-       //\r
-       GuidHob = GetFirstGuidHob (&gUefiSystemTableInfoGuid);\r
-       ASSERT (GuidHob != NULL);\r
+{\r
+  EFI_STATUS Status;\r
+  EFI_EVENT  ReadyToBootEvent;\r
+  EFI_HOB_GUID_TYPE  *GuidHob;\r
+  SYSTEM_TABLE_INFO  *pSystemTableInfo;\r
+  ACPI_BOARD_INFO    *pAcpiBoardInfo;\r
+\r
+  Status = EFI_SUCCESS;\r
+  //\r
+  // Report MMIO/IO Resources\r
+  //\r
+  Status = CbReserveResourceInGcd (TRUE, EfiGcdMemoryTypeMemoryMappedIo, 0xFEE00000, SIZE_1MB, 0, SystemTable); // LAPIC\r
+  ASSERT_EFI_ERROR (Status);\r
+\r
+  Status = CbReserveResourceInGcd (TRUE, EfiGcdMemoryTypeMemoryMappedIo, 0xFEC00000, SIZE_4KB, 0, SystemTable); // IOAPIC\r
+  ASSERT_EFI_ERROR (Status);\r
+\r
+  Status = CbReserveResourceInGcd (TRUE, EfiGcdMemoryTypeMemoryMappedIo, 0xFED00000, SIZE_1KB, 0, SystemTable); // HPET\r
+  ASSERT_EFI_ERROR (Status);\r
+\r
+  //\r
+  // Find the system table information guid hob\r
+  //\r
+  GuidHob = GetFirstGuidHob (&gUefiSystemTableInfoGuid);\r
+  ASSERT (GuidHob != NULL);\r
   pSystemTableInfo = (SYSTEM_TABLE_INFO *)GET_GUID_HOB_DATA (GuidHob);\r
   pSystemTableInfo = (SYSTEM_TABLE_INFO *)GET_GUID_HOB_DATA (GuidHob);\r
-       \r
-       //\r
-       // Install Acpi Table\r
-       //\r
-       if (pSystemTableInfo->AcpiTableBase != 0 && pSystemTableInfo->AcpiTableSize != 0) {             \r
-               DEBUG ((EFI_D_ERROR, "Install Acpi Table at 0x%lx, length 0x%x\n", pSystemTableInfo->AcpiTableBase, pSystemTableInfo->AcpiTableSize));  \r
-               Status = gBS->InstallConfigurationTable (&gEfiAcpiTableGuid, (VOID *)(UINTN)pSystemTableInfo->AcpiTableBase);\r
-               ASSERT_EFI_ERROR (Status);\r
-       }\r
-       \r
-       //\r
-       // Install Smbios Table\r
-       //\r
-       if (pSystemTableInfo->SmbiosTableBase != 0 && pSystemTableInfo->SmbiosTableSize != 0) {                 \r
-               DEBUG ((EFI_D_ERROR, "Install Smbios Table at 0x%lx, length 0x%x\n", pSystemTableInfo->SmbiosTableBase, pSystemTableInfo->SmbiosTableSize));    \r
-               Status = gBS->InstallConfigurationTable (&gEfiSmbiosTableGuid, (VOID *)(UINTN)pSystemTableInfo->SmbiosTableBase);\r
-               ASSERT_EFI_ERROR (Status);\r
-       }\r
-       \r
-       //\r
-       // Find the acpi board information guid hob\r
-       //\r
-       GuidHob = GetFirstGuidHob (&gUefiAcpiBoardInfoGuid);\r
-       ASSERT (GuidHob != NULL);\r
-  pAcpiBoardInfo = (ACPI_BOARD_INFO *)GET_GUID_HOB_DATA (GuidHob); \r
-  \r
+\r
+  //\r
+  // Install Acpi Table\r
+  //\r
+  if (pSystemTableInfo->AcpiTableBase != 0 && pSystemTableInfo->AcpiTableSize != 0) {\r
+    DEBUG ((EFI_D_ERROR, "Install Acpi Table at 0x%lx, length 0x%x\n", pSystemTableInfo->AcpiTableBase, pSystemTableInfo->AcpiTableSize));\r
+    Status = gBS->InstallConfigurationTable (&gEfiAcpiTableGuid, (VOID *)(UINTN)pSystemTableInfo->AcpiTableBase);\r
+    ASSERT_EFI_ERROR (Status);\r
+  }\r
+\r
+  //\r
+  // Install Smbios Table\r
+  //\r
+  if (pSystemTableInfo->SmbiosTableBase != 0 && pSystemTableInfo->SmbiosTableSize != 0) {\r
+    DEBUG ((EFI_D_ERROR, "Install Smbios Table at 0x%lx, length 0x%x\n", pSystemTableInfo->SmbiosTableBase, pSystemTableInfo->SmbiosTableSize));\r
+    Status = gBS->InstallConfigurationTable (&gEfiSmbiosTableGuid, (VOID *)(UINTN)pSystemTableInfo->SmbiosTableBase);\r
+    ASSERT_EFI_ERROR (Status);\r
+  }\r
+\r
+  //\r
+  // Find the acpi board information guid hob\r
+  //\r
+  GuidHob = GetFirstGuidHob (&gUefiAcpiBoardInfoGuid);\r
+  ASSERT (GuidHob != NULL);\r
+  pAcpiBoardInfo = (ACPI_BOARD_INFO *)GET_GUID_HOB_DATA (GuidHob);\r
+\r
   mPmCtrlReg = (UINTN)pAcpiBoardInfo->PmCtrlRegBase;\r
   mPmCtrlReg = (UINTN)pAcpiBoardInfo->PmCtrlRegBase;\r
-       DEBUG ((EFI_D_ERROR, "PmCtrlReg at 0x%lx\n", (UINT64)mPmCtrlReg));      \r
-        \r
-       //\r
-       // Register callback on the ready to boot event \r
-       // in order to enable SCI\r
-       //      \r
-       ReadyToBootEvent = NULL;\r
+  DEBUG ((EFI_D_ERROR, "PmCtrlReg at 0x%lx\n", (UINT64)mPmCtrlReg));\r
+\r
+  //\r
+  // Register callback on the ready to boot event\r
+  // in order to enable SCI\r
+  //\r
+  ReadyToBootEvent = NULL;\r
   Status = EfiCreateEventReadyToBootEx (\r
                     TPL_CALLBACK,\r
                     OnReadyToBoot,\r
   Status = EfiCreateEventReadyToBootEx (\r
                     TPL_CALLBACK,\r
                     OnReadyToBoot,\r
@@ -195,7 +195,7 @@ CbDxeEntryPoint (
                     &ReadyToBootEvent\r
                     );\r
   ASSERT_EFI_ERROR (Status);\r
                     &ReadyToBootEvent\r
                     );\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
   return EFI_SUCCESS;\r
 }\r
 \r
   return EFI_SUCCESS;\r
 }\r
 \r