summaryrefslogtreecommitdiffstats
path: root/sys/cam
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/cam
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/cam')
-rw-r--r--sys/cam/cam_extend.c3
-rw-r--r--sys/cam/cam_xpt.c6
-rw-r--r--sys/cam/scsi/scsi_pass.c6
3 files changed, 4 insertions, 11 deletions
diff --git a/sys/cam/cam_extend.c b/sys/cam/cam_extend.c
index c7acbdf..8570a35 100644
--- a/sys/cam/cam_extend.c
+++ b/sys/cam/cam_extend.c
@@ -12,11 +12,12 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id$
+ * $Id: cam_extend.c,v 1.1 1998/09/15 06:33:23 gibbs Exp $
*/
/*
* XXX XXX XXX XXX We should get DEVFS working so that we
* don't have to do this, possibly sparse, array based junk.
+ * XXX: We can do this now with dev_t, that's even better.
*/
/*
* Extensible arrays: Use a realloc like implementation to permit
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index d5dfa30..0f92c6e 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cam_xpt.c,v 1.66 1999/08/16 17:47:39 mjacob Exp $
+ * $Id: cam_xpt.c,v 1.67 1999/08/16 22:22:41 gibbs Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
@@ -207,10 +207,6 @@ typedef enum {
struct xpt_softc {
xpt_flags flags;
u_int32_t generation;
-#ifdef DEVFS
- void *xpt_devfs_token;
- void *ctl_devfs_token;
-#endif
};
static const char quantum[] = "QUANTUM";
diff --git a/sys/cam/scsi/scsi_pass.c b/sys/cam/scsi/scsi_pass.c
index c68fb98..b900c3b 100644
--- a/sys/cam/scsi/scsi_pass.c
+++ b/sys/cam/scsi/scsi_pass.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_pass.c,v 1.11 1999/05/30 16:51:03 phk Exp $
+ * $Id: scsi_pass.c,v 1.12 1999/05/31 11:24:05 phk Exp $
*/
#include <sys/param.h>
@@ -82,10 +82,6 @@ struct pass_softc {
struct buf_queue_head buf_queue;
union ccb saved_ccb;
struct devstat device_stats;
-#ifdef DEVFS
- void *pass_devfs_token;
- void *ctl_devfs_token;
-#endif
};
#ifndef MIN
OpenPOWER on IntegriCloud