freebsd-dev/sys/cam/scsi
Ed Schouten 6bfa9a2d66 Replace all calls to minor() with dev2unit().
After I removed all the unit2minor()/minor2unit() calls from the kernel
yesterday, I realised calling minor() everywhere is quite confusing.
Character devices now only have the ability to store a unit number, not
a minor number. Remove the confusion by using dev2unit() everywhere.

This commit could also be considered as a bug fix. A lot of drivers call
minor(), while they should actually be calling dev2unit(). In -CURRENT
this isn't a problem, but it turns out we never had any problem reports
related to that issue in the past. I suspect not many people connect
more than 256 pieces of the same hardware.

Reviewed by:	kib
2008-09-27 08:51:18 +00:00
..
scsi_all.c SCSI_DELAY is specified in milliseconds, not seconds. 2008-08-16 21:26:58 +00:00
scsi_all.h Update SCSI opcodes and ASCs from t10.org. 2008-08-07 17:25:05 +00:00
scsi_cd.c Do not forget to cam_periph_unhold the peripheral before exiting 2007-07-21 18:07:45 +00:00
scsi_cd.h
scsi_ch.c Add a helper function for registering async callbacks. Besides 2007-05-16 16:54:23 +00:00
scsi_ch.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_da.c Fix a locking mistake in daopen(). If the open fails, which can happen 2008-08-29 04:39:46 +00:00
scsi_da.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_dvcfg.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_iu.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_low_pisa.c Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_low_pisa.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_low.c Prepare for future integration between CAM and newbus. xpt_bus_register 2007-06-17 05:55:54 +00:00
scsi_low.h Add a new 'why' argument to kdb_enter(), and a set of constants to use 2007-12-25 17:52:02 +00:00
scsi_message.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_pass.c Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
scsi_pass.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_pt.c Add a helper function for registering async callbacks. Besides 2007-05-16 16:54:23 +00:00
scsi_pt.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_sa.c Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
scsi_sa.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00
scsi_ses.c Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
scsi_ses.h Fix ioctl to not get swallowed by ioctl code (i.e., make sure the darned 2006-01-18 08:37:27 +00:00
scsi_sg.c Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
scsi_sg.h A fix for the SG_GET_TIMEOUT function slipped into a previous commit by 2007-04-10 20:03:42 +00:00
scsi_targ_bh.c Add a helper function for registering async callbacks. Besides 2007-05-16 16:54:23 +00:00
scsi_target.c Replace all calls to minor() with dev2unit(). 2008-09-27 08:51:18 +00:00
scsi_targetio.h Start each of the license/copyright comments with /*- 2005-01-05 22:34:37 +00:00