1*49617Sbostic /*- 2*49617Sbostic * Copyright (c) 1991 The Regents of the University of California. 3*49617Sbostic * All rights reserved. 4*49617Sbostic * 5*49617Sbostic * %sccs.include.redist.c% 6*49617Sbostic * 7*49617Sbostic * @(#)fdreg.h 7.1 (Berkeley) 05/09/91 8*49617Sbostic */ 9*49617Sbostic 1045534Sbill /* 1145534Sbill * AT floppy controller registers and bitfields 1245534Sbill */ 1345534Sbill 1445534Sbill /* uses NEC765 controller */ 1545534Sbill #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