From 116fb43c870b5e6a89925abeb7c9b631a561041a Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 5 Dec 1996 13:13:21 +0000 Subject: [PATCH] bring back partitions --- sys/dev/isa/fdreg.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/isa/fdreg.h b/sys/dev/isa/fdreg.h index 0e86685dfcf..d914b1f1175 100644 --- a/sys/dev/isa/fdreg.h +++ b/sys/dev/isa/fdreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fdreg.h,v 1.8 1996/11/10 21:21:30 downsj Exp $ */ +/* $OpenBSD: fdreg.h,v 1.9 1996/12/05 13:13:21 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 & 0x80) >> 7) /* XXX two drives max, sorry */ +#define FDTYPE(dev) ((minor(dev) & 0x70) >> 4) +#define FDPART(dev) (minor(dev) & 0x0f) -- 2.20.1