]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Remove the hard-code IoAlign in BlockIo.Media; instead, this value should inherit...
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 Dec 2009 05:28:14 +0000 (05:28 +0000)
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 31 Dec 2009 05:28:14 +0000 (05:28 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9654 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c

index c8a588e520030f474ca3444603cd6f4355d1b128..4ee9309e7c810bdc8984d825bb0e0d31a2fe8156 100644 (file)
@@ -52,7 +52,7 @@ ATA_DEVICE gAtaDeviceTemplate = {
     FALSE,                     // ReadOnly\r
     FALSE,                     // WritingCache\r
     0x200,                     // BlockSize \r
-    4,                         // IoAlign\r
+    0,                         // IoAlign\r
     0,                         // LastBlock\r
     0,                         // LowestAlignedLba\r
     1                          // LogicalBlocksPerPhysicalBlock\r
index f4388a6c440b741fc400ff044290fcc33e5edc89..05496a9d1682fce5020414f621c667f251026042 100644 (file)
@@ -289,6 +289,7 @@ IdentifyAtaDevice (
   //\r
   BlockMedia = &AtaDevice->BlockMedia;\r
   BlockMedia->LastBlock = Capacity - 1;\r
+  BlockMedia->IoAlign = AtaDevice->AtaBusDriverData->AtaPassThru->Mode->IoAlign;\r
   //\r
   // Check whether Long Physical Sector Feature is supported\r
   //\r