freebsd_amp_hwpstate/sys/dev
Kenneth D. Merry 9deea8574e Add a number of interrelated CAM feature enhancements and bug fixes.
NOTE:  These changes will require recompilation of any userland
applications, like cdrecord, xmcd, etc., that use the CAM passthrough
interface.  A make world is recommended.

camcontrol.[c8]:
 - We now support two new commands, "tags" and "negotiate".

	- The tags commands allows users to view the number of tagged
	  openings for a device as well as a number of other related
	  parameters, and it allows users to set tagged openings for
	  a device.

	- The negotiate command allows users to enable and disable
	  disconnection and tagged queueing, set sync rates, offsets
	  and bus width.  Note that not all of those features are
	  available for all controllers.  Only the adv, ahc, and ncr
	  drivers fully support all of the features at this point.
	  Some cards do not allow the setting of sync rates, offsets and
	  the like, and some of the drivers don't have any facilities to
	  do so.  Some drivers, like the adw driver, only support enabling
	  or disabling sync negotiation, but do not support setting sync
	  rates.

 - new description in the camcontrol man page of how to format a disk
 - cleanup of the camcontrol inquiry command
 - add support in the 'devlist' command for skipping unconfigured devices if
   -v was not specified on the command line.
 - make use of the new base_transfer_speed in the path inquiry CCB.
 - fix CCB bzero cases

cam_xpt.c, cam_sim.[ch], cam_ccb.h:

 - new flags on many CCB function codes to designate whether they're
   non-immediate, use a user-supplied CCB, and can only be passed from
   userland programs via the xpt device.  Use these flags in the transport
   layer and pass driver to categorize CCBs.

 - new flag in the transport layer device matching code for device nodes
   that indicates whether a device is unconfigured

 - bump the CAM version from 0x10 to 0x11

 - Change the CAM ioctls to use the version as their group code, so we can
   force users to recompile code even when the CCB size doesn't change.

 - add + fill in a new value in the path inquiry CCB, base_transfer_speed.
   Remove a corresponding field from the cam_sim structure, and add code to
   every SIM to set this field to the proper value.

 - Fix the set transfer settings code in the transport layer.

scsi_cd.c:

 - make some variables volatile instead of just casting them in various
   places
 - fix a race condition in the changer code
 - attach unless we get a "logical unit not supported" error.  This should
   fix all of the cases where people have devices that return weird errors
   when they don't have media in the drive.

scsi_da.c:

 - attach unless we get a "logical unit not supported" error

scsi_pass.c:

 - for immediate CCBs, just malloc a CCB to send the user request in.  This
   gets rid of the 'held' count problem in camcontrol tags.

scsi_pass.h:

 - change the CAM ioctls to use the CAM version as their group code.

adv driver:

 - Allow changing the sync rate and offset separately.

adw driver

 - Allow changing the sync rate and offset separately.

aha driver:

 - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs.

ahc driver:

 - Allow setting offset and sync rate separately

bt driver:

 - Don't return CAM_REQ_CMP for SET_TRAN_SETTINGS CCBs.

NCR driver:

 - Fix the ultra/ultra 2 negotiation bug
 - allow setting both the sync rate and offset separately

Other HBA drivers:
 - Put code in to set the base_transfer_speed field for
   XPT_GET_TRAN_SETTINGS CCBs.

Reviewed by:	gibbs, mjacob (isp), imp (aha)
1999-05-06 20:16:39 +00:00
..
advansys Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
aha Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
ahb Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
aic7xxx Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
ar Fix 'signed char as array index' warnings and an unused variable. 1999-05-06 18:58:05 +00:00
ata Suser() simplification: 1999-04-27 11:18:52 +00:00
atkbdc
bktr My last commit accidentally undid the changes made in rev 1.68 1999-04-30 11:16:30 +00:00
buslogic Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
ccd Don't use <sys/disk.h> 1999-05-06 19:19:30 +00:00
cs
cy Make this compile with CY_PCI_FASTINTR again. 1999-05-02 20:42:13 +00:00
de Changes to support diskless booting on the alpha: 1999-05-03 09:36:29 +00:00
dec
dgb Add an additional probe, hopefully allowing me to distinguish 1999-05-03 09:32:31 +00:00
dpt Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
ed Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:17:05 +00:00
eisa GC some now unused (and #if 0) code. 1999-04-19 13:34:25 +00:00
en Suser() simplification: 1999-04-27 11:18:52 +00:00
ep Implement an EISA new-bus framework. The old driver probe mechanism 1999-04-18 15:50:35 +00:00
ex Set ifq_maxlen to default value. (This should be safe, it's not clear 1999-05-02 22:01:24 +00:00
fb
fdc remove b_proc from struct buf, it's (now) unused. 1999-05-06 20:00:34 +00:00
fe Replace misused FE_D6_BBW with FE_D6_SBW. 1999-05-04 12:59:59 +00:00
fxp
hea Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:17:05 +00:00
hfa Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:17:05 +00:00
ic
ie
iicbus
isp Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
joy The joypart() macro had a precedence bug. Add seatbelts for UNIT() too. 1999-05-06 18:39:32 +00:00
kbd
lnc Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
mc146818
mcd Missing 'int' in declaration of variables. 1999-05-06 18:54:19 +00:00
mse Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
pcf Missing 'int' in declaration of variables. 1999-05-06 18:54:19 +00:00
pci Replace the pcidevice_set linker set based configuration mechanism for old 1999-04-24 19:59:20 +00:00
pcm/isa Operator precedence bug 1999-05-02 21:41:20 +00:00
pdq Add sufficient braces to keep egcs happy about potentially ambiguous 1999-05-06 18:13:11 +00:00
ppbus Add a number of interrelated CAM feature enhancements and bug fixes. 1999-05-06 20:16:39 +00:00
ppc Return the port size from the probe. 1999-04-22 13:10:43 +00:00
rc Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
rp Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
scd Missing 'int' in declaration of variables. 1999-05-06 18:54:19 +00:00
si These two drivers have not been converted for newbus eisa yet. 1999-05-02 20:35:44 +00:00
sio Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
smbus
snp Add sufficient braces to keep egcs happy about potentially ambiguous 1999-05-06 18:13:11 +00:00
sound/isa Operator precedence bug 1999-05-02 21:41:20 +00:00
speaker
sr Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:17:05 +00:00
streams
syscons Add missing copyright. 1999-05-04 12:58:56 +00:00
ti Upgrade firmware images Alteon's latest release (12.3.10). This fixes a 1999-05-03 17:44:53 +00:00
tx Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:17:05 +00:00
usb Descriptors can be delivered with short transfers. 1999-05-03 23:21:28 +00:00
vinum remove b_proc from struct buf, it's (now) unused. 1999-05-06 20:00:34 +00:00
vn Suser() simplification: 1999-04-27 11:18:52 +00:00
vr Tweak the Macronix driver to hopefully make it more reliable: 1999-05-06 15:32:52 +00:00
vx Use COMPAT_PCI_DRIVER() for registration if it exists. This shouldn't 1999-04-24 20:17:05 +00:00
wi Modify wicontrol(8) and wi(4) to allow setting the frequency of the 1999-05-06 16:32:45 +00:00
wl Suser() simplification: 1999-04-27 11:18:52 +00:00