]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c
MdeModulePkg/AtaAtapiPassThruDxe: Support 4K bytes block size HDDs
authorFeng Tian <feng.tian@intel.com>
Fri, 22 May 2015 06:53:44 +0000 (06:53 +0000)
committererictian <erictian@Edk2>
Fri, 22 May 2015 06:53:44 +0000 (06:53 +0000)
commite7401ee1af263ff946a57f047124241fa4f01cd5
treee89f0bcac133103ea07647a27a6236e12221ff68
parentcbbc454b2ad9ee4359d3a145a3d622c7db22fef6
MdeModulePkg/AtaAtapiPassThruDxe: Support 4K bytes block size HDDs

The original code hard-codes block size to 512. But after ATA 7 spec,
the non-512 block size is also supported. The code is updated to
dynamically calculate the block size according to IDENTIFY data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17495 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.c