summaryrefslogtreecommitdiffstats
path: root/sys/dev/rc
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-23 20:59:21 +0000
committerphk <phk@FreeBSD.org>1999-08-23 20:59:21 +0000
commit663cbe4fc26065f7af7d10faaee492a626156145 (patch)
tree32e619fadb473bfb85ff8e06044176f2ff323cce /sys/dev/rc
parent2a5ff1f726f814a9e4717afe3f14250f8030cace (diff)
downloadFreeBSD-src-663cbe4fc26065f7af7d10faaee492a626156145.zip
FreeBSD-src-663cbe4fc26065f7af7d10faaee492a626156145.tar.gz
Convert DEVFS hooks in (most) drivers to make_dev().
Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
Diffstat (limited to 'sys/dev/rc')
-rw-r--r--sys/dev/rc/rc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c
index 78b94f2..78dd5f5 100644
--- a/sys/dev/rc/rc.c
+++ b/sys/dev/rc/rc.c
@@ -33,8 +33,6 @@
#include "rc.h"
#if NRC > 0
-#include "opt_devfs.h"
-
/*#define RCDEBUG*/
#include <sys/param.h>
@@ -46,10 +44,6 @@
#include <sys/fcntl.h>
#include <sys/interrupt.h>
#include <sys/kernel.h>
-#ifdef DEVFS
-#include <sys/devfsext.h>
-#endif /*DEVFS*/
-
#include <machine/clock.h>
#include <machine/ipl.h>
@@ -148,9 +142,6 @@ static struct rc_chans {
u_char *rc_obufend; /* end of output buf */
u_char rc_ibuf[4 * RC_IBUFSIZE]; /* input buffer */
u_char rc_obuf[RC_OBUFSIZE]; /* output buffer */
-#ifdef DEVFS
- void *devfs_token;
-#endif
} rc_chans[NRC * CD180_NCHAN];
static int rc_scheduled_event = 0;
@@ -274,14 +265,6 @@ rcattach(dvp)
tp->t_lflag = tp->t_iflag = tp->t_oflag = 0;
tp->t_cflag = TTYDEF_CFLAG;
tp->t_ispeed = tp->t_ospeed = TTYDEF_SPEED;
-#ifdef DEVFS
-/* FIX THIS to reflect real devices */
- rc->devfs_token =
- devfs_add_devswf(&rc_cdevsw,
- (dvp->id_unit * CD180_NCHAN) + chan,
- DV_CHR, 0, 0, 0600, "rc%d.%d",
- dvp->id_unit, chan);
-#endif
}
rcb->rcb_probed = RC_ATTACHED;
if (!rc_started) {
OpenPOWER on IntegriCloud