]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Csm/CsmSupportLib/LegacyPlatform.c
OvmfPkg: replace old EFI_D_ debug levels with new DEBUG_ ones
[mirror_edk2.git] / OvmfPkg / Csm / CsmSupportLib / LegacyPlatform.c
index 0ccfa975851829b1b3b9e746efadf7b0fa0e482f..96f9934b2086454f39108d2e7a37d1e7b5b7ea51 100644 (file)
@@ -3,13 +3,7 @@
 \r
   Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
 \r
-  This program and the accompanying materials are\r
-  licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -256,8 +250,8 @@ GetSelectedVgaDeviceInfo (
   *VgaHandle = NULL;\r
 \r
   //\r
-  // Initialize variable states.  Ths is important for selecting the VGA device\r
-  // if multiple devices exist behind a single bridge.\r
+  // Initialize variable states.  This is important for selecting the VGA\r
+  // device if multiple devices exist behind a single bridge.\r
   //\r
   HandleCount = 0;\r
   HandleBuffer = NULL;\r
@@ -288,7 +282,7 @@ GetSelectedVgaDeviceInfo (
     Status = gBS->HandleProtocol (HandleBuffer[Index], &gEfiPciIoProtocolGuid, (VOID**)&PciIo);\r
     if (!EFI_ERROR (Status)) {\r
       //\r
-      // Detemine if this is in the correct bus range.\r
+      // Determine if this is in the correct bus range.\r
       //\r
       Status = PciIo->GetLocation (PciIo, &Segment, &Bus, &Device, &Function);\r
       if (EFI_ERROR(Status) || (Bus < MinBus || Bus > MaxBus)) {\r
@@ -315,7 +309,7 @@ GetSelectedVgaDeviceInfo (
       if (!IS_PCI_VGA (&Pci)) {\r
         continue;\r
       }\r
-      DEBUG ((EFI_D_INFO,\r
+      DEBUG ((DEBUG_INFO,\r
         "PCI VGA: 0x%04x:0x%04x\n",\r
         Pci.Hdr.VendorId,\r
         Pci.Hdr.DeviceId\r
@@ -507,7 +501,7 @@ GetPlatformHandle (
 \r
             //\r
             // Be sure to only fill out correct information based on platform\r
-            // configureation.\r
+            // configuration.\r
             //\r
             HddInfo[HddIndex].Status        |= HDD_PRIMARY;\r
             HddInfo[HddIndex].Bus           = (UINT32)Bus;\r
@@ -888,7 +882,7 @@ TranslatePirq (
         if (PirqData == 0) {\r
 \r
           //\r
-          // No unused interrpts, so start reusing them.\r
+          // No unused interrupts, so start reusing them.\r
           //\r
           MatchData = (UINT8) (~MatchData);\r
         }\r