summaryrefslogtreecommitdiffstats
path: root/sys/dev/streams
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/streams
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/streams')
-rw-r--r--sys/dev/streams/streams.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c
index 07717d5..685d724 100644
--- a/sys/dev/streams/streams.c
+++ b/sys/dev/streams/streams.c
@@ -30,11 +30,10 @@
* skeleton produced from /usr/share/examples/drivers/make_pseudo_driver.sh
* in 3.0-980524-SNAP then hacked a bit (but probably not enough :-).
*
- * $Id: streams.c,v 1.8 1999/08/01 12:51:06 newton Exp $
+ * $Id: streams.c,v 1.9 1999/08/04 18:53:37 green Exp $
*/
#include "streams.h" /* generated file.. defines NSTREAMS */
-#include "opt_devfs.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h> /* SYSINIT stuff */
@@ -53,9 +52,6 @@
#include <netinet/in.h>
#include <sys/proc.h>
#include <sys/uio.h>
-#ifdef DEVFS
-#include <sys/devfsext.h> /* DEVFS defintitions */
-#endif /* DEVFS */
#include <sys/sysproto.h>
@@ -129,22 +125,6 @@ static struct cdevsw streams_cdevsw = {
struct streams_softc {
struct isa_device *dev;
-#ifdef DEVFS
- /*
- * If this ever becomes an LKM we'll want this crud so we can deallocate
- * devfs entries when the module is unloaded
- */
- void *devfs_ptm;
- void *devfs_arp;
- void *devfs_icmp;
- void *devfs_ip;
- void *devfs_tcp;
- void *devfs_udp;
- void *devfs_rawip;
- void *devfs_unix_dgram;
- void *devfs_unix_stream;
- void *devfs_unix_ord_stream;
-#endif
} ;
#define UNIT(dev) minor(dev) /* assume one minor number per unit */
OpenPOWER on IntegriCloud