diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/alpha/conf.c | 6 | ||||
-rw-r--r-- | sys/arch/amiga/amiga/conf.c | 6 | ||||
-rw-r--r-- | sys/arch/arc/arc/conf.c | 10 | ||||
-rw-r--r-- | sys/arch/arm32/arm32/conf.c | 17 | ||||
-rw-r--r-- | sys/arch/atari/atari/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/i386/i386/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/mvme88k/mvme88k/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/pc532/pc532/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/pica/pica/conf.c | 7 | ||||
-rw-r--r-- | sys/arch/pmax/pmax/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/conf.c | 5 | ||||
-rw-r--r-- | sys/arch/sun3/sun3/conf.c | 4 | ||||
-rw-r--r-- | sys/arch/vax/vax/conf.c | 4 |
15 files changed, 65 insertions, 28 deletions
diff --git a/sys/arch/alpha/alpha/conf.c b/sys/arch/alpha/alpha/conf.c index d96d609a037..fe920244647 100644 --- a/sys/arch/alpha/alpha/conf.c +++ b/sys/arch/alpha/alpha/conf.c @@ -140,6 +140,10 @@ cdev_decl(kbd); cdev_decl(ms); #include "lpt.h" cdev_decl(lpt); +#include "rnd.h" +cdev_decl(rnd); +#include "uk.h" +cdev_decl(uk); cdev_decl(prom); /* XXX XXX XXX */ @@ -178,6 +182,8 @@ struct cdevsw cdevsw[] = cdev_mouse_init(NWSCONS,kbd), /* 29: /dev/kbd XXX */ cdev_mouse_init(NWSCONS,ms), /* 30: /dev/mouse XXX */ cdev_lpt_init(NLPT,lpt), /* 31: parallel printer */ + cdev_uk_init(NUK,uk), /* 32: unknown SCSI */ + cdev_rnd_init(NRND,rnd), /* 33: random data source */ }; int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]); diff --git a/sys/arch/amiga/amiga/conf.c b/sys/arch/amiga/amiga/conf.c index dfe678cec00..a80cbd5c884 100644 --- a/sys/arch/amiga/amiga/conf.c +++ b/sys/arch/amiga/amiga/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.9 1996/05/29 10:14:22 niklas Exp $ */ +/* $OpenBSD: conf.c,v 1.10 1996/07/15 14:57:00 mickey Exp $ */ /* $NetBSD: conf.c,v 1.36 1996/05/19 21:04:18 veego Exp $ */ /*- @@ -101,6 +101,8 @@ dev_decl(filedesc,open); #endif #include "com.h" #include "lpt.h" +#include "rnd.h" +#include "uk.h" struct cdevsw cdevsw[] = { @@ -139,6 +141,8 @@ struct cdevsw cdevsw[] = cdev_tty_init(NCOM,com), /* 32: ISA serial port */ cdev_lpt_init(NLPT,lpt), /* 33: ISA parallel printer */ cdev_gen_ipf(NIPF,ipl), /* 34: IP filter log */ + cdev_rnd_init(NRND,rnd), /* 35: random data source */ + cdev_uk_init(NUK,uk), /* 36: unknown SCSI */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/arc/arc/conf.c b/sys/arch/arc/arc/conf.c index e347c030248..6a19c28d1a2 100644 --- a/sys/arch/arc/arc/conf.c +++ b/sys/arch/arc/arc/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.2 1996/06/24 20:05:34 pefo Exp $ */ +/* $OpenBSD: conf.c,v 1.3 1996/07/15 14:57:00 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)conf.c 8.2 (Berkeley) 11/14/93 - * $Id: conf.c,v 1.2 1996/06/24 20:05:34 pefo Exp $ + * $Id: conf.c,v 1.3 1996/07/15 14:57:00 mickey Exp $ */ #include <sys/param.h> @@ -140,6 +140,10 @@ cdev_decl(sd); cdev_decl(pc); cdev_decl(pms); cdev_decl(cd); +#include "rnd.h" +cdev_decl(rnd); +#include "uk.h" +cdev_decl(uk); /* open, close, read, ioctl */ cdev_decl(ipl); @@ -183,6 +187,8 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 29: */ cdev_notdef(), /* 30: */ cdev_gen_ipf(NIPF,ipl), /* 31: IP filter log */ + cdev_uk_init(NUK,uk), /* 32: unknown SCSI */ + cdev_rnd_init(NRND,rnd), /* 33: random data source */ }; int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]); diff --git a/sys/arch/arm32/arm32/conf.c b/sys/arch/arm32/arm32/conf.c index 6da8418cc10..216cea8ecbb 100644 --- a/sys/arch/arm32/arm32/conf.c +++ b/sys/arch/arm32/arm32/conf.c @@ -172,20 +172,6 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); 0, seltrue, dev_init(c,n,mmap), 0 } /* open, close, write, ioctl */ -#define cdev_uk_init(c,n) { \ - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ - dev_init(c,n,write), dev_init(c,n,ioctl), \ - (dev_type_stop((*))) enodev, \ - 0, seltrue, (dev_type_mmap((*))) enodev, 0 } - -/* open, close, read, ioctl */ -#define cdev_ss_init(c,n) { \ - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ - (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ - (dev_type_stop((*))) enodev, 0, seltrue, \ - (dev_type_mmap((*))) enodev } - -/* open, close, write, ioctl */ #define cdev_iic_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \ @@ -259,6 +245,8 @@ cdev_decl(cpu); cdev_decl(iic); #include "rtc.h" cdev_decl(rtc); +#include "rnd.h" +cdev_decl(rnd); /* Temporary hack for ATAPI CDROM */ cdev_decl(wcd); @@ -309,6 +297,7 @@ struct cdevsw cdevsw[] = { cdev_lkm_dummy(), /* 41: */ cdev_iic_init(NIIC, iic), /* 42: IIC bus driver */ cdev_rtc_init(NRTC, rtc), /* 43: RTC driver */ + cdev_rnd_init(NRND, rnd), /* 44: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/atari/atari/conf.c b/sys/arch/atari/atari/conf.c index 3d56515d17a..617afd69fc1 100644 --- a/sys/arch/atari/atari/conf.c +++ b/sys/arch/atari/atari/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.5 1996/05/04 18:50:37 mickey Exp $ */ +/* $OpenBSD: conf.c,v 1.6 1996/07/15 14:57:02 mickey Exp $ */ /* * Copyright (c) 1991 The Regents of the University of California. @@ -152,6 +152,8 @@ cdev_decl(tun); #define NLKM 0 #endif cdev_decl(lkm); +#include "rnd.h" +cdev_decl(rnd); /* open, close, read, ioctl */ cdev_decl(ipl); @@ -195,6 +197,7 @@ struct cdevsw cdevsw[] = cdev_disk_init(NCCD,ccd), /* 27: concatenated disk driver */ cdev_bpftun_init(NTUN,tun), /* 28: network tunnel */ cdev_gen_ipf(NIPF,ipl), /* 29: IP filter log */ + cdev_rnd_init(NRND,rnd), /* 30: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c index bbf0201283e..027cfe135f9 100644 --- a/sys/arch/i386/i386/conf.c +++ b/sys/arch/i386/i386/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.18 1996/07/15 07:35:13 mickey Exp $ */ +/* $OpenBSD: conf.c,v 1.19 1996/07/15 14:57:02 mickey Exp $ */ /* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */ /* @@ -110,12 +110,11 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]); 0, seltrue, (dev_type_mmap((*))) enodev } /* open, close, read, ioctl */ -#define cdev_ss_init(c,n) { \ +#define cdev_joy_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ (dev_type_stop((*))) enodev, 0, seltrue, \ (dev_type_mmap((*))) enodev } -#define cdev_joy_init cdev_ss_init /* open, close, ioctl, select -- XXX should be a generic device */ #define cdev_ocis_init(c,n) { \ diff --git a/sys/arch/mac68k/mac68k/conf.c b/sys/arch/mac68k/mac68k/conf.c index 9e6cd4e69d2..7d561081d59 100644 --- a/sys/arch/mac68k/mac68k/conf.c +++ b/sys/arch/mac68k/mac68k/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.8 1996/06/23 15:57:59 briggs Exp $ */ +/* $OpenBSD: conf.c,v 1.9 1996/07/15 14:57:03 mickey Exp $ */ /* $NetBSD: conf.c,v 1.34 1996/06/19 02:20:54 briggs Exp $ */ /* @@ -134,6 +134,8 @@ cdev_decl(bpf); #include "tun.h" cdev_decl(tun); dev_decl(filedesc,open); +#include "rnd.h" +cdev_decl(rnd); #ifdef LKM #define NLKM 1 @@ -187,6 +189,7 @@ struct cdevsw cdevsw[] = cdev_lkm_dummy(), /* 30 */ cdev_lkm_dummy(), /* 31 */ cdev_gen_ipf(NIPF,ipl), /* 32: IP filter log */ + cdev_rnd_init(NRND,rnd), /* 33: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/mvme68k/mvme68k/conf.c b/sys/arch/mvme68k/mvme68k/conf.c index 407e01736f3..d4790c56474 100644 --- a/sys/arch/mvme68k/mvme68k/conf.c +++ b/sys/arch/mvme68k/mvme68k/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.7 1996/05/27 21:58:36 chuck Exp $ */ +/* $OpenBSD: conf.c,v 1.8 1996/07/15 14:57:04 mickey Exp $ */ /*- * Copyright (c) 1995 Theo de Raadt @@ -187,6 +187,8 @@ cdev_decl(bpf); #include "tun.h" cdev_decl(tun); +#include "rnd.h" +cdev_decl(rnd); #ifdef LKM #define NLKM 1 @@ -246,6 +248,7 @@ struct cdevsw cdevsw[] = cdev_lkm_dummy(), /* 37 */ cdev_lkm_dummy(), /* 38 */ cdev_gen_ipf(NIPF,ipl), /* 39: IP filter */ + cdev_rnd_init(NRND,rnd), /* 40: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/mvme88k/mvme88k/conf.c b/sys/arch/mvme88k/mvme88k/conf.c index d1d2e47c7bb..8e747f68072 100644 --- a/sys/arch/mvme88k/mvme88k/conf.c +++ b/sys/arch/mvme88k/mvme88k/conf.c @@ -167,6 +167,9 @@ cdev_decl(bpf); #include "tun.h" cdev_decl(tun); +#include "rnd.h" +cdev_decl(rnd); + #ifdef LKM #define NLKM 1 #else @@ -228,6 +231,7 @@ struct cdevsw cdevsw[] = cdev_lkm_dummy(), /* 36 */ cdev_lkm_dummy(), /* 37 */ cdev_lkm_dummy(), /* 38 */ + cdev_rnd_init(NRND,rnd), /* 39: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/pc532/pc532/conf.c b/sys/arch/pc532/pc532/conf.c index 06753222d19..acc072cb4a4 100644 --- a/sys/arch/pc532/pc532/conf.c +++ b/sys/arch/pc532/pc532/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.3 1996/02/21 12:53:49 mickey Exp $ */ +/* $OpenBSD: conf.c,v 1.4 1996/07/15 14:57:05 mickey Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -107,6 +107,8 @@ cdev_decl(bpf); cdev_decl(tun); #include "lpt.h" cdev_decl(lpt); +#include "rnd.h" +cdev_decl(rnd); /* open, close, read, ioctl */ cdev_decl(ipl); @@ -138,6 +140,7 @@ struct cdevsw cdevsw[] = cdev_lpt_init(NLPT, lpt), /* 17: Centronics */ cdev_disk_init(NCCD,ccd), /* 18: concatenated disk driver */ cdev_gen_ipf(NIPF,ipl), /* 19: IP filter log */ + cdev_rnd_init(NRND,rnd), /* 20: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/pica/pica/conf.c b/sys/arch/pica/pica/conf.c index 2aeed2ae974..654320af5af 100644 --- a/sys/arch/pica/pica/conf.c +++ b/sys/arch/pica/pica/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.6 1996/05/15 07:09:10 pefo Exp $ */ +/* $OpenBSD: conf.c,v 1.7 1996/07/15 14:57:06 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)conf.c 8.2 (Berkeley) 11/14/93 - * $Id: conf.c,v 1.6 1996/05/15 07:09:10 pefo Exp $ + * $Id: conf.c,v 1.7 1996/07/15 14:57:06 mickey Exp $ */ #include <sys/param.h> @@ -140,6 +140,8 @@ cdev_decl(sd); cdev_decl(pc); cdev_decl(pms); cdev_decl(cd); +#include "rnd.h" +cdev_decl(rnd); /* open, close, read, ioctl */ cdev_decl(ipl); @@ -183,6 +185,7 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 29: */ cdev_notdef(), /* 30: */ cdev_gen_ipf(NIPF,ipl), /* 31: IP filter log */ + cdev_rnd_init(NRND,rnd), /* 32: random data source */ }; int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]); diff --git a/sys/arch/pmax/pmax/conf.c b/sys/arch/pmax/pmax/conf.c index 900a46cb1ea..3ea5da68b71 100644 --- a/sys/arch/pmax/pmax/conf.c +++ b/sys/arch/pmax/pmax/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.3 1996/02/21 12:53:52 mickey Exp $ */ +/* $OpenBSD: conf.c,v 1.4 1996/07/15 14:57:06 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -145,6 +145,8 @@ cdev_decl(cfb); cdev_decl(xcfb); #include "mfb.h" cdev_decl(mfb); +#include "rnd.h" +cdev_decl(rnd); /* a framebuffer with an attached mouse: */ @@ -258,6 +260,7 @@ struct cdevsw cdevsw[] = cdev_fbm_init(NFB,fb), /* 86: frame buffer pseudo-device */ cdev_disk_init(NCCD,ccd), /* 87: concatenated disk driver */ cdev_gen_ipf(NIPF,ipl), /* 88: IP filter log */ + cdev_rnd_init(NRND,rnd); /* 89: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/sparc/sparc/conf.c b/sys/arch/sparc/sparc/conf.c index a35469ec6b9..a409f8c77c5 100644 --- a/sys/arch/sparc/sparc/conf.c +++ b/sys/arch/sparc/sparc/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.5 1996/05/04 18:50:55 mickey Exp $ */ +/* $OpenBSD: conf.c,v 1.6 1996/07/15 14:57:07 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -175,6 +175,8 @@ cdev_decl(svr4_net); #define NLKM 0 #endif cdev_decl(lkm); +#include "rnd.h" +cdev_decl(rnd); /* open, close, read, ioctl */ cdev_decl(ipl); @@ -311,6 +313,7 @@ struct cdevsw cdevsw[] = cdev_lkm_dummy(), /* 116 */ cdev_lkm_dummy(), /* 117 */ cdev_lkm_dummy(), /* 118 */ + cdev_rnd_init(NRND,rnd), /* 119: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/sun3/sun3/conf.c b/sys/arch/sun3/sun3/conf.c index f7e6e088c3d..7d82a3c1e29 100644 --- a/sys/arch/sun3/sun3/conf.c +++ b/sys/arch/sun3/sun3/conf.c @@ -164,6 +164,9 @@ cdev_decl(bpf); #include "tun.h" cdev_decl(tun); +#include "rnd.h" +cdev_decl(rnd); + dev_decl(filedesc,open); @@ -241,6 +244,7 @@ struct cdevsw cdevsw[] = cdev_notdef(), /* 69: /dev/audio */ cdev_notdef(), /* 70: open prom */ cdev_notdef(), /* 71: (sg?) */ + cdev_rnd_init(NRND,rnd), /* 72: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); diff --git a/sys/arch/vax/vax/conf.c b/sys/arch/vax/vax/conf.c index ce5e911fb86..2054aad80d2 100644 --- a/sys/arch/vax/vax/conf.c +++ b/sys/arch/vax/vax/conf.c @@ -318,6 +318,9 @@ cdev_decl(bpf); #include "tun.h" cdev_decl(tun); +#include "rnd.h" +cdev_decl(rnd); + dev_decl(filedesc,open); struct cdevsw cdevsw[] = @@ -380,6 +383,7 @@ struct cdevsw cdevsw[] = cdev_disk_init(NVND,vnd), /* 55: vnode disk driver */ cdev_bpftun_init(NBPFILTER,bpf),/* 56: berkeley packet filter */ cdev_bpftun_init(NTUN,tun), /* 57: tunnel filter */ + cdev_rnd_init(NRND,rnd), /* 58: random data source */ }; int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]); |