diff options
| author | bouyer <bouyer@NetBSD.org> | 1998-10-20 17:00:24 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 1998-10-20 17:00:24 +0000 |
| commit | a7c841cfbc8917632994987cdc2f5cabbbc08368 (patch) | |
| tree | 6da21540f2e3c496ec9b1aa5642b743bfee2414c /sys/dev/ata | |
| parent | 069e8a5d77bd07a5b2df946b44215ddfc17a2049 (diff) | |
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().
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/atavar.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |
