Add isdn devices to all archs that seem to support at least one of the

necessary busses. Sync comments with reality for archs that already had
the devices.
This commit is contained in:
martin 2001-01-08 21:46:33 +00:00
parent 666e82a4e9
commit f53c899649
16 changed files with 595 additions and 49 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.53 2001/01/05 13:09:16 martin Exp $ */
/* $NetBSD: conf.c,v 1.54 2001/01/08 21:46:33 martin 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.53 2001/01/05 13:09:16 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.54 2001/01/08 21:46:33 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -214,14 +214,14 @@ cdev_decl(uscanner);
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
@ -235,7 +235,7 @@ cdev_decl(uscanner);
(dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, poll, ioctl */
/* open, close, read, ioctl, poll */
#define cdev_i4b_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), \

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.58 2001/01/05 13:09:16 martin Exp $ */
/* $NetBSD: conf.c,v 1.59 2001/01/08 21:46:34 martin Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -120,14 +120,14 @@ cdev_decl(wd);
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
@ -141,13 +141,12 @@ cdev_decl(wd);
(dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, poll, ioctl */
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.18 2000/06/17 07:28:07 soda Exp $ */
/* $NetBSD: conf.c,v 1.19 2001/01/08 21:46:34 martin Exp $ */
/* $OpenBSD: conf.c,v 1.27 1999/08/12 13:06:33 niklas Exp $ */
/*
@ -125,6 +125,52 @@ int nblkdev = ARRAY_LENGTH(bdevsw);
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
cdev_decl(cn);
cdev_decl(sw);
cdev_decl(ctty);
@ -225,11 +271,11 @@ struct cdevsw cdevsw[] =
cdev_scanner_init(NSS,ss), /* 34: SCSI scanner */
cdev_notdef(), /* 35: OpenBSD Kernel symbols device */
cdev_ch_init(NCH,ch), /* 36: SCSI autochanger */
cdev_notdef(), /* 37: */
cdev_notdef(), /* 38: */
cdev_notdef(), /* 39: */
cdev_notdef(), /* 40: */
cdev_notdef(), /* 41: */
cdev_i4b_init(NI4B, i4b), /* 37: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 38: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 39: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 40: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 41: i4b phone device */
cdev_notdef(), /* 42: */
cdev_notdef(), /* 33: */
cdev_notdef(), /* 44: */

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.44 2000/11/14 07:13:03 matt Exp $ */
/* $NetBSD: conf.c,v 1.45 2001/01/08 21:46:35 martin Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -146,6 +146,52 @@ struct bdevsw bdevsw[] = {
int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
#include "vt.h"
#include "pty.h"
#define ptstty ptytty
@ -289,6 +335,12 @@ struct cdevsw cdevsw[] = {
#else
cdev_notdef(), /* 77: */
#endif
cdev_i4b_init(NI4B, i4b), /* 78: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 79: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 80: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 81: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 82: i4b phone device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.42 2001/01/05 13:09:16 martin Exp $ */
/* $NetBSD: conf.c,v 1.43 2001/01/08 21:46:35 martin Exp $ */
/*
* Copyright (c) 1991 The Regents of the University of California.
@ -145,14 +145,14 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
@ -166,13 +166,13 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
(dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, poll, ioctl */
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.11 1999/07/29 19:14:36 augustss Exp $ */
/* $NetBSD: conf.c,v 1.12 2001/01/08 21:46:35 martin Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -130,6 +130,52 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
(dev_type_stop((*))) enodev, 0, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
cdev_decl(cn);
cdev_decl(ctty);
#define mmread mmrw
@ -270,6 +316,12 @@ struct cdevsw cdevsw[] =
cdev_scsibus_init(NSCSIBUS,scsibus), /* 50: SCSI bus */
cdev_disk_init(NRAID,raid), /* 51: RAIDframe disk driver */
cdev_mouse_init(NWSMUX, wsmux), /* 52: ws multiplexor */
cdev_i4b_init(NI4B, i4b), /* 53: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 54: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 55: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 56: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 57: i4b phone device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.7 2000/11/26 17:44:08 ad Exp $ */
/* $NetBSD: conf.c,v 1.8 2001/01/08 21:46:36 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -73,6 +73,52 @@ cdev_decl(scsibus);
cdev_decl(ses);
#include "ld.h"
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
struct bdevsw bdevsw[] =
{
bdev_notdef(), /* 0 */
@ -134,6 +180,12 @@ struct cdevsw cdevsw[] =
cdev_ses_init(NSES,ses), /* 25: SCSI SES/SAF-TE */
cdev_tty_init(NCOM,com), /* 26: com serial port */
cdev_disk_init(NLD,ld), /* 27: logical disk driver */
cdev_i4b_init(NI4B, i4b), /* 28: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 29: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 30: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 31: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 32: i4b phone device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.8 2000/09/23 04:30:09 augustss Exp $ */
/* $NetBSD: conf.c,v 1.9 2001/01/08 21:46:36 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -178,6 +178,52 @@ cdev_decl(urio);
#include "uscanner.h"
cdev_decl(uscanner);
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
#include "rnd.h"
struct cdevsw cdevsw[] =
@ -229,6 +275,11 @@ struct cdevsw cdevsw[] =
cdev_mouse_init(NWSMUX, wsmux), /* 38: ws multiplexor */
cdev_usbdev_init(NURIO,urio), /* 39: Diamond Rio 500 */
cdev_ugen_init(NUSCANNER,uscanner),/* 40: USB scanner */
cdev_i4b_init(NI4B, i4b), /* 41: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 42: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 43: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 44: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 45: i4b phone device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.i386,v 1.108 2000/12/17 15:52:41 jdolecek Exp $
# $NetBSD: Makefile.i386,v 1.109 2001/01/08 21:46:36 martin Exp $
# Makefile for NetBSD
#
@ -30,7 +30,7 @@ SIZE?= size
STRIP?= strip
TSORT?= tsort -q
COPTS?= -O2
COPTS?= -O2 -march=i686 -pipe
# source tree is located via $S relative to the compilation directory
.ifndef S

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.135 2001/01/05 13:09:16 martin Exp $ */
/* $NetBSD: conf.c,v 1.136 2001/01/08 21:46:37 martin Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -249,14 +249,14 @@ cdev_decl(scsibus);
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write */
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
@ -270,7 +270,7 @@ cdev_decl(scsibus);
(dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, poll, ioctl */
/* open, close, read, ioctl, poll */
#define cdev_i4b_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), \

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.27 2000/11/14 21:46:09 matt Exp $ */
/* $NetBSD: conf.c,v 1.28 2001/01/08 21:46:37 martin Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -162,6 +162,51 @@ cdev_decl(com);
cdev_decl(cy);
#include "openfirm.h"
cdev_decl(openfirm);
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
struct cdevsw cdevsw[] = {
cdev_cn_init(1,cn), /* 0: virtual console */
@ -218,6 +263,11 @@ struct cdevsw cdevsw[] = {
cdev_usbdev_init(NURIO,urio), /* 51: Diamond Rio 500 */
cdev_ugen_init(NUSCANNER,uscanner),/* 52: USB scanner */
cdev_openfirm_init(NOPENFIRM,openfirm), /* 53: /dev/openfirm */
cdev_i4b_init(NI4B, i4b), /* 54: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 55: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 56: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 57: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 58: i4b phone device */
};
int nchrdev = sizeof cdevsw / sizeof cdevsw[0];

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.1 2000/02/29 15:21:47 nonaka Exp $ */
/* $NetBSD: conf.c,v 1.2 2001/01/08 21:46:37 martin Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -203,6 +203,51 @@ cdev_decl(wsmux);
#include "scsibus.h"
cdev_decl(scsibus);
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
struct cdevsw cdevsw[] =
{
@ -274,6 +319,11 @@ struct cdevsw cdevsw[] =
cdev_notdef(), /* 63 */
cdev_notdef(), /* 64 */
cdev_mouse_init(NWSMUX, wsmux), /* 65: ws multiplexor */
cdev_i4b_init(NI4B, i4b), /* 66: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 67: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 68: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 69: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 70: i4b phone device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.3 2000/11/26 17:44:10 ad Exp $ */
/* $NetBSD: conf.c,v 1.4 2001/01/08 21:46:38 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -72,6 +72,52 @@ cdev_decl(zs);
#include "com.h"
cdev_decl(com);
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
struct bdevsw bdevsw[] =
{
bdev_notdef(), /* 0: */
@ -147,8 +193,13 @@ struct cdevsw cdevsw[] =
cdev_tty_init(NZSTTY,zs), /* 35: Zilog 8530 serial port */
cdev_tty_init(NCOM,com), /* 36: com serial port */
cdev_tty_init(1,arcs), /* 37: ARCS PROM console */
cdev_notdef(), /* 38: */
cdev_notdef(), /* 39: */
cdev_i4b_init(NI4B, i4b), /* 38: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 39: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 40: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 41: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 42: i4b phone device */
cdev_notdef(), /* 43: */
cdev_notdef(), /* 44: */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.64 2000/04/14 13:29:58 tsutsui Exp $ */
/* $NetBSD: conf.c,v 1.65 2001/01/08 21:46:38 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -101,6 +101,52 @@
#include "vcoda.h"
cdev_decl(vc_nb_);
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
struct bdevsw bdevsw[] =
{
bdev_notdef(), /* 0 */
@ -206,11 +252,11 @@ struct cdevsw cdevsw[] =
cdev_gen_init(NAUDIO,audio), /* 69: /dev/audio */
cdev_openprom_init(1,openprom), /* 70: /dev/openprom */
cdev_tctrl_init(NTCTRL,tctrl), /* 71: /dev/tctrl */
cdev_notdef(), /* 72 */
cdev_notdef(), /* 73 */
cdev_notdef(), /* 74 */
cdev_notdef(), /* 75 */
cdev_notdef(), /* 76 */
cdev_i4b_init(NI4B, i4b), /* 72: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 73: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 74: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 75: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 76: i4b phone device */
cdev_notdef(), /* 77 */
cdev_notdef(), /* 78 */
cdev_notdef(), /* 79 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.11 2000/10/28 23:19:31 eeh Exp $ */
/* $NetBSD: conf.c,v 1.12 2001/01/08 21:46:38 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -98,6 +98,52 @@
#include "rnd.h"
#include "scsibus.h"
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
struct bdevsw bdevsw[] =
{
bdev_notdef(), /* 0 */
@ -203,11 +249,11 @@ struct cdevsw cdevsw[] =
cdev_gen_init(NAUDIO,audio), /* 69: /dev/audio */
cdev_openprom_init(1,openprom), /* 70: /dev/openprom */
cdev_notdef(), /* 71 */
cdev_notdef(), /* 72 */
cdev_notdef(), /* 73 */
cdev_notdef(), /* 74 */
cdev_notdef(), /* 75 */
cdev_notdef(), /* 76 */
cdev_i4b_init(NI4B, i4b), /* 72: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 73: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 74: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 75: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 76: i4b phone device */
cdev_notdef(), /* 77 */
cdev_notdef(), /* 78 */
cdev_notdef(), /* 79 */

View File

@ -1,4 +1,4 @@
/* $NetBSD: conf.c,v 1.20 2000/07/13 17:40:35 cgd Exp $ */
/* $NetBSD: conf.c,v 1.21 2001/01/08 21:46:38 martin Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@ -131,6 +131,52 @@ int nblkdev = sizeof(bdevsw) / sizeof(bdevsw[0]);
(dev_type_stop((*))) nullop, 0, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, ioctl */
#define cdev_i4bctl_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
(dev_type_stop((*))) enodev, 0, seltrue, \
(dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4brbch_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
/* open, close, read, write, poll */
#define cdev_i4btel_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
dev_init(c,n,write), (dev_type_ioctl((*))) enodev, \
(dev_type_stop((*))) enodev, \
0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev, D_TTY }
/* open, close, read, ioctl */
#define cdev_i4btrc_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, (dev_type_poll((*))) enodev, \
(dev_type_mmap((*))) enodev }
/* open, close, read, ioctl, poll */
#define cdev_i4b_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, dev_init(c,n,poll), \
(dev_type_mmap((*))) enodev }
#include "i4b.h"
#include "i4bctl.h"
#include "i4btrc.h"
#include "i4brbch.h"
#include "i4btel.h"
cdev_decl(i4b);
cdev_decl(i4bctl);
cdev_decl(i4btrc);
cdev_decl(i4brbch);
cdev_decl(i4btel);
cdev_decl(cn);
cdev_decl(ctty);
#define mmread mmrw
@ -246,6 +292,11 @@ struct cdevsw cdevsw[] =
cdev_scsibus_init(NSCSIBUS,scsibus), /* 40: SCSI bus */
cdev_disk_init(NRAID,raid), /* 41: RAIDframe disk driver */
cdev_svr4_net_init(NSVR4_NET,svr4_net), /* 42: svr4 net pseudo-device */
cdev_i4b_init(NI4B, i4b), /* 43: i4b main device */
cdev_i4bctl_init(NI4BCTL, i4bctl), /* 44: i4b control device */
cdev_i4brbch_init(NI4BRBCH, i4brbch), /* 45: i4b raw b-channel access */
cdev_i4btrc_init(NI4BTRC, i4btrc), /* 46: i4b trace device */
cdev_i4btel_init(NI4BTEL, i4btel), /* 47: i4b phone device */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);