diff options
Diffstat (limited to 'sys/arch/sparc/dev/fd.c')
-rw-r--r-- | sys/arch/sparc/dev/fd.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <sparc/dev/fdreg.h> #include <sparc/dev/fdvar.h> -#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 |