Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Add isdn devices to all archs that seem to support ...



details:   https://anonhg.NetBSD.org/src/rev/0842294096bc
branches:  trunk
changeset: 501888:0842294096bc
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jan 08 21:46:33 2001 +0000

description:
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.

diffstat:

 sys/arch/alpha/alpha/conf.c      |  10 +++---
 sys/arch/amiga/amiga/conf.c      |   9 ++---
 sys/arch/arc/arc/conf.c          |  58 +++++++++++++++++++++++++++++++++++----
 sys/arch/arm32/arm32/conf.c      |  54 ++++++++++++++++++++++++++++++++++++-
 sys/arch/atari/atari/conf.c      |  10 +++---
 sys/arch/bebox/bebox/conf.c      |  54 ++++++++++++++++++++++++++++++++++++-
 sys/arch/cobalt/cobalt/conf.c    |  54 ++++++++++++++++++++++++++++++++++++-
 sys/arch/hpcmips/hpcmips/conf.c  |  53 +++++++++++++++++++++++++++++++++++-
 sys/arch/i386/conf/Makefile.i386 |   4 +-
 sys/arch/i386/i386/conf.c        |   8 ++--
 sys/arch/macppc/macppc/conf.c    |  52 +++++++++++++++++++++++++++++++++++-
 sys/arch/prep/prep/conf.c        |  52 +++++++++++++++++++++++++++++++++++-
 sys/arch/sgimips/sgimips/conf.c  |  57 +++++++++++++++++++++++++++++++++++++--
 sys/arch/sparc/sparc/conf.c      |  58 +++++++++++++++++++++++++++++++++++----
 sys/arch/sparc64/sparc64/conf.c  |  58 +++++++++++++++++++++++++++++++++++----
 sys/arch/x68k/x68k/conf.c        |  53 +++++++++++++++++++++++++++++++++++-
 16 files changed, 595 insertions(+), 49 deletions(-)

diffs (truncated from 1014 to 300 lines):

diff -r 26f077bbb20e -r 0842294096bc sys/arch/alpha/alpha/conf.c
--- a/sys/arch/alpha/alpha/conf.c       Mon Jan 08 21:45:42 2001 +0000
+++ b/sys/arch/alpha/alpha/conf.c       Mon Jan 08 21:46:33 2001 +0000
@@ -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 @@
        (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 @@
        (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), \
diff -r 26f077bbb20e -r 0842294096bc sys/arch/amiga/amiga/conf.c
--- a/sys/arch/amiga/amiga/conf.c       Mon Jan 08 21:45:42 2001 +0000
+++ b/sys/arch/amiga/amiga/conf.c       Mon Jan 08 21:46:33 2001 +0000
@@ -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 @@
        (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 @@
        (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"
diff -r 26f077bbb20e -r 0842294096bc sys/arch/arc/arc/conf.c
--- a/sys/arch/arc/arc/conf.c   Mon Jan 08 21:45:42 2001 +0000
+++ b/sys/arch/arc/arc/conf.c   Mon Jan 08 21:46:33 2001 +0000
@@ -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 @@
        (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 @@
        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: */
diff -r 26f077bbb20e -r 0842294096bc sys/arch/arm32/arm32/conf.c
--- a/sys/arch/arm32/arm32/conf.c       Mon Jan 08 21:45:42 2001 +0000
+++ b/sys/arch/arm32/arm32/conf.c       Mon Jan 08 21:46:33 2001 +0000
@@ -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 @@
 
 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 @@
 #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]);
diff -r 26f077bbb20e -r 0842294096bc sys/arch/atari/atari/conf.c
--- a/sys/arch/atari/atari/conf.c       Mon Jan 08 21:45:42 2001 +0000
+++ b/sys/arch/atari/atari/conf.c       Mon Jan 08 21:46:33 2001 +0000
@@ -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 @@
        (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 @@
        (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"
diff -r 26f077bbb20e -r 0842294096bc sys/arch/bebox/bebox/conf.c
--- a/sys/arch/bebox/bebox/conf.c       Mon Jan 08 21:45:42 2001 +0000
+++ b/sys/arch/bebox/bebox/conf.c       Mon Jan 08 21:46:33 2001 +0000
@@ -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 @@
        (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 }



Home | Main Index | Thread Index | Old Index