[PATCH 02/23] floppy: add references to 82077's extra registers

Willy Tarreau
2020-03-31T09:41:31Z

This controller provides extra status registers SRA and SRB as well
as a tape drive register (TDR) and a data rate select register (DSR),
which are referenced in the sparc port, so let's have their symbolic
definitions centralized.

Signed-off-by: Willy Tarreau <w@1wt.eu>
---
include/uapi/linux/fdreg.h | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/uapi/linux/fdreg.h b/include/uapi/linux/fdreg.h
index 1318881954e1..10d33632939d 100644
--- a/include/uapi/linux/fdreg.h
+++ b/include/uapi/linux/fdreg.h
@@ -7,13 +7,23 @@
* Handbook", Sanches and Canton.
*/

+/* 82077's auxiliary status registers A & B (R) */
+#define FD_SRA 0
+#define FD_SRB 1
+
+/* Digital Output Register */
+#define FD_DOR 2
+
+/* 82077's tape drive register (R/W) */
+#define FD_TDR 3
+
+/* 82077's data rate select register (W) */
+#define FD_DSR 4
+
/* Fd controller regs. S&C, about page 340 */
#define FD_STATUS 4
#define FD_DATA 5

-/* Digital Output Register */
-#define FD_DOR 2
-
/* Digital Input Register (read) */
#define FD_DIR 7

--
2.20.1