summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>1997-09-03 04:33:58 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>1997-09-03 04:33:58 +0000
commit536ce900d7d9dc2e0adc1593609bd61dbdfeaeaf (patch)
tree6f637870e43dc77ad6e152c92d4430b85987769f /sys/arch/i386/include
parentb9b2334acd76b54749905eb72032fcfd1754b967 (diff)
2nd part of pretty "machine diskinfo"
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/biosvar.h8
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 */