aboutsummaryrefslogtreecommitdiff
path: root/sys/i4b/driver/i4b_rbch.c
diff options
context:
space:
mode:
authorJulian Elischer <julian@FreeBSD.org>1999-08-27 07:26:26 +0000
committerJulian Elischer <julian@FreeBSD.org>1999-08-27 07:26:26 +0000
commitada9bd8cb8c430a67edc8702b278e2de790e60f2 (patch)
tree2be8092a6407d2d310bd57f56a27ad08b69cb53a /sys/i4b/driver/i4b_rbch.c
parent4e895e3962b65a6771f225261545f0b5c6a02534 (diff)
downloadsrc-ada9bd8cb8c430a67edc8702b278e2de790e60f2.tar.gz
src-ada9bd8cb8c430a67edc8702b278e2de790e60f2.zip
Add PHK's make_dev() into more places where DEVFS used to be
hooked in directly. Alpha change checked by: Matthew Jacob <mjacob@feral.com> i4b ISDN changes checked by: Udo Schweigert <ust@cert.siemens.de> and Hellmuth Michaelis <hm@hcs.de> PC98 changes checked by: Takahashi Yoshihiro <nyan@FreeBSD.org>
Notes
Notes: svn path=/head/; revision=50436
Diffstat (limited to 'sys/i4b/driver/i4b_rbch.c')
-rw-r--r--sys/i4b/driver/i4b_rbch.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/sys/i4b/driver/i4b_rbch.c b/sys/i4b/driver/i4b_rbch.c
index 1179b35c46c5..16d9de450ffd 100644
--- a/sys/i4b/driver/i4b_rbch.c
+++ b/sys/i4b/driver/i4b_rbch.c
@@ -27,7 +27,7 @@
* i4b_rbch.c - device driver for raw B channel data
* ---------------------------------------------------
*
- * $Id: i4b_rbch.c,v 1.36 1999/07/19 14:03:33 hm Exp $
+ * $Id: i4b_rbch.c,v 1.5 1999/08/06 14:02:04 hm Exp $
*
* last edit-date: [Fri Jul 9 09:37:02 1999]
*
@@ -54,14 +54,6 @@ extern cc_t ttydefchars;
#define termioschars(t) memcpy((t)->c_cc, &ttydefchars, sizeof((t)->c_cc))
#endif
-#ifdef __FreeBSD__
-#include "opt_devfs.h"
-#endif
-
-#ifdef DEVFS
-#include <sys/devfsext.h>
-#endif
-
#ifdef __NetBSD__
#include <sys/filio.h>
#define bootverbose 0
@@ -124,10 +116,6 @@ static struct rbch_softc {
#define I4BRBCHMAXQLEN 10
struct selinfo selp; /* select / poll */
-
-#ifdef DEVFS
- void *devfs_token; /* device filesystem */
-#endif
} rbch_softc[NI4BRBCH];
static void rbch_rx_data_rdy(int unit);
@@ -280,12 +268,8 @@ i4brbchattach()
for(i=0; i < NI4BRBCH; i++)
{
-#ifdef DEVFS
- rbch_softc[i].devfs_token =
- devfs_add_devswf(&i4brbch_cdevsw, i, DV_CHR,
- UID_ROOT, GID_WHEEL, 0600,
- "i4brbch%d", i);
-#endif
+ make_dev(&i4brbch_cdevsw, i,
+ UID_ROOT, GID_WHEEL, 0600, "i4brbch%d", i);
rbch_softc[i].sc_devstate = ST_IDLE;
rbch_softc[i].sc_hdlcq.ifq_maxlen = I4BRBCHMAXQLEN;
rbch_softc[i].it_in.c_ispeed = rbch_softc[i].it_in.c_ospeed = 64000;