diff options
author | sos <sos@FreeBSD.org> | 2001-03-23 20:55:28 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-03-23 20:55:28 +0000 |
commit | e6b6652c8fcc96ba1f2211b0f1185567fbd8c9b6 (patch) | |
tree | 027021dbd9bda757bd8be069665beb4463b019d2 /sys/dev/ata/atapi-all.h | |
parent | f0a19e894be36f1afd46a4537644bd23bd06bd75 (diff) | |
download | FreeBSD-src-e6b6652c8fcc96ba1f2211b0f1185567fbd8c9b6.zip FreeBSD-src-e6b6652c8fcc96ba1f2211b0f1185567fbd8c9b6.tar.gz |
Fix the problem with some drives not reporting back when the
are busy blanking and erasing CD-RW media.
This fixes burncd's premature returns from blanking/erasing
that caused trouble.
Diffstat (limited to 'sys/dev/ata/atapi-all.h')
-rw-r--r-- | sys/dev/ata/atapi-all.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-all.h b/sys/dev/ata/atapi-all.h index 10263e1..fd7c188 100644 --- a/sys/dev/ata/atapi-all.h +++ b/sys/dev/ata/atapi-all.h @@ -147,6 +147,7 @@ struct atapi_softc { int unit; /* ATA_MASTER or ATA_SLAVE */ void *driver; /* ptr to subdriver softc */ u_int8_t cmd; /* last cmd executed */ + struct atapi_reqsense sense; /* last cmd sense if error */ int flags; /* drive flags */ #define ATAPI_F_MEDIA_CHANGED 0x0001 #define ATAPI_F_DETACHING 0x0002 @@ -166,7 +167,7 @@ struct atapi_request { int result; /* result of this cmd */ int error; /* result translated to errno */ struct atapi_reqsense sense; /* sense data if error */ - int flags; + int flags; #define ATPR_F_READ 0x0001 #define ATPR_F_DMA_USED 0x0002 #define ATPR_F_AT_HEAD 0x0004 |