149617Sbostic /*- 2*63364Sbostic * Copyright (c) 1991, 1993 3*63364Sbostic * The Regents of the University of California. All rights reserved. 449617Sbostic * 549617Sbostic * %sccs.include.redist.c% 649617Sbostic * 7*63364Sbostic * @(#)fdreg.h 8.1 (Berkeley) 06/11/93 849617Sbostic */ 949617Sbostic 1045534Sbill /* 1145534Sbill * AT floppy controller registers and bitfields 1245534Sbill */ 1345534Sbill 1445534Sbill /* uses NEC765 controller */ 1556513Sbostic #include <i386/isa/ic/nec765.h> 1645534Sbill 1745534Sbill /* registers */ 1845534Sbill #define fdout 2 /* Digital Output Register (W) */ 1945534Sbill #define FDO_FDSEL 0x01 /* floppy device select */ 2045534Sbill #define FDO_FRST 0x04 /* floppy controller reset */ 2145534Sbill #define FDO_FDMAEN 0x08 /* enable floppy DMA and Interrupt */ 2245534Sbill #define FDO_MOEN0 0x10 /* motor enable drive 0 */ 2345534Sbill #define FDO_MOEN1 0x20 /* motor enable drive 1 */ 2445534Sbill 2545534Sbill #define fdsts 4 /* NEC 765 Main Status Register (R) */ 2645534Sbill #define fddata 5 /* NEC 765 Data Register (R/W) */ 2745534Sbill 2845534Sbill #define fdctl 7 /* Control Register (W) */ 2945534Sbill #define FDC_500KBPS 0x00 /* 500KBPS MFM drive transfer rate */ 3045534Sbill #define FDC_300KBPS 0x01 /* 300KBPS MFM drive transfer rate */ 3145534Sbill #define FDC_250KBPS 0x02 /* 250KBPS MFM drive transfer rate */ 3245534Sbill #define FDC_125KBPS 0x03 /* 125KBPS FM drive transfer rate */ 3345534Sbill 3445534Sbill #define fdin 7 /* Digital Input Register (R) */ 3545534Sbill #define FDI_DCHG 0x80 /* diskette has been changed */ 3645534Sbill 3745534Sbill 38