From 308913dbf6b484706a0f2e2a75f669a280b1b44c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 6 Nov 1996 01:34:03 +0000 Subject: give floppies real partitions --- sys/arch/sparc/dev/fd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/sparc') diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c index 75ffee33adc..2af99ae3fbc 100644 --- a/sys/arch/sparc/dev/fd.c +++ b/sys/arch/sparc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.9 1996/08/11 23:11:35 downsj Exp $ */ +/* $OpenBSD: fd.c,v 1.10 1996/11/06 01:33:58 deraadt Exp $ */ /* $NetBSD: fd.c,v 1.33.4.1 1996/06/12 20:52:25 pk Exp $ */ /*- @@ -68,8 +68,9 @@ #include #include -#define FDUNIT(dev) (minor(dev) / 8) -#define FDTYPE(dev) (minor(dev) % 8) +#define FDUNIT(dev) ((dev & 0x180) >> 7) +#define FDTYPE(dev) ((minor(dev) & 0x70) >> 4) +#define FDPART(dev) (minor(dev) & 0x0f) #define b_cylin b_resid -- cgit v1.2.3