summaryrefslogtreecommitdiff
path: root/sys/arch/arc/dev/fd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-11-06 01:34:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-11-06 01:34:03 +0000
commit308913dbf6b484706a0f2e2a75f669a280b1b44c (patch)
treee658090c16b5d95e0a7e87e0f629123408491daf /sys/arch/arc/dev/fd.c
parent8da7fc5e083e2aa75b8e75993b460830d719adea (diff)
give floppies real partitions
Diffstat (limited to 'sys/arch/arc/dev/fd.c')
-rw-r--r--sys/arch/arc/dev/fd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/arc/dev/fd.c b/sys/arch/arc/dev/fd.c
index fc5d4443775..e0f69b60166 100644
--- a/sys/arch/arc/dev/fd.c
+++ b/sys/arch/arc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.2 1996/08/26 11:12:00 pefo Exp $ */
+/* $OpenBSD: fd.c,v 1.3 1996/11/06 01:34:00 deraadt Exp $ */
/* $NetBSD: fd.c,v 1.78 1995/07/04 07:23:09 mycroft Exp $ */
/*-
@@ -63,8 +63,9 @@
#include <arc/dev/dma.h>
-#define FDUNIT(dev) (minor(dev) / 8)
-#define FDTYPE(dev) (minor(dev) % 8)
+#define FDUNIT(dev) ((dev & 0x080) >> 7)
+#define FDTYPE(dev) ((minor(dev) & 0x70) >> 4)
+#define FDPART(dev) (minor(dev) & 0x0f)
#define b_cylin b_resid