From dc3210bac6e20140bbf34b093335dbbcbcc30513 Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 23 Apr 1997 06:49:06 +0000 Subject: [PATCH] implement 'hd' device (i guess nobody will boot from 'rd') --- sys/arch/i386/stand/libsa/biosdev.c | 20 ++++++++++++++------ sys/arch/i386/stand/libsa/dev_i386.c | 5 +++-- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c index 00b2953d6f2..7c4a944888a 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.12 1997/04/20 19:01:35 mickey Exp $ */ +/* $OpenBSD: biosdev.c,v 1.13 1997/04/23 06:49:06 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -120,16 +120,24 @@ biosopen(struct open_file *f, ...) bootdev = bd->bsddev = MAKEBOOTDEV(maj, 0, 0, unit, part); switch (maj) { - case 0: /* wd */ - case 4: /* sd */ + case 0: /* wd */ + case 4: /* sd */ + case 17: /* hd */ bd->biosdev = (u_int8_t)(unit | 0x80); break; - case 2: /* fd */ + case 2: /* fd */ bd->biosdev = (u_int8_t)unit; break; - case 3: /* wt */ + case 7: /* mcd */ + case 15: /* scd */ + case 6: /* cd */ + case 18: /* acd */ #ifdef DEBUG - if (debug) + printf("no any CD supported at this time\n"); +#endif + case 3: /* wt */ +#ifdef DEBUG + if (maj == 3) printf("Wangtek is unsupported\n"); #endif default: diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c index bf1bd19cf2c..f433784d56f 100644 --- a/sys/arch/i386/stand/libsa/dev_i386.c +++ b/sys/arch/i386/stand/libsa/dev_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dev_i386.c,v 1.9 1997/04/17 21:28:22 deraadt Exp $ */ +/* $OpenBSD: dev_i386.c,v 1.10 1997/04/23 06:49:07 mickey Exp $ */ /* * Copyright (c) 1996 Michael Shalayeff @@ -37,9 +37,10 @@ extern int debug; +/* XXX use slot for 'rd' for 'hd' pseudo-device */ const char bdevs[19][4] = { "wd", "", "fd", "wt", "sd", "st", "cd", "mcd", - "", "", "", "", "", "", "", "scd", "", "", "acd" + "", "", "", "", "", "", "", "scd", "", "hd", "acd" }; /* pass dev_t to the open routines */ -- 2.20.1