From 6626ad113ee5420201ea7c1f173f718978295eed Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 16 Mar 2007 02:33:49 +0000 Subject: Perfect the msa of the following modules, DiskIo, Partition, English and Ebc. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2480 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.msa | 5 ++-- EdkModulePkg/Universal/Disk/DiskIo/Dxe/diskio.c | 8 +++---- .../Universal/Disk/Partition/Dxe/ElTorito.c | 2 +- EdkModulePkg/Universal/Disk/Partition/Dxe/Gpt.c | 28 +++++++++++----------- EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c | 4 ++-- .../Universal/Disk/Partition/Dxe/Partition.c | 10 ++++---- .../Universal/Disk/Partition/Dxe/Partition.msa | 18 ++++++++++---- .../Disk/UnicodeCollation/English/Dxe/English.msa | 7 +++--- 8 files changed, 47 insertions(+), 35 deletions(-) (limited to 'EdkModulePkg/Universal/Disk') diff --git a/EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.msa b/EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.msa index da66204..f5b93c8 100644 --- a/EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.msa +++ b/EdkModulePkg/Universal/Disk/DiskIo/Dxe/DiskIo.msa @@ -7,7 +7,7 @@ 1.0 Component description file for DiskIo module. DiskIo driver that layers it's self on every Block IO protocol in the system. - Copyright (c) 2006, Intel Corporation + Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -22,8 +22,9 @@ DiskIo - + DebugLib + Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg. UefiDriverModelLib diff --git a/EdkModulePkg/Universal/Disk/DiskIo/Dxe/diskio.c b/EdkModulePkg/Universal/Disk/DiskIo/Dxe/diskio.c index 62ae6d2..d71e0aa 100644 --- a/EdkModulePkg/Universal/Disk/DiskIo/Dxe/diskio.c +++ b/EdkModulePkg/Universal/Disk/DiskIo/Dxe/diskio.c @@ -171,7 +171,7 @@ ErrorExit: if (EFI_ERROR (Status)) { if (Private != NULL) { - gBS->FreePool (Private); + FreePool (Private); } gBS->CloseProtocol ( @@ -249,7 +249,7 @@ DiskIoDriverBindingStop ( } if (!EFI_ERROR (Status)) { - gBS->FreePool (Private); + FreePool (Private); } return Status; @@ -474,7 +474,7 @@ DiskIoReadDisk ( Done: if (PreData != NULL) { - gBS->FreePool (PreData); + FreePool (PreData); } return Status; @@ -722,7 +722,7 @@ DiskIoWriteDisk ( Done: if (PreData != NULL) { - gBS->FreePool (PreData); + FreePool (PreData); } return Status; diff --git a/EdkModulePkg/Universal/Disk/Partition/Dxe/ElTorito.c b/EdkModulePkg/Universal/Disk/Partition/Dxe/ElTorito.c index d740d24..5d2a07e 100644 --- a/EdkModulePkg/Universal/Disk/Partition/Dxe/ElTorito.c +++ b/EdkModulePkg/Universal/Disk/Partition/Dxe/ElTorito.c @@ -279,7 +279,7 @@ Returns: } } - gBS->FreePool (VolDescriptor); + FreePool (VolDescriptor); return Found; } diff --git a/EdkModulePkg/Universal/Disk/Partition/Dxe/Gpt.c b/EdkModulePkg/Universal/Disk/Partition/Dxe/Gpt.c index 4b4910a..61a4ec5 100644 --- a/EdkModulePkg/Universal/Disk/Partition/Dxe/Gpt.c +++ b/EdkModulePkg/Universal/Disk/Partition/Dxe/Gpt.c @@ -310,19 +310,19 @@ Returns: Done: if (ProtectiveMbr != NULL) { - gBS->FreePool (ProtectiveMbr); + FreePool (ProtectiveMbr); } if (PrimaryHeader != NULL) { - gBS->FreePool (PrimaryHeader); + FreePool (PrimaryHeader); } if (BackupHeader != NULL) { - gBS->FreePool (BackupHeader); + FreePool (BackupHeader); } if (PartEntry != NULL) { - gBS->FreePool (PartEntry); + FreePool (PartEntry); } if (PEntryStatus != NULL) { - gBS->FreePool (PEntryStatus); + FreePool (PEntryStatus); } return GptValid; @@ -376,7 +376,7 @@ Returns: PartHdr ); if (EFI_ERROR (Status)) { - gBS->FreePool (PartHdr); + FreePool (PartHdr); return FALSE; } @@ -385,18 +385,18 @@ Returns: PartHdr->MyLBA != Lba ) { DEBUG ((EFI_D_INFO, " !Valid efi partition table header\n")); - gBS->FreePool (PartHdr); + FreePool (PartHdr); return FALSE; } CopyMem (PartHeader, PartHdr, sizeof (EFI_PARTITION_TABLE_HEADER)); if (!PartitionCheckGptEntryArrayCRC (BlockIo, DiskIo, PartHeader)) { - gBS->FreePool (PartHdr); + FreePool (PartHdr); return FALSE; } DEBUG ((EFI_D_INFO, " Valid efi partition table header\n")); - gBS->FreePool (PartHdr); + FreePool (PartHdr); return TRUE; } @@ -449,7 +449,7 @@ Returns: Ptr ); if (EFI_ERROR (Status)) { - gBS->FreePool (Ptr); + FreePool (Ptr); return FALSE; } @@ -458,11 +458,11 @@ Returns: Status = gBS->CalculateCrc32 (Ptr, Size, &Crc); if (EFI_ERROR (Status)) { DEBUG ((EFI_D_ERROR, "CheckPEntryArrayCRC: Crc calculation failed\n")); - gBS->FreePool (Ptr); + FreePool (Ptr); return FALSE; } - gBS->FreePool (Ptr); + FreePool (Ptr); return (BOOLEAN) (PartHeader->PartitionEntryArrayCRC32 == Crc); } @@ -555,8 +555,8 @@ Returns: ); Done: - gBS->FreePool (PartHdr); - gBS->FreePool (Ptr); + FreePool (PartHdr); + FreePool (Ptr); if (EFI_ERROR (Status)) { return FALSE; diff --git a/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c b/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c index f1b1de0..cf790d4 100644 --- a/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c +++ b/EdkModulePkg/Universal/Disk/Partition/Dxe/Mbr.c @@ -184,7 +184,7 @@ Returns: if (DevicePathType (LastDevicePathNode) == MEDIA_DEVICE_PATH && DevicePathSubType (LastDevicePathNode) == MEDIA_HARDDRIVE_DP ) { - gBS->CopyMem (&ParentHdDev, LastDevicePathNode, sizeof (ParentHdDev)); + CopyMem (&ParentHdDev, LastDevicePathNode, sizeof (ParentHdDev)); } else { LastDevicePathNode = NULL; } @@ -319,7 +319,7 @@ Returns: } Done: - gBS->FreePool (Mbr); + FreePool (Mbr); return Found; } diff --git a/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.c b/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.c index b4207d4..86d1cfe 100644 --- a/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.c +++ b/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.c @@ -384,8 +384,8 @@ PartitionDriverBindingStop ( EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER ); } else { - gBS->FreePool (Private->DevicePath); - gBS->FreePool (Private); + FreePool (Private->DevicePath); + FreePool (Private); } } @@ -653,7 +653,7 @@ Returns: Private->DevicePath = AppendDevicePathNode (ParentDevicePath, DevicePathNode); if (Private->DevicePath == NULL) { - gBS->FreePool (Private); + FreePool (Private); return EFI_OUT_OF_RESOURCES; } @@ -693,8 +693,8 @@ Returns: EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER ); } else { - gBS->FreePool (Private->DevicePath); - gBS->FreePool (Private); + FreePool (Private->DevicePath); + FreePool (Private); } return Status; diff --git a/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.msa b/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.msa index 6c21dcf..3ed7fef 100644 --- a/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.msa +++ b/EdkModulePkg/Universal/Disk/Partition/Dxe/Partition.msa @@ -6,8 +6,11 @@ 1FA1F39E-FEFF-4aae-BD7B-38A070A3B609 1.0 Component description file for Partition module. - Partition driver that produces logical BlockIo devices from a physical BlockIo device. - Copyright (c) 2006, Intel Corporation + Partition driver produces the logical BlockIo device + that represents the bytes Start to End of the Parent Block IO + device (one partition of physical BlockIo device, + which can be one of GPT, MBR, ElTorito partition). + Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -22,8 +25,9 @@ Partition - + DebugLib + Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg. UefiDriverModelLib @@ -71,12 +75,18 @@ gEfiDevicePathProtocolGuid + + gEfiDevicePathProtocolGuid + + + gEfiBlockIoProtocolGuid + gEfiPartTypeSystemPartGuid - + gEfiPartTypeUnusedGuid diff --git a/EdkModulePkg/Universal/Disk/UnicodeCollation/English/Dxe/English.msa b/EdkModulePkg/Universal/Disk/UnicodeCollation/English/Dxe/English.msa index 90cb810..3a72998 100644 --- a/EdkModulePkg/Universal/Disk/UnicodeCollation/English/Dxe/English.msa +++ b/EdkModulePkg/Universal/Disk/UnicodeCollation/English/Dxe/English.msa @@ -6,8 +6,8 @@ CD3BAFB6-50FB-4fe8-8E4E-AB74D2C1A600 1.0 Component description file for English module for unicode collation. - This driver installs EFI_UNICODE_COLLATION_PROTOCOL protocol to provide Unicode strings function. - Copyright (c) 2006, Intel Corporation + This driver installs UEFI EFI_UNICODE_COLLATION_PROTOCOL protocol to provide Unicode strings function. + Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -22,8 +22,9 @@ English - + DebugLib + Recommended libary Instance is PeiDxeDebugLibReportStatusCode instance in MdePkg. UefiDriverEntryPoint -- cgit v1.1