summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-all.h
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2001-03-14 12:05:44 +0000
committersos <sos@FreeBSD.org>2001-03-14 12:05:44 +0000
commit4659caa469c2dedd9d5063417c8da7cc4e37d7aa (patch)
tree871c965e909b58c956ea34692b952d392b3c58c1 /sys/dev/ata/atapi-all.h
parent045a83cd9229e8ab1171e7adf872e072644f8945 (diff)
downloadFreeBSD-src-4659caa469c2dedd9d5063417c8da7cc4e37d7aa.zip
FreeBSD-src-4659caa469c2dedd9d5063417c8da7cc4e37d7aa.tar.gz
Refine the detach/attach code.
Proberly fail outstanding bio requests on devices that are detached. This makes it possible to change between disk/cdrom/dvd/whathaveyou in a notebook, just by suspending it, changing the device in the bay (or what you model calls it), unsuspend and the ATA driver will figure out what disappeared and properly fail those, and attach any new devices found.
Diffstat (limited to 'sys/dev/ata/atapi-all.h')
-rw-r--r--sys/dev/ata/atapi-all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-all.h b/sys/dev/ata/atapi-all.h
index eae2342..e08589d 100644
--- a/sys/dev/ata/atapi-all.h
+++ b/sys/dev/ata/atapi-all.h
@@ -150,7 +150,7 @@ struct atapi_softc {
u_int8_t cmd; /* last cmd executed */
int flags; /* drive flags */
#define ATAPI_F_MEDIA_CHANGED 0x0001
-
+#define ATAPI_F_DETACHING 0x0002
};
typedef int atapi_callback_t(struct atapi_request *);
OpenPOWER on IntegriCloud