diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-10 01:34:09 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1997-02-10 01:34:09 +0000 |
commit | f4c7ec8de009e09634eb0390f5a19a2efd4a7472 (patch) | |
tree | 25e712eb41a0b15c25f0616a1326cfcf30fd3a7b /sys/arch/hp300/dev/hdvar.h | |
parent | 584c603b312f9885942192cafaf545ad68cd4d62 (diff) |
Support 16 partitions.
Diffstat (limited to 'sys/arch/hp300/dev/hdvar.h')
-rw-r--r-- | sys/arch/hp300/dev/hdvar.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/hp300/dev/hdvar.h b/sys/arch/hp300/dev/hdvar.h index 051bdb246a5..85a71d05cfa 100644 --- a/sys/arch/hp300/dev/hdvar.h +++ b/sys/arch/hp300/dev/hdvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hdvar.h,v 1.1 1997/02/03 08:11:55 downsj Exp $ */ +/* $OpenBSD: hdvar.h,v 1.2 1997/02/10 01:33:56 downsj Exp $ */ /* $NetBSD: rdvar.h,v 1.6 1997/01/30 09:14:19 thorpej Exp $ */ /* @@ -91,10 +91,9 @@ struct hd_softc { #define HDF_WANTED 0x20 #define HDF_WLABEL 0x40 -#define hdunit(x) (minor(x) >> 3) -#define hdpart(x) (minor(x) & 0x7) -#define hdpunit(x) ((x) & 7) -#define hdlabdev(d) (dev_t)(((int)(d)&~7)|2) /* hd?c */ +#define hdunit(x) DISKUNIT(x) +#define hdpart(x) DISKPART(x) +#define hdlabdev(d) MAKEDISKDEV(major(d), hdunit(d), RAW_PART) #define b_cylin b_resid |