Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Cc: Eric Dong <[email protected]>
---
 .../Csm/LegacyBiosDxe/LegacySio.c                  | 34 +++++++++++-----------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c 
b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c
index 9df91d1..9844d64 100644
--- a/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c
+++ b/IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c
@@ -33,9 +33,9 @@ LegacyBiosBuildSioDataFromIsaIo (
   )
 {
   EFI_STATUS                          Status;
-  DEVICE_PRODUCER_SERIAL              *Sio1Ptr;
-  DEVICE_PRODUCER_PARALLEL            *Sio2Ptr;
-  DEVICE_PRODUCER_FLOPPY              *Sio3Ptr;
+  DEVICE_PRODUCER_SERIAL              *SioSerial;
+  DEVICE_PRODUCER_PARALLEL            *SioParallel;
+  DEVICE_PRODUCER_FLOPPY              *SioFloppy;
   UINTN                               HandleCount;
   EFI_HANDLE                          *HandleBuffer;
   UINTN                               Index;
@@ -137,10 +137,10 @@ LegacyBiosBuildSioDataFromIsaIo (
         // We want resource for legacy even if no 32-bit driver installed
         //
         for (ChildIndex = 0; ChildIndex < EntryCount; ChildIndex++) {
-          Sio1Ptr           = &SioPtr->Serial[ResourceList->Device.UID];
-          Sio1Ptr->Address  = (UINT16) IoResource->StartRange;
-          Sio1Ptr->Irq      = (UINT8) InterruptResource->StartRange;
-          Sio1Ptr->Mode     = DEVICE_SERIAL_MODE_NORMAL | 
DEVICE_SERIAL_MODE_DUPLEX_HALF;
+          SioSerial           = &SioPtr->Serial[ResourceList->Device.UID];
+          SioSerial->Address  = (UINT16) IoResource->StartRange;
+          SioSerial->Irq      = (UINT8) InterruptResource->StartRange;
+          SioSerial->Mode     = DEVICE_SERIAL_MODE_NORMAL | 
DEVICE_SERIAL_MODE_DUPLEX_HALF;
         }
 
         FreePool (OpenInfoBuffer);
@@ -158,11 +158,11 @@ LegacyBiosBuildSioDataFromIsaIo (
           InterruptResource != NULL &&
           DmaResource != NULL
           ) {
-        Sio2Ptr           = &SioPtr->Parallel[ResourceList->Device.UID];
-        Sio2Ptr->Address  = (UINT16) IoResource->StartRange;
-        Sio2Ptr->Irq      = (UINT8) InterruptResource->StartRange;
-        Sio2Ptr->Dma      = (UINT8) DmaResource->StartRange;
-        Sio2Ptr->Mode     = DEVICE_PARALLEL_MODE_MODE_OUTPUT_ONLY;
+        SioParallel           = &SioPtr->Parallel[ResourceList->Device.UID];
+        SioParallel->Address  = (UINT16) IoResource->StartRange;
+        SioParallel->Irq      = (UINT8) InterruptResource->StartRange;
+        SioParallel->Dma      = (UINT8) DmaResource->StartRange;
+        SioParallel->Mode     = DEVICE_PARALLEL_MODE_MODE_OUTPUT_ONLY;
       }
     }
     //
@@ -172,11 +172,11 @@ LegacyBiosBuildSioDataFromIsaIo (
       if (IoResource != NULL && InterruptResource != NULL && DmaResource != 
NULL) {
         Status = gBS->HandleProtocol (HandleBuffer[Index], 
&gEfiBlockIoProtocolGuid, (VOID **) &BlockIo);
         if (!EFI_ERROR (Status)) {
-          Sio3Ptr           = &SioPtr->Floppy;
-          Sio3Ptr->Address  = (UINT16) IoResource->StartRange;
-          Sio3Ptr->Irq      = (UINT8) InterruptResource->StartRange;
-          Sio3Ptr->Dma      = (UINT8) DmaResource->StartRange;
-          Sio3Ptr->NumberOfFloppy++;
+          SioFloppy           = &SioPtr->Floppy;
+          SioFloppy->Address  = (UINT16) IoResource->StartRange;
+          SioFloppy->Irq      = (UINT8) InterruptResource->StartRange;
+          SioFloppy->Dma      = (UINT8) DmaResource->StartRange;
+          SioFloppy->NumberOfFloppy++;
         }
       }
     }
-- 
2.8.3.windows.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to