Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amiga/amiga Add the wd devices for MI wdc IDE drive...



details:   https://anonhg.NetBSD.org/src/rev/9a5aab24a26a
branches:  trunk
changeset: 481484:9a5aab24a26a
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Mon Jan 31 22:49:12 2000 +0000

description:
Add the wd devices for MI wdc IDE drive support.

diffstat:

 sys/arch/amiga/amiga/conf.c |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (58 lines):

diff -r bbda65af91fe -r 9a5aab24a26a sys/arch/amiga/amiga/conf.c
--- a/sys/arch/amiga/amiga/conf.c       Mon Jan 31 22:47:11 2000 +0000
+++ b/sys/arch/amiga/amiga/conf.c       Mon Jan 31 22:49:12 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conf.c,v 1.56 1999/04/19 21:22:56 kleink Exp $ */
+/*     $NetBSD: conf.c,v 1.57 2000/01/31 22:49:12 mhitch Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -59,11 +59,14 @@
 #include "fd.h"
 #include "ccd.h"
 #include "raid.h"
+#include "wd.h"
 #include "ss.h"
 #include "ch.h"
 #include "uk.h"
 #include "md.h"
 
+bdev_decl(wd);
+
 struct bdevsw  bdevsw[] =
 {
        bdev_notdef(),                  /* 0 */
@@ -83,6 +86,7 @@
        bdev_lkm_dummy(),               /* 14 */
        bdev_disk_init(NMD,md),         /* 15: memory disk */
        bdev_disk_init(NRAID,raid),     /* 16: RAIDframe disk driver */
+       bdev_disk_init(NWD,wd),         /* 17: IDE disk */
 };
 int    nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
 
@@ -107,6 +111,8 @@
 #include "rnd.h"
 #include "scsibus.h"
 
+cdev_decl(wd);
+
 #ifdef __I4B_IS_INTEGRATED
 /* open, close, ioctl */
 #define cdev_i4bctl_init(c,n) { \
@@ -219,6 +225,7 @@
 #endif
        cdev_disk_init(NRAID,raid),     /* 50: RAIDframe disk driver */
        cdev_svr4_net_init(NSVR4_NET,svr4_net), /* 51: svr4 net pseudo-device */
+       cdev_disk_init(NWD,wd),         /* 52: IDE disk */
 };
 int    nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
 
@@ -332,6 +339,8 @@
        /* 48 */        NODEV,
        /* 49 */        NODEV,
        /* 50 */        16,
+       /* 51 */        NODEV,
+       /* 52 */        17,
 };
 
 /*



Home | Main Index | Thread Index | Old Index