summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/tw.c
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/i386/isa/tw.c
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/i386/isa/tw.c')
-rw-r--r--sys/i386/isa/tw.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/i386/isa/tw.c b/sys/i386/isa/tw.c
index c7de9d3..3556255 100644
--- a/sys/i386/isa/tw.c
+++ b/sys/i386/isa/tw.c
@@ -32,8 +32,6 @@
#include "tw.h"
#if NTW > 0
-#include "opt_devfs.h"
-
/*
* Driver configuration parameters
*/
@@ -148,10 +146,6 @@
#include <sys/syslog.h>
#include <sys/select.h>
#include <sys/poll.h>
-#ifdef DEVFS
-#include <sys/devfsext.h>
-#endif /*DEVFS*/
-
#define MIN(a,b) ((a)<(b)?(a):(b))
#ifdef HIRESTIME
@@ -278,9 +272,6 @@ static struct tw_sc {
#define SC_RCV_TIME_LEN 128
int sc_rcv_time[SC_RCV_TIME_LEN]; /* usec time stamp on interrupt */
#endif /* HIRESTIME */
-#ifdef DEVFS
- void *devfs_token; /* store the devfs handle */
-#endif
} tw_sc[NTW];
static int tw_zcport; /* offset of port for zero crossing signal */
@@ -418,13 +409,7 @@ static int twattach(idp)
sc->sc_state = 0;
sc->sc_rcount = 0;
callout_handle_init(&sc->abortrcv_ch);
-
-#ifdef DEVFS
- sc->devfs_token =
- devfs_add_devswf(&tw_cdevsw, unit, DV_CHR, 0, 0,
- 0600, "tw%d", unit);
-#endif
-
+ make_dev(&tw_cdevsw, unit, 0, 0, 0600, "tw%d", unit);
return (1);
}
OpenPOWER on IntegriCloud