summaryrefslogtreecommitdiffstats
path: root/sys/isa/fdc.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1998-12-12 08:16:01 +0000
committerimp <imp@FreeBSD.org>1998-12-12 08:16:01 +0000
commitca6fd0503c7a84c68a40177a7fae7b198583e14e (patch)
treed29ffded57ec370abcb723d6271832993789aeee /sys/isa/fdc.h
parent2da06b289548cde64f579509fa362683b2d0d9d4 (diff)
downloadFreeBSD-src-ca6fd0503c7a84c68a40177a7fae7b198583e14e.zip
FreeBSD-src-ca6fd0503c7a84c68a40177a7fae7b198583e14e.tar.gz
Add support for the YE-Data external PCMCIA floppy driver. This
floppy is used on the toshiba Libretto line of subnotebook computers. It differs from a normal floppy in that you must use PIO rather than DMA to transfer the data. To enable this, you must add options "FDC_YE" to your kernel. I don't have a machine that has a floppy and a pcmcia slot to test to make sure that this doesn't impact normal floppy units, so I've left this as an option. I have ported this to -current and made an attempt to ensure that the indentation conforms to style(9), aka the bruce filter. Reviewed by: nate, markm Submitted by: David Horwitt (dhorwitt@ucsd.edu)
Diffstat (limited to 'sys/isa/fdc.h')
-rw-r--r--sys/isa/fdc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/isa/fdc.h b/sys/isa/fdc.h
index fdaf694..c8c275f 100644
--- a/sys/isa/fdc.h
+++ b/sys/isa/fdc.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fdc.h,v 1.10 1998/07/11 06:35:39 bde Exp $
+ * $Id: fdc.h,v 1.11 1998/07/29 13:00:42 bde Exp $
*
*/
@@ -56,6 +56,10 @@ struct fdc_data
#define FDC_STAT_VALID 0x08
#define FDC_HAS_FIFO 0x10
#define FDC_NEEDS_RESET 0x20
+#ifdef FDC_YE
+#define FDC_PCMCIA 0x40
+#define FDC_UNLOADED 0x80
+#endif
struct fd_data *fd;
int fdu; /* the active drive */
int state;
OpenPOWER on IntegriCloud