summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-11-10 21:21:31 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-11-10 21:21:31 +0000
commit13db580dacc8007c3d151bb91a93455beafa04ab (patch)
tree7f70d64ac4d6cbab06c29e002bc80522ab98b070 /sys
parent9b3c7e6c93a3d7f2145d0e4f74df394afa63c2f4 (diff)
Kill major number hack.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isa/fdreg.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/isa/fdreg.h b/sys/dev/isa/fdreg.h
index 8a8eca8be1b..0e86685dfcf 100644
--- a/sys/dev/isa/fdreg.h
+++ b/sys/dev/isa/fdreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdreg.h,v 1.7 1996/11/06 01:33:53 deraadt Exp $ */
+/* $OpenBSD: fdreg.h,v 1.8 1996/11/10 21:21:30 downsj Exp $ */
/* $NetBSD: fdreg.h,v 1.8 1995/06/28 04:30:57 cgd Exp $ */
/*-
@@ -66,6 +66,5 @@
#define FDC_NPORT 8
#define FDC_MAXIOSIZE NBPG /* XXX should be MAXBSIZE */
-#define FDUNIT(dev) ((dev & 0x180) >> 7)
-#define FDTYPE(dev) ((minor(dev) & 0x70) >> 4)
-#define FDPART(dev) (minor(dev) & 0x0f)
+#define FDUNIT(dev) (minor(dev) / 16)
+#define FDTYPE(dev) (minor(dev) % 16)