freebsd-dev/sys/cam/scsi
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_all.c Do not attempt to retry commands that fail with ILLEGAL REQUEST status. 1998-12-11 03:53:05 +00:00
scsi_all.h Add a default async handler funstion to cam_periph.c to remove duplicated 1999-05-22 22:00:24 +00:00
scsi_cd.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_cd.h Some fixes to the CD driver that may fix PR kern/7996. The data direction 1998-09-20 22:48:15 +00:00
scsi_ch.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_ch.h Correct the definition of the changer device capabilities page. The 1998-12-17 22:26:39 +00:00
scsi_da.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_da.h Fix the CAM code so that people can compile kernels with the CD driver but 1998-09-18 22:33:59 +00:00
scsi_message.h SCSI Peripheral drivers for CAM: 1998-09-15 06:36:34 +00:00
scsi_pass.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_pass.h Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
scsi_pt.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_pt.h SCSI Peripheral drivers for CAM: 1998-09-15 06:36:34 +00:00
scsi_sa.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_sa.h Make clear that the DATA COMPRESSION page is a SCSI-3 entity- not a SCSI-2 1999-05-11 02:23:37 +00:00
scsi_targ_bh.c Silence errors. 1999-03-05 23:21:28 +00:00
scsi_target.c Simplify cdevsw registration. 1999-05-31 11:29:30 +00:00
scsi_targetio.h Implement the control device for the "targ" target mode processor target 1999-03-05 23:25:11 +00:00