mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
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
This commit is contained in:
parent
9c16959509
commit
907c1a0039
@ -52,7 +52,7 @@ ATA_DEVICE gAtaDeviceTemplate = {
|
|||||||
FALSE, // ReadOnly
|
FALSE, // ReadOnly
|
||||||
FALSE, // WritingCache
|
FALSE, // WritingCache
|
||||||
0x200, // BlockSize
|
0x200, // BlockSize
|
||||||
4, // IoAlign
|
0, // IoAlign
|
||||||
0, // LastBlock
|
0, // LastBlock
|
||||||
0, // LowestAlignedLba
|
0, // LowestAlignedLba
|
||||||
1 // LogicalBlocksPerPhysicalBlock
|
1 // LogicalBlocksPerPhysicalBlock
|
||||||
|
@ -289,6 +289,7 @@ IdentifyAtaDevice (
|
|||||||
//
|
//
|
||||||
BlockMedia = &AtaDevice->BlockMedia;
|
BlockMedia = &AtaDevice->BlockMedia;
|
||||||
BlockMedia->LastBlock = Capacity - 1;
|
BlockMedia->LastBlock = Capacity - 1;
|
||||||
|
BlockMedia->IoAlign = AtaDevice->AtaBusDriverData->AtaPassThru->Mode->IoAlign;
|
||||||
//
|
//
|
||||||
// Check whether Long Physical Sector Feature is supported
|
// Check whether Long Physical Sector Feature is supported
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user