diff options
author | phk <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-08-23 20:59:21 +0000 |
commit | 663cbe4fc26065f7af7d10faaee492a626156145 (patch) | |
tree | 32e619fadb473bfb85ff8e06044176f2ff323cce /sys/i386/isa/pcvt | |
parent | 2a5ff1f726f814a9e4717afe3f14250f8030cace (diff) | |
download | FreeBSD-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/pcvt')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index c4e9f94..4f0bfd6 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -79,18 +79,9 @@ #include "vt.h" #if NVT > 0 -#include "opt_devfs.h" - #define EXTERN /* allocate mem */ #include <i386/isa/pcvt/pcvt_hdr.h> /* global include */ -#ifdef DEVFS -#include <sys/devfsext.h> -#if !defined(MAXCONS) -#define MAXCONS 16 -#endif -static void *pcvt_devfs_token[MAXCONS]; -#endif /*DEVFS*/ #if PCVT_FREEBSD >= 200 #include <sys/bus.h> @@ -220,9 +211,6 @@ pcattach(struct isa_device *dev) { #endif /* PCVT_NETBSD > 9 */ -#ifdef DEVFS - int vt; -#endif /*DEVFS*/ int i; vt_coldmalloc(); /* allocate memory for screens */ @@ -389,14 +377,6 @@ pcattach(struct isa_device *dev) #if PCVT_FREEBSD > 205 cdevsw_add(&pc_cdevsw); - -#ifdef DEVFS - for(vt = 0; vt < MAXCONS; vt++) { - pcvt_devfs_token[vt] = - devfs_add_devswf(&pc_cdevsw, vt, - DV_CHR, 0, 0, 0600, "ttyv%r", vt ); - } -#endif DEVFS #endif /* PCVT_FREEBSD > 205 */ #if PCVT_NETBSD > 9 |