summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2001-06-05 21:01:46 +0000
committerjoerg <joerg@FreeBSD.org>2001-06-05 21:01:46 +0000
commitb58cdc4c790e70db83416ab57abf58b7237c6b30 (patch)
tree7cb6d765926dc84dc3faef2fe416d63db596f8b6 /sys/dev/fdc
parent83c7edbffd98b6de5455fe826f09e22e514ce570 (diff)
downloadFreeBSD-src-b58cdc4c790e70db83416ab57abf58b7237c6b30.zip
FreeBSD-src-b58cdc4c790e70db83416ab57abf58b7237c6b30.tar.gz
Make the FDC (state machine) state an enum, as opposed to an int
abusing a bunch of #defines, for clarity and better debugging support.
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 022f348..a0155b7 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -215,22 +215,6 @@ static int enable_fifo(fdc_p fdc);
static int fifo_threshold = 8; /* XXX: should be accessible via sysctl */
-
-#define DEVIDLE 0
-#define FINDWORK 1
-#define DOSEEK 2
-#define SEEKCOMPLETE 3
-#define IOCOMPLETE 4
-#define RECALCOMPLETE 5
-#define STARTRECAL 6
-#define RESETCTLR 7
-#define SEEKWAIT 8
-#define RECALWAIT 9
-#define MOTORWAIT 10
-#define IOTIMEDOUT 11
-#define RESETCOMPLETE 12
-#define PIOREAD 13
-
#ifdef FDC_DEBUG
static char const * const fdstates[] =
{
OpenPOWER on IntegriCloud