freebsd-nq/sys/cam
Poul-Henning Kamp 2447bec829 Simplify cdevsw registration.
The cdevsw_add() function now finds the major number(s) in the
struct cdevsw passed to it.  cdevsw_add_generic() is no longer
needed, cdevsw_add() does the same thing.

cdevsw_add() will print an message if the d_maj field looks bogus.

Remove nblkdev and nchrdev variables.  Most places they were used
bogusly.  Instead check a dev_t for validity by seeing if devsw()
or bdevsw() returns NULL.

Move bdevsw() and devsw() functions to kern/kern_conf.c

Bump __FreeBSD_version to 400006

This commit removes:
        72 bogus makedev() calls
        26 bogus SYSINIT functions

if_xe.c bogusly accessed cdevsw[], author/maintainer please fix.

I4b and vinum not changed.  Patches emailed to authors.  LINT
probably broken until they catch up.
1999-05-31 11:29:30 +00:00
..
scsi Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
cam_ccb.h Rely on the statistics in XPT_GDEV_STATS instead of the versions still 1999-05-23 18:57:29 +00:00
cam_conf.h CAM Transport Layer (XPT). 1998-09-15 06:33:23 +00:00
cam_debug.h Add a CAM_DEBUG_XPT define (to debug XPT layer only). Add a CAM_DEBUGGED 1998-12-05 23:55:48 +00:00
cam_extend.c CAM Transport Layer (XPT). 1998-09-15 06:33:23 +00:00
cam_extend.h CAM Transport Layer (XPT). 1998-09-15 06:33:23 +00:00
cam_periph.c Run xpt_action at splsoftcam() so that it cannot be re-entered by our SWI. 1999-05-25 20:17:29 +00:00
cam_periph.h Add the XPT_PATH_STATS and XPT_GDEV_STATS function codes. These ccb 1999-05-22 21:58:47 +00:00
cam_queue.c cam_periph.c: 1999-04-19 21:26:08 +00:00
cam_queue.h cam_periph.c: 1999-04-19 21:26:08 +00:00
cam_sim.c Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
cam_sim.h Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
cam_xpt_periph.h CAM Transport Layer (XPT). 1998-09-15 06:33:23 +00:00
cam_xpt_sim.h xpt_done has no reason to take a volatile ccb *. 1999-03-05 23:18:56 +00:00
cam_xpt.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
cam_xpt.h CAM Transport Layer (XPT). 1998-09-15 06:33:23 +00:00
cam.c cam.c: 1998-09-22 04:53:23 +00:00
cam.h Remove camq_regen(). We already perform modular comparisons 1999-04-07 22:57:48 +00:00