]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiPayloadPkg/Library/CbParseLib/CbParseLib.c
UefiPayloadPkg: Fix ECC reported issues
[mirror_edk2.git] / UefiPayloadPkg / Library / CbParseLib / CbParseLib.c
index 57e1cadc342ea57e06451bbce6d99fac442874b0..46314e55663cd1162bebaf3093594ff782c42492 100644 (file)
@@ -322,7 +322,7 @@ ParseCbMemTable (
   )\r
 {\r
   EFI_STATUS               Status;\r
-  struct cb_memory         *rec;\r
+  CB_MEMORY                *Rec;\r
   struct cb_memory_range   *Range;\r
   UINT64                   Start;\r
   UINT64                   Size;\r
@@ -339,13 +339,13 @@ ParseCbMemTable (
   //\r
   // Get the coreboot memory table\r
   //\r
-  rec = (struct cb_memory *)FindCbTag (CB_TAG_MEMORY);\r
-  if (rec == NULL) {\r
+  Rec = (CB_MEMORY *)FindCbTag (CB_TAG_MEMORY);\r
+  if (Rec == NULL) {\r
     return Status;\r
   }\r
 \r
-  for (Index = 0; Index < MEM_RANGE_COUNT(rec); Index++) {\r
-    Range = MEM_RANGE_PTR(rec, Index);\r
+  for (Index = 0; Index < MEM_RANGE_COUNT(Rec); Index++) {\r
+    Range = MEM_RANGE_PTR(Rec, Index);\r
     Start = cb_unpack64(Range->start);\r
     Size = cb_unpack64(Range->size);\r
 \r
@@ -380,7 +380,7 @@ ParseMemoryInfo (
   IN  VOID                  *Params\r
   )\r
 {\r
-  struct cb_memory         *rec;\r
+  CB_MEMORY                *Rec;\r
   struct cb_memory_range   *Range;\r
   UINTN                    Index;\r
   MEMORY_MAP_ENTRY         MemoryMap;\r
@@ -388,13 +388,13 @@ ParseMemoryInfo (
   //\r
   // Get the coreboot memory table\r
   //\r
-  rec = (struct cb_memory *)FindCbTag (CB_TAG_MEMORY);\r
-  if (rec == NULL) {\r
+  Rec = (CB_MEMORY *)FindCbTag (CB_TAG_MEMORY);\r
+  if (Rec == NULL) {\r
     return RETURN_NOT_FOUND;\r
   }\r
 \r
-  for (Index = 0; Index < MEM_RANGE_COUNT(rec); Index++) {\r
-    Range = MEM_RANGE_PTR(rec, Index);\r
+  for (Index = 0; Index < MEM_RANGE_COUNT(Rec); Index++) {\r
+    Range = MEM_RANGE_PTR(Rec, Index);\r
     MemoryMap.Base = cb_unpack64(Range->start);\r
     MemoryMap.Size = cb_unpack64(Range->size);\r
     MemoryMap.Type = (UINT8)Range->type;\r
@@ -449,7 +449,7 @@ ParseSystemTable (
 /**\r
   Find the serial port information\r
 \r
-  @param  SERIAL_PORT_INFO   Pointer to serial port info structure\r
+  @param  SerialPortInfo     Pointer to serial port info structure\r
 \r
   @retval RETURN_SUCCESS     Successfully find the serial port information.\r
   @retval RETURN_NOT_FOUND   Failed to find the serial port information .\r