summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 13:13:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-05 13:13:22 +0000
commit093dd65b72bdb81b5889e3670583b1d00c733a56 (patch)
tree2f4673f703ddf8ce0904abbdc34376c9fc33862b /sys/dev
parentf54323325826b4729c87ba91b677b30226cf4833 (diff)
bring back partitions
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/fdreg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isa/fdreg.h b/sys/dev/isa/fdreg.h
index 0e86685dfcf..d914b1f1175 100644
--- a/sys/dev/isa/fdreg.h
+++ b/sys/dev/isa/fdreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdreg.h,v 1.8 1996/11/10 21:21:30 downsj Exp $ */
+/* $OpenBSD: fdreg.h,v 1.9 1996/12/05 13:13:21 deraadt Exp $ */
/* $NetBSD: fdreg.h,v 1.8 1995/06/28 04:30:57 cgd Exp $ */
/*-
@@ -66,5 +66,6 @@
#define FDC_NPORT 8
#define FDC_MAXIOSIZE NBPG /* XXX should be MAXBSIZE */
-#define FDUNIT(dev) (minor(dev) / 16)
-#define FDTYPE(dev) (minor(dev) % 16)
+#define FDUNIT(dev) ((dev & 0x80) >> 7) /* XXX two drives max, sorry */
+#define FDTYPE(dev) ((minor(dev) & 0x70) >> 4)
+#define FDPART(dev) (minor(dev) & 0x0f)