summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
diff options
context:
space:
mode:
authorqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-03 10:31:41 +0000
committerqianouyang <qianouyang@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-03 10:31:41 +0000
commit490b5ea10bcdab3579d4c12056b177cea52d6f8e (patch)
tree8165cd5916a92a78ba6c7c869e23e173fa1b1b7b /MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
parentc89ea31f52cd1748166e494d4fdadb19a6bd69a3 (diff)
downloadedk2-platforms-490b5ea10bcdab3579d4c12056b177cea52d6f8e.tar.xz
Add BlockIO2 Protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11606 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c')
-rw-r--r--MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c b/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
index 98e46e9d76..13b94c307f 100644
--- a/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
+++ b/MdeModulePkg/Universal/Disk/PartitionDxe/ElTorito.c
@@ -1,7 +1,7 @@
/** @file
Decode an El Torito formatted CD-ROM
-Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
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
@@ -20,15 +20,16 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Install child handles if the Handle supports El Torito format.
@param[in] This Calling context.
- @param[in] Handle Parent Handle
- @param[in] DiskIo Parent DiskIo interface
- @param[in] BlockIo Parent BlockIo interface
+ @param[in] Handle Parent Handle.
+ @param[in] DiskIo Parent DiskIo interface.
+ @param[in] BlockIo Parent BlockIo interface.
+ @param[in] BlockIo2 Parent BlockIo2 interface.
@param[in] DevicePath Parent Device Path
- @retval EFI_SUCCESS Child handle(s) was added
- @retval EFI_MEDIA_CHANGED Media changed Detected
- @retval other no child handle was added
+ @retval EFI_SUCCESS Child handle(s) was added.
+ @retval EFI_MEDIA_CHANGED Media changed Detected.
+ @retval other no child handle was added.
**/
EFI_STATUS
@@ -37,6 +38,7 @@ PartitionInstallElToritoChildHandles (
IN EFI_HANDLE Handle,
IN EFI_DISK_IO_PROTOCOL *DiskIo,
IN EFI_BLOCK_IO_PROTOCOL *BlockIo,
+ IN EFI_BLOCK_IO2_PROTOCOL *BlockIo2,
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath
)
{
@@ -59,6 +61,7 @@ PartitionInstallElToritoChildHandles (
Found = EFI_NOT_FOUND;
Media = BlockIo->Media;
+
VolSpaceSize = 0;
//
@@ -256,6 +259,7 @@ PartitionInstallElToritoChildHandles (
Handle,
DiskIo,
BlockIo,
+ BlockIo2,
DevicePath,
(EFI_DEVICE_PATH_PROTOCOL *) &CdDev,
Catalog->Boot.Lba,