From a7c841cfbc8917632994987cdc2f5cabbbc08368 Mon Sep 17 00:00:00 2001 From: bouyer Date: Tue, 20 Oct 1998 17:00:24 +0000 Subject: Donc reset the disk state to 0 in wd.c, set a flag which will cause it to be reset to 0 at wdcstart(). This fixes a race condition between normal I/O and wdioclt(). --- sys/dev/ata/atavar.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/ata/atavar.h b/sys/dev/ata/atavar.h index 1a0396426f9..eb734e3d40b 100644 --- a/sys/dev/ata/atavar.h +++ b/sys/dev/ata/atavar.h @@ -1,4 +1,4 @@ -/* $NetBSD: atavar.h,v 1.3 1998/10/13 15:18:47 bouyer Exp $ */ +/* $NetBSD: atavar.h,v 1.4 1998/10/20 17:00:25 bouyer Exp $ */ /* * Copyright (c) 1998 Manuel Bouyer. @@ -46,6 +46,7 @@ struct ata_drive_datas { #define DRIVE_DMA 0x08 #define DRIVE_UDMA 0x10 #define DRIVE_MODE 0x20 /* the drive reported its mode */ +#define DRIVE_RESET 0x40 /* reset the drive state at next xfer */ /* * Current setting of drive's PIO, DMA and UDMA modes. * Is initialised by the disks drivers at attach time, and may be -- cgit