summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-18 09:49:25 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-07-18 09:49:25 +0000
commitff61847ddc91285a9ef8be00b89304870c493ef8 (patch)
tree34aff9a0a604c67a02eaf7eebb3d0ffe0b2c341c /MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c
parentab76200c050f3196386dc3637dd58547eef1f519 (diff)
downloadedk2-ff61847ddc91285a9ef8be00b89304870c493ef8.tar.gz
edk2-ff61847ddc91285a9ef8be00b89304870c493ef8.tar.bz2
edk2-ff61847ddc91285a9ef8be00b89304870c493ef8.zip
Code scrub for DiskIo, Partition & Unicode Collation
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5519 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c')
-rw-r--r--MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c
index 710d042de9..ec1d68f631 100644
--- a/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c
+++ b/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIo.c
@@ -1,8 +1,8 @@
/** @file
- DiskIo driver that layers it's self on every Block IO protocol in the system.
+ DiskIo driver that lays on every BlockIo protocol in the system.
DiskIo converts a block oriented device to a byte oriented device.
- ReadDisk may have to do reads that are not aligned on sector boundaries.
+ Disk access may have to handle unaligned request about sector boundaries.
There are three cases:
UnderRun - The first byte is not on a sector boundary or the read request is
less than a sector in length.
@@ -22,6 +22,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include "DiskIo.h"
+//
+// Driver binding protocol implementation for DiskIo driver.
+//
EFI_DRIVER_BINDING_PROTOCOL gDiskIoDriverBinding = {
DiskIoDriverBindingSupported,
DiskIoDriverBindingStart,
@@ -31,6 +34,10 @@ EFI_DRIVER_BINDING_PROTOCOL gDiskIoDriverBinding = {
NULL
};
+//
+// Template for DiskIo private data structure.
+// The pointer to BlockIo protocol interface is assigned dynamically.
+//
DISK_IO_PRIVATE_DATA gDiskIoPrivateDataTemplate = {
DISK_IO_PRIVATE_DATA_SIGNATURE,
{
@@ -459,7 +466,7 @@ Done:
/**
- Read BufferSize bytes from Offset into Buffer.
+ Writes BufferSize bytes from Buffer into Offset.
Writes may require a read modify write to support writes that are not
aligned on sector boundaries. There are three cases:
UnderRun - The first byte is not on a sector boundary or the write request