diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-31 05:28:14 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-31 05:28:14 +0000 |
commit | 907c1a003937905217bf80f577671ef48d153725 (patch) | |
tree | 84f7f64574524c40762855c4b77f58b455af178b | |
parent | 9c169595096699e53abeae4de62d978c18e18a65 (diff) | |
download | edk2-platforms-907c1a003937905217bf80f577671ef48d153725.tar.xz |
Remove the hard-code IoAlign in BlockIo.Media; instead, this value should inherit from lower Ata Pass Thru protocol instance.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9654 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c index c8a588e520..4ee9309e7c 100644 --- a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c +++ b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBus.c @@ -52,7 +52,7 @@ ATA_DEVICE gAtaDeviceTemplate = { FALSE, // ReadOnly
FALSE, // WritingCache
0x200, // BlockSize
- 4, // IoAlign
+ 0, // IoAlign
0, // LastBlock
0, // LowestAlignedLba
1 // LogicalBlocksPerPhysicalBlock
diff --git a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c index f4388a6c44..05496a9d16 100644 --- a/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c +++ b/MdeModulePkg/Bus/Ata/AtaBusDxe/AtaPassThruExecute.c @@ -289,6 +289,7 @@ IdentifyAtaDevice ( //
BlockMedia = &AtaDevice->BlockMedia;
BlockMedia->LastBlock = Capacity - 1;
+ BlockMedia->IoAlign = AtaDevice->AtaBusDriverData->AtaPassThru->Mode->IoAlign;
//
// Check whether Long Physical Sector Feature is supported
//
|