diff options
author | 1997-09-03 04:33:57 +0000 | |
---|---|---|
committer | 1997-09-03 04:33:57 +0000 | |
commit | a71d56c66a8a7ec02fa75762fa7cef6e1f7c8e96 (patch) | |
tree | becdf4afa36e3229cc3bc000cde288a39e36a26e /sys | |
parent | 1st part of pretty "machine diskinfo" stuff (diff) | |
download | wireguard-openbsd-a71d56c66a8a7ec02fa75762fa7cef6e1f7c8e96.tar.xz wireguard-openbsd-a71d56c66a8a7ec02fa75762fa7cef6e1f7c8e96.zip |
2nd part of pretty "machine diskinfo"
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/include/biosvar.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/i386/include/biosvar.h b/sys/arch/i386/include/biosvar.h index 0f9d9edbf06..ef2e95dd1e4 100644 --- a/sys/arch/i386/include/biosvar.h +++ b/sys/arch/i386/include/biosvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosvar.h,v 1.8 1997/08/22 20:10:21 mickey Exp $ */ +/* $OpenBSD: biosvar.h,v 1.9 1997/09/03 04:33:57 weingart Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -47,8 +47,10 @@ #define BOOTC_PUTC 0x11 #define BOOTC_POLL 0x12 -#define BIOSNHEADS(d) (((d)>>8)+1) -#define BIOSNSECTS(d) ((d)&0xff) /* sectors are 1-based */ +#define BIOSNHEADS(d) (((d)>>24)+1) +#define BIOSNSECTS(d) ((d)&0x3f) /* sectors are 1-based */ +#define BIOSNDRIVES(d) ((((d)>>16)&0x0f)+1) +#define BIOSNTRACKS(d) (( (((d)>>8)&0xff) | (((d)&0xc0)<<2) ) +1) /* BIOS media ID */ #define BIOSM_F320K 0xff /* floppy ds/sd 8 spt */ |