From b58cdc4c790e70db83416ab57abf58b7237c6b30 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 5 Jun 2001 21:01:46 +0000 Subject: Make the FDC (state machine) state an enum, as opposed to an int abusing a bunch of #defines, for clarity and better debugging support. --- sys/dev/fdc/fdc.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'sys/dev/fdc') 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[] = { -- cgit v1.1