diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-06-12 14:58:00 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-06-14 09:45:40 +0800 |
commit | aa7f11db4dfbc3b18c09940865dd01d5c3bc2c51 (patch) | |
tree | 74d2e330c70d3abee59ba533b09df056cab53b87 /IntelFrameworkModulePkg/Csm | |
parent | 7053060f5f9ccc373ccb29607397d0f82c519751 (diff) | |
download | edk2-aa7f11db4dfbc3b18c09940865dd01d5c3bc2c51.zip edk2-aa7f11db4dfbc3b18c09940865dd01d5c3bc2c51.tar.gz edk2-aa7f11db4dfbc3b18c09940865dd01d5c3bc2c51.tar.bz2 |
IntelFrameworkModulePkg/LegacyBios: Rename local variables
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'IntelFrameworkModulePkg/Csm')
-rw-r--r-- | IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacySio.c | 34 |
1 files 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++;
}
}
}
|