Add scsibus entry points to the cdevsw[].

This commit is contained in:
thorpej 1998-10-10 02:00:49 +00:00
parent 592306e323
commit 908cdfe4e3
26 changed files with 138 additions and 27 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.32 1998/04/15 20:48:52 drochner Exp $ */
/* $NetBSD: conf.c,v 1.33 1998/10/10 02:00:51 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.32 1998/04/15 20:48:52 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.33 1998/10/10 02:00:51 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -166,6 +166,9 @@ cdev_decl(wsmouse);
#include "spkr.h"
cdev_decl(spkr);
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -220,6 +223,7 @@ struct cdevsw cdevsw[] =
cdev_rnd_init(NRND,rnd), /* 39: random source pseudo-device */
cdev_tty_init(NA12DC,a12dc), /* 40: Avalon A12 detached console */
cdev_spkr_init(NSPKR,spkr), /* 41: PC speaker */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 42: SCSI bus */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
@ -299,6 +303,11 @@ static int chrtoblktbl[] = {
/* 35 */ NODEV,
/* 36 */ 4, /* wd */
/* 37 */ NODEV,
/* 38 */ NODEV,
/* 39 */ NODEV,
/* 40 */ NODEV,
/* 41 */ NODEV,
/* 42 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.49 1998/07/03 22:25:35 mhitch Exp $ */
/* $NetBSD: conf.c,v 1.50 1998/10/10 02:00:51 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -101,6 +101,7 @@ dev_decl(filedesc,open);
#include "tun.h"
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
struct cdevsw cdevsw[] =
{
@ -148,6 +149,7 @@ struct cdevsw cdevsw[] =
cdev_audio_init(NAUDIO,audio), /* 41: cc audio interface */
cdev_rnd_init(NRND,rnd), /* 42: random source pseudo-device */
cdev_disk_init(NMD,md), /* 43: memory disk */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 44: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -254,6 +256,7 @@ static int chrtoblktab[] = {
/* 41 */ NODEV,
/* 42 */ NODEV,
/* 43 */ 15, /* md */
/* 44 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.6 1997/09/27 22:44:23 is Exp $ */
/* $NetBSD: conf.h,v 1.7 1998/10/10 02:00:49 thorpej Exp $ */
/*
* Copyright (c) 1996 Bernd Ernesti. All rights reserved.
@ -88,3 +88,5 @@ cdev_decl(view);
bdev_decl(sw);
cdev_decl(sw);
cdev_decl(scsibus);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.34 1998/10/06 02:41:22 mark Exp $ */
/* $NetBSD: conf.c,v 1.35 1998/10/10 02:00:52 thorpej Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -182,6 +182,7 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
#include "wsdisplay.h"
#include "wskbd.h"
#include "wsmouse.h"
#include "scsibus.h"
/* Character devices */
@ -273,6 +274,7 @@ struct cdevsw cdevsw[] = {
cdev_lkm_dummy(), /* 67: reserved */
cdev_lkm_dummy(), /* 68: reserved */
cdev_lkm_dummy(), /* 69: reserved */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 70: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -384,6 +386,7 @@ static int chrtoblktbl[] = {
/* 67 */ NODEV,
/* 68 */ NODEV,
/* 69 */ NODEV,
/* 70 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.7 1998/10/06 02:40:13 mark Exp $ */
/* $NetBSD: conf.h,v 1.8 1998/10/10 02:00:49 thorpej Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@ -181,3 +181,4 @@ cdev_decl(vc_nb_);
cdev_decl(wsdisplay);
cdev_decl(wskbd);
cdev_decl(wsmouse);
cdev_decl(scsibus);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.35 1998/08/18 07:45:02 leo Exp $ */
/* $NetBSD: conf.c,v 1.36 1998/10/10 02:00:52 thorpej Exp $ */
/*
* Copyright (c) 1991 The Regents of the University of California.
@ -206,6 +206,7 @@ cdev_decl(i4btel);
#include "view.h"
#include "zs.h"
#include "leo.h"
#include "scsibus.h"
cdev_decl(bpf);
cdev_decl(ccd);
@ -244,6 +245,7 @@ cdev_decl(wd);
cdev_decl(zs);
cdev_decl(et);
cdev_decl(leo);
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
@ -305,6 +307,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 47 */
cdev_notdef(), /* 48 */
#endif /* __I4B_IS_INTEGRATED */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 49: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -408,6 +411,15 @@ static int chrtoblktab[] = {
/* 38 */ NODEV,
/* 39 */ NODEV,
/* 40 */ NODEV,
/* 41 */ NODEV,
/* 42 */ NODEV,
/* 43 */ NODEV,
/* 44 */ NODEV,
/* 45 */ NODEV,
/* 46 */ NODEV,
/* 47 */ NODEV,
/* 48 */ NODEV,
/* 49 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.8 1998/09/28 09:33:12 sakamoto Exp $ */
/* $NetBSD: conf.c,v 1.9 1998/10/10 02:00:52 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -198,6 +198,9 @@ cdev_decl(wskbd);
#include "wsmouse.h"
cdev_decl(wsmouse);
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -258,6 +261,7 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(NWSKBD, wskbd), /* 48: keyboards */
cdev_mouse_init(NWSMOUSE,
wsmouse), /* 49: mice */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 50: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -349,6 +353,7 @@ static int chrtoblktbl[] = {
/* 47 */ NODEV,
/* 48 */ NODEV,
/* 49 */ NODEV,
/* 50 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.41 1997/10/13 00:46:24 explorer Exp $ */
/* $NetBSD: conf.c,v 1.42 1998/10/10 02:00:53 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -146,6 +146,13 @@ cdev_decl(tun);
#include "ipfilter.h"
#include "rnd.h"
#ifdef notyet /* XXX XXX XXX */
#include "scsibus.h"
cdev_decl(scsibus);
#else
#define NSCSIBUS 0
#endif
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -182,6 +189,7 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NAPCI,apci), /* 31: Apollo APCI UARTs */
cdev_disk_init(NMD,md), /* 32: memory disk */
cdev_rnd_init(NRND,rnd), /* 33: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 34: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -258,6 +266,7 @@ static int chrtoblktbl[] = {
/* 31 */ NODEV,
/* 32 */ 14,
/* 33 */ NODEV,
/* 34 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.103 1998/09/12 15:05:48 rvb Exp $ */
/* $NetBSD: conf.c,v 1.104 1998/10/10 02:00:53 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -229,6 +229,9 @@ cdev_decl(wskbd);
#include "wsmouse.h"
cdev_decl(wsmouse);
#include "scsibus.h"
cdev_decl(scsibus);
#ifdef __I4B_IS_INTEGRATED
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
@ -356,6 +359,7 @@ struct cdevsw cdevsw[] =
cdev_midi_init(NMIDI,midi), /* 58: MIDI I/O */
cdev_midi_init(NSEQUENCER,sequencer), /* 59: sequencer I/O */
cdev_vc_nb_init(NVCODA,vc_nb_), /* 60: coda file system psdev */
cdev_scsibus_init(NSCSIBUS,scsibus) /* 61: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -458,6 +462,7 @@ static int chrtoblktbl[] = {
/* 58 */ NODEV,
/* 59 */ NODEV,
/* 60 */ NODEV,
/* 61 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.44 1997/10/13 03:59:18 scottr Exp $ */
/* $NetBSD: conf.c,v 1.45 1998/10/10 02:00:54 thorpej Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -104,6 +104,7 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
#include "uk.h"
#include "zsc.h"
#include "zstty.h"
#include "scsibus.h"
cdev_decl(adb);
cdev_decl(asc);
@ -137,6 +138,7 @@ cdev_decl(uk);
cdev_decl(vnd);
cdev_decl(zs);
cdev_decl(zsc);
cdev_decl(scsibus);
dev_decl(filedesc,open);
@ -181,6 +183,7 @@ struct cdevsw cdevsw[] =
cdev_audio_init(NASC,asc), /* 36: ASC audio device */
cdev_se_init(NSE, se), /* 37: SCSI ethernet */
cdev_rnd_init(NRND, rnd), /* 38: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 39: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -261,6 +264,7 @@ static int chrtoblktab[] = {
/* 36 */ NODEV,
/* 37 */ NODEV,
/* 38 */ NODEV,
/* 39 */ NODEV,
};
dev_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.6 1998/07/13 19:37:28 tsubai Exp $ */
/* $NetBSD: conf.c,v 1.7 1998/10/10 02:00:54 thorpej Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -111,6 +111,9 @@ cdev_decl(adb);
cdev_decl(ofc);
cdev_decl(nvram);
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
cdev_ctty_init(1,ctty), /* 1: control tty */
@ -146,6 +149,7 @@ struct cdevsw cdevsw[] = {
cdev_lkm_init(NLKM,lkm), /* 31: loadable module driver */
cdev_fd_init(1,filedesc), /* 32: file descriptor pseudo-device */
cdev_mm_init(1,nvram), /* 33: nvram device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 34: SCSI bus */
};
int nchrdev = sizeof cdevsw / sizeof cdevsw[0];
@ -214,6 +218,7 @@ static int chrtoblktbl[] = {
/* 31 */ NODEV,
/* 32 */ NODEV,
/* 33 */ NODEV,
/* 34 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.13 1997/10/16 23:39:16 christos Exp $ */
/* $NetBSD: conf.c,v 1.14 1998/10/10 02:00:55 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -133,6 +133,9 @@ cdev_decl(lpt);
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -171,6 +174,7 @@ struct cdevsw cdevsw[] =
cdev_scanner_init(NSS,ss), /* 33: SCSI scanner */
cdev_uk_init(NUK,uk), /* 34: SCSI unknown */
cdev_rnd_init(NRND,rnd), /* 35: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus) /* 36: SCSI bus */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
@ -247,6 +251,7 @@ static int chrtoblktbl[] = {
/* 33 */ NODEV,
/* 34 */ NODEV,
/* 35 */ NODEV,
/* 36 */ NODEV,
};
/*

View File

@ -14,3 +14,5 @@ cdev_decl(zs);
cdev_decl(fb);
cdev_decl(bmcn);
cdev_decl(ms);
cdev_decl(scsibus);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.1 1998/02/18 13:48:30 tsubai Exp $ */
/* $NetBSD: conf.c,v 1.2 1998/10/10 02:00:55 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -113,6 +113,7 @@ dev_t swapdev = makedev(4, 0);
#define fbpoll seltrue
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
struct cdevsw cdevsw[] =
{
@ -189,6 +190,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 70: */
cdev_notdef(), /* 71: */
cdev_notdef(), /* 72: */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 73: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -291,6 +293,7 @@ static int chrtoblktbl[] = {
/* 70 */ NODEV,
/* 71 */ NODEV,
/* 72 */ NODEV,
/* 73 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.1.1.1 1998/06/09 07:53:05 dbj Exp $ */
/* $NetBSD: conf.c,v 1.2 1998/10/10 02:00:55 thorpej Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@ -100,6 +100,7 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
#include "uk.h"
#include "zsc.h"
#include "zstty.h"
#include "scsibus.h"
cdev_decl(bpf);
cdev_decl(ccd);
@ -129,6 +130,7 @@ cdev_decl(uk);
cdev_decl(vnd);
cdev_decl(zs);
cdev_decl(zsc);
cdev_decl(scsibus);
dev_decl(filedesc,open);
@ -173,6 +175,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 36 */
cdev_se_init(NSE, se), /* 37: SCSI ethernet */
cdev_rnd_init(NRND, rnd), /* 38: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 39: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -253,6 +256,7 @@ static int chrtoblktab[] = {
/* 36 */ NODEV,
/* 37 */ NODEV,
/* 38 */ NODEV,
/* 39 */ NODEV,
};
dev_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.3 1998/09/05 15:28:08 christos Exp $ */
/* $NetBSD: conf.h,v 1.4 1998/10/10 02:00:50 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -58,3 +58,5 @@ cdev_decl(sw);
bdev_decl(md);
cdev_decl(md);
cdev_decl(scsibus);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.36 1997/10/17 01:59:56 christos Exp $ */
/* $NetBSD: conf.c,v 1.37 1998/10/10 02:00:56 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -62,6 +62,7 @@
#include "ss.h"
#include "tun.h"
#include "uk.h"
#include "scsibus.h"
struct bdevsw bdevsw[] =
{
@ -113,6 +114,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 27 */
cdev_ipf_init(NIPFILTER,ipl), /* 28: ip-filter device */
cdev_rnd_init(NRND,rnd), /* 29: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 30: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -183,7 +185,8 @@ static int chrtoblktbl[] = {
/* 26 */ NODEV,
/* 27 */ NODEV,
/* 28 */ NODEV,
/* 29 */ NODEV
/* 29 */ NODEV,
/* 30 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.11 1997/10/16 23:41:55 christos Exp $ */
/* $NetBSD: conf.c,v 1.12 1998/10/10 02:00:56 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -147,6 +147,9 @@ dev_decl(filedesc,open);
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -184,6 +187,7 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 30: */
cdev_ipf_init(NIPFILTER,ipl), /* 31: ip-filter device */
cdev_rnd_init(NRND,rnd), /* 32: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 33: SCSI bus */
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.28 1998/09/03 07:12:43 nisimura Exp $ */
/* $NetBSD: conf.c,v 1.29 1998/10/10 02:00:57 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -169,6 +169,9 @@ cdev_decl(vnd);
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
cdev_decl(scsibus);
#if (NDC_DS > 0) || (NDC_IOASIC > 0)
# define NDC 1
#else
@ -285,6 +288,7 @@ struct cdevsw cdevsw[] =
cdev_rnd_init(NRND,rnd), /* 92: random source pseudo-device */
cdev_bpftun_init(NTUN,tun), /* 93: network tunnel */
cdev_lkm_init(NLKM,lkm), /* 94: loadable module driver */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 95: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -419,6 +423,7 @@ static int chrtoblktbl[] = {
/* 92 */ NODEV,
/* 93 */ NODEV,
/* 94 */ NODEV,
/* 95 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.12 1998/09/21 21:13:52 pk Exp $ */
/* $NetBSD: conf.h,v 1.13 1998/10/10 02:00:50 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -101,3 +101,5 @@ cdev_decl(mtty);
cdev_decl(mbpp);
cdev_decl(bpp);
cdev_decl(scsibus);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.55 1998/09/21 21:13:51 pk Exp $ */
/* $NetBSD: conf.c,v 1.56 1998/10/10 02:00:57 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -90,6 +90,7 @@
#include "md.h"
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
struct bdevsw bdevsw[] =
{
@ -243,6 +244,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 117 */
cdev_lkm_dummy(), /* 118 */
cdev_rnd_init(NRND,rnd), /* 119: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 120: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -402,6 +404,7 @@ static int chrtoblktbl[] = {
/*117 */ NODEV,
/*118 */ NODEV,
/*119 */ NODEV,
/*120 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.h,v 1.2 1998/09/05 15:28:09 christos Exp $ */
/* $NetBSD: conf.h,v 1.3 1998/10/10 02:00:50 thorpej Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -96,3 +96,5 @@ cdev_decl(sw);
bdev_decl(md);
cdev_decl(md);
cdev_decl(scsibus);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.1.1.1 1998/06/20 04:58:52 eeh Exp $ */
/* $NetBSD: conf.c,v 1.2 1998/10/10 02:00:57 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@ -83,6 +83,7 @@
#include "md.h"
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
struct bdevsw bdevsw[] =
{
@ -236,6 +237,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 117 */
cdev_lkm_dummy(), /* 118 */
cdev_rnd_init(NRND,rnd), /* 119: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 120: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -395,6 +397,7 @@ static int chrtoblktbl[] = {
/*117 */ NODEV,
/*118 */ NODEV,
/*119 */ NODEV,
/*120 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.60 1998/02/26 16:01:18 gwr Exp $ */
/* $NetBSD: conf.c,v 1.61 1998/10/10 02:00:58 thorpej Exp $ */
/*-
* Copyright (c) 1994 Adam Glass, Gordon W. Ross
@ -168,6 +168,9 @@ cdev_decl(xy);
#include "zstty.h"
cdev_decl(zs);
#include "scsibus.h"
cdev_decl(scsibus);
/* Block devices */
struct bdevsw bdevsw[] =
{
@ -283,6 +286,7 @@ struct cdevsw cdevsw[] =
cdev_lkm_dummy(), /* 78 */
cdev_notdef(), /* 79 */
cdev_rnd_init(NRND,rnd), /* 80: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 81: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -405,6 +409,7 @@ static int chrtoblktbl[] = {
/* 78 */ NODEV,
/* 79 */ NODEV,
/* 80 */ NODEV,
/* 81 */ NODEV,
};
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.36 1998/09/30 14:09:59 ragge Exp $ */
/* $NetBSD: conf.c,v 1.37 1998/10/10 02:00:58 thorpej Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -379,6 +379,9 @@ cdev_decl(wskbd);
#include "wsmouse.h"
cdev_decl(wsmouse);
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -456,6 +459,7 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(NWSMOUSE,
wsmouse), /* 70: mice */
cdev_disk_init(NRY,ry), /* 71: VS floppy */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 72: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -545,6 +549,7 @@ int chrtoblktbl[] = {
NODEV, /* 69 */
NODEV, /* 70 */
NODEV, /* 71 */
NODEV, /* 72 */
};
dev_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.14 1998/08/05 16:08:37 minoura Exp $ */
/* $NetBSD: conf.c,v 1.15 1998/10/10 02:00:59 thorpej Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -183,6 +183,9 @@ cdev_decl(uk);
#include "ipfilter.h"
#include "rnd.h"
#include "scsibus.h"
cdev_decl(scsibus);
struct cdevsw cdevsw[] =
{
cdev_cn_init(1,cn), /* 0: virtual console */
@ -229,6 +232,7 @@ struct cdevsw cdevsw[] =
cdev_ch_init(NUK,uk), /* 37: SCSI unknown device */
cdev_ipf_init(NIPFILTER,ipl), /* 38: IP filter device */
cdev_rnd_init(NRND,rnd), /* 39: random source pseudo-device */
cdev_scsibus_init(NSCSIBUS,scsibus), /* 40: SCSI bus */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
@ -289,6 +293,7 @@ static int chrtoblktbl[] = {
/* 34 */ 15, /* 35 */ NODEV,
/* 36 */ NODEV, /* 37 */ NODEV,
/* 38 */ NODEV, /* 39 */ NODEV,
/* 40 */ NODEV,
};
/*