From 536ce900d7d9dc2e0adc1593609bd61dbdfeaeaf Mon Sep 17 00:00:00 2001 From: Tobias Weingartner Date: Wed, 3 Sep 1997 04:33:58 +0000 Subject: 2nd part of pretty "machine diskinfo" --- sys/arch/i386/include/biosvar.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys') 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 */ -- cgit v1.2.3