From 82f36a4a4eb754c7980a65a578b5dd4807809f70 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 26 Sep 2004 09:14:20 +0000 Subject: [PATCH] - Reselected the drive (master/slave) after a soft reset. svn path=/trunk/; revision=11062 --- reactos/drivers/storage/atapi/atapi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/storage/atapi/atapi.c b/reactos/drivers/storage/atapi/atapi.c index e90554435aa..0dfcb156ba5 100644 --- a/reactos/drivers/storage/atapi/atapi.c +++ b/reactos/drivers/storage/atapi/atapi.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: atapi.c,v 1.54 2004/09/14 22:09:06 hbirr Exp $ +/* $Id: atapi.c,v 1.55 2004/09/26 09:14:20 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS ATAPI miniport driver @@ -1171,6 +1171,11 @@ AtapiFindDevices(PATAPI_MINIPORT_EXTENSION DeviceExtension, } } + /* Select drive */ + IDEWriteDriveHead(CommandPortBase, IDE_DH_FIXED | + (UnitNumber ? IDE_DH_DRV1 : IDE_DH_DRV0)); + ScsiPortStallExecution(500); + High = IDEReadCylinderHigh(CommandPortBase); Low = IDEReadCylinderLow(CommandPortBase);