diff options
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.h | 14 |
2 files changed, 15 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index a822266e795..6935a2a709f 100644 --- a/sys/arch/i386/stand/libsa/biosdev.c +++ b/sys/arch/i386/stand/libsa/biosdev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.c,v 1.61 2003/09/11 17:39:35 deraadt Exp $ */ +/* $OpenBSD: biosdev.c,v 1.62 2003/09/16 03:43:11 fgsch Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -145,7 +145,7 @@ bios_getdiskinfo(int dev, bios_diskinfo_t *pdi) * If extended disk access functions are not supported * there is not much point on doing EDD. */ - if (!(pdi->bios_edd & 1)) + if (!(pdi->bios_edd & EXT_BM_EDA)) pdi->bios_edd = -1; } else pdi->bios_edd = -1; diff --git a/sys/arch/i386/stand/libsa/biosdev.h b/sys/arch/i386/stand/libsa/biosdev.h index 0de6e740046..68fc0277e93 100644 --- a/sys/arch/i386/stand/libsa/biosdev.h +++ b/sys/arch/i386/stand/libsa/biosdev.h @@ -1,4 +1,4 @@ -/* $OpenBSD: biosdev.h,v 1.29 2003/06/03 20:22:11 mickey Exp $ */ +/* $OpenBSD: biosdev.h,v 1.30 2003/09/16 03:43:11 fgsch Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -27,6 +27,18 @@ * */ +/* + * Extension support bitmap definition (returned by 41h) + */ +#define EXT_BM_EDA 0x01 /* Extended disk access functions */ + /* (42h-44h, 47h and 48h) supported. */ +#define EXT_BM_RDC 0x02 /* Removable drive controller functions */ + /* (45h, 46h, 48h, 49h and INT 15 52h) */ + /* supported. */ +#define EXT_BM_EDD 0x04 /* Enhanced disk drive functions */ + /* (48h and 4eh) supported. */ +#define EXT_BM_RSV 0xf8 /* Reserved (0) */ + struct consdev; struct open_file; |