From: Feng Tian Date: Fri, 22 May 2015 06:53:44 +0000 (+0000) Subject: MdeModulePkg/AtaAtapiPassThruDxe: Support 4K bytes block size HDDs X-Git-Tag: edk2-stable201903~9761 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e7401ee1af263ff946a57f047124241fa4f01cd5;hp=e7401ee1af263ff946a57f047124241fa4f01cd5;ds=sidebyside 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 Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17495 6f19259b-4bc3-4df7-8a09-765794883524 ---