hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/uapi/linux/fdreg.h
....@@ -7,26 +7,28 @@
77 * Handbook", Sanches and Canton.
88 */
99
10
-#ifdef FDPATCHES
11
-#define FD_IOPORT fdc_state[fdc].address
12
-#else
13
-/* It would be a lot saner just to force fdc_state[fdc].address to always
14
- be set ! FIXME */
15
-#define FD_IOPORT 0x3f0
16
-#endif
17
-
18
-/* Fd controller regs. S&C, about page 340 */
19
-#define FD_STATUS (4 + FD_IOPORT )
20
-#define FD_DATA (5 + FD_IOPORT )
10
+/* 82077's auxiliary status registers A & B (R) */
11
+#define FD_SRA 0
12
+#define FD_SRB 1
2113
2214 /* Digital Output Register */
23
-#define FD_DOR (2 + FD_IOPORT )
15
+#define FD_DOR 2
16
+
17
+/* 82077's tape drive register (R/W) */
18
+#define FD_TDR 3
19
+
20
+/* 82077's data rate select register (W) */
21
+#define FD_DSR 4
22
+
23
+/* Fd controller regs. S&C, about page 340 */
24
+#define FD_STATUS 4
25
+#define FD_DATA 5
2426
2527 /* Digital Input Register (read) */
26
-#define FD_DIR (7 + FD_IOPORT )
28
+#define FD_DIR 7
2729
2830 /* Diskette Control Register (write)*/
29
-#define FD_DCR (7 + FD_IOPORT )
31
+#define FD_DCR 7
3032
3133 /* Bits of main status register */
3234 #define STATUS_BUSYMASK 0x0F /* drive busy mask */