diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-06 01:34:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-11-06 01:34:03 +0000 |
commit | 308913dbf6b484706a0f2e2a75f669a280b1b44c (patch) | |
tree | e658090c16b5d95e0a7e87e0f629123408491daf /sys/arch/sparc | |
parent | 8da7fc5e083e2aa75b8e75993b460830d719adea (diff) |
give floppies real partitions
Diffstat (limited to 'sys/arch/sparc')
-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 |