]> git.proxmox.com Git - mirror_edk2.git/commit - EdkModulePkg/Bus/Pci/IdeBus/Dxe/idedata.h
In IdeBus driver block I/O read/write interface, it will always try to use UDMA mode...
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 2 Mar 2007 08:21:43 +0000 (08:21 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 2 Mar 2007 08:21:43 +0000 (08:21 +0000)
commitbc4e770c78d692a5a2641359f605d6e83c96da5d
tree1d7674df1d834f9da781b7b878d408c681e03f04
parent59e9a3659f77aee8e5f6fd25c83bc3f3adcd8c31
In IdeBus driver block I/O read/write interface, it will always try to use UDMA mode first, if fails, then try to use PIO mode.
This may cause side effects if disk does not support UDMA mode and also let bad performance.
The modification is to record supported mode and only try supported mode when do disk read/write.
Also this patch combines the code for read/readex/write/writex to reduce code size.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2412 6f19259b-4bc3-4df7-8a09-765794883524
EdkModulePkg/Bus/Pci/IdeBus/Dxe/ata.c
EdkModulePkg/Bus/Pci/IdeBus/Dxe/ide.h
EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.h
EdkModulePkg/Bus/Pci/IdeBus/Dxe/idedata.h