diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-23 06:49:08 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-04-23 06:49:08 +0000 |
commit | 33a3a7f4e585f86b6e90549315bca138b6301840 (patch) | |
tree | acf42b35b5aa8867a83b4b05e70fe78a493bef85 | |
parent | b245164bf0c4f7f325cbcae2aaca091626caaf94 (diff) |
implement 'hd' device (i guess nobody will boot from 'rd')
-rw-r--r-- | sys/arch/i386/stand/libsa/biosdev.c | 20 | ||||
-rw-r--r-- | 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 */ |