]> git.hungrycats.org Git - linux/commitdiff
[PATCH] possible way to clean up fdreg.h
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Tue, 8 Apr 2003 02:43:30 +0000 (19:43 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 8 Apr 2003 02:43:30 +0000 (19:43 -0700)
include/linux/fdreg.h

index 1d9026eed9788f42aae7a5433e6bfb9b01790fcd..c2eeb63b72db59a348a04f30bb6c8a9c3ca27fc9 100644 (file)
@@ -7,8 +7,12 @@
  */
 
 #ifdef FDPATCHES
-
 #define FD_IOPORT fdc_state[fdc].address
+#else
+/* It would be a lot saner just to force fdc_state[fdc].address to always
+   be set ! FIXME */
+#define FD_IOPORT 0x3f0
+#endif
 
 /* Fd controller regs. S&C, about page 340 */
 #define FD_STATUS      (4 + FD_IOPORT )
 /* Diskette Control Register (write)*/
 #define FD_DCR         (7 + FD_IOPORT )
 
-#else
-
-#define FD_STATUS      0x3f4
-#define FD_DATA                0x3f5
-#define FD_DOR         0x3f2           /* Digital Output Register */
-#define FD_DIR         0x3f7           /* Digital Input Register (read) */
-#define FD_DCR         0x3f7           /* Diskette Control Register (write)*/
-
-#endif
-
 /* Bits of main status register */
 #define STATUS_BUSYMASK        0x0F            /* drive busy mask */
 #define STATUS_BUSY    0x10            /* FDC busy */