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/dev | |
parent | 8da7fc5e083e2aa75b8e75993b460830d719adea (diff) |
give floppies real partitions
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/isa/fdreg.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/isa/fdreg.h b/sys/dev/isa/fdreg.h index d67d33fd9c3..8a8eca8be1b 100644 --- a/sys/dev/isa/fdreg.h +++ b/sys/dev/isa/fdreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fdreg.h,v 1.6 1996/10/26 06:22:38 downsj Exp $ */ +/* $OpenBSD: fdreg.h,v 1.7 1996/11/06 01:33:53 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 & 0x180) >> 7) +#define FDTYPE(dev) ((minor(dev) & 0x70) >> 4) +#define FDPART(dev) (minor(dev) & 0x0f) |