From 635a3f5c797729687bb5bfdf6d03b5f7cfbfd168 Mon Sep 17 00:00:00 2001 From: klu2 Date: Mon, 5 Mar 2007 06:42:29 +0000 Subject: [PATCH] Assign IDE_BLK_IO_DEV.UdmaMode when detecting the disk hardware support UDMA mode. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2418 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.c b/EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.c index 0e7d43eeb9..73b302cd42 100644 --- a/EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.c +++ b/EdkModulePkg/Bus/Pci/IdeBus/Dxe/idebus.c @@ -629,7 +629,11 @@ IDEBusDriverBindingStart ( IdeBlkIoDevicePtr = NULL; continue; } - + // + // Record Udma Mode + // + IdeBlkIoDevicePtr->UdmaMode.Valid = TRUE; + IdeBlkIoDevicePtr->UdmaMode.Mode = SupportedModes->UdmaMode.Mode; EnableInterrupt (IdeBlkIoDevicePtr); } else if (SupportedModes->MultiWordDmaMode.Valid) {