summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc/fdcvar.h
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2004-09-23 21:12:21 +0000
committerjoerg <joerg@FreeBSD.org>2004-09-23 21:12:21 +0000
commitf2a11c9f2e7cf0a8afeb91bd96c79df921c86dea (patch)
tree52a18f91be708d3a3f54c050bd331429d9ab8362 /sys/dev/fdc/fdcvar.h
parente7c39452fd145d2952a8d73e5ee20d81bdad504a (diff)
downloadFreeBSD-src-f2a11c9f2e7cf0a8afeb91bd96c79df921c86dea.zip
FreeBSD-src-f2a11c9f2e7cf0a8afeb91bd96c79df921c86dea.tar.gz
Implement terminating the worker thread when the driver is about to
be deregistered. Not yet tested, since by now, GEOM doesn't want us to deregister. PHK wants to fix that RSN.
Diffstat (limited to 'sys/dev/fdc/fdcvar.h')
-rw-r--r--sys/dev/fdc/fdcvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/fdc/fdcvar.h b/sys/dev/fdc/fdcvar.h
index 5ecf912..acba77e 100644
--- a/sys/dev/fdc/fdcvar.h
+++ b/sys/dev/fdc/fdcvar.h
@@ -46,6 +46,8 @@ struct fdc_data {
#define FDC_HAS_FIFO 0x10
#define FDC_NEEDS_RESET 0x20
#define FDC_NODMA 0x40
+#define FDC_KTHREAD_EXIT 0x1000 /* request worker thread to stop */
+#define FDC_KTHREAD_ALIVE 0x2000 /* worker thread is alive */
struct fd_data *fd; /* The active drive */
int retry;
int fdout; /* mirror of the w/o digital output reg */
OpenPOWER on IntegriCloud