summaryrefslogtreecommitdiffstats
path: root/sbin/camcontrol
Commit message (Collapse)AuthorAgeFilesLines
* Fix Bus Device Resets from userland, and specifically from camcontrol.ken1999-10-311-11/+41
| | | | | | | | | | | camcontrol was setup to use the old scheme of going through the xpt(4) device, which never worked properly (and has been disabled for a while). camcontrol now sends BDRs through the pass(4) device, and XPT_RESET_DEV CCBs are put on the device queue in the transport layer, as they should be. Submitted by: luoqi Reviewed by: ken
* Add references to cam(4) and xpt(4).mph1999-10-281-5/+2
| | | | | | | | | Delete references to cam(9) and xpt(9) which do not exist. Delete statement in BUGS that cam(9) and xpt(9) will be added soon. PR: 14567 Submitted by: Ronald F. Guilmette <rfg@monkeys.com> Approved by: ken
* Restore alphabetical order of command line options parsing.luoqi1999-10-261-4/+4
| | | | Requested by: ken
* Debug flags -T and -S were reversed.luoqi1999-10-261-2/+2
|
* Use mkstemp(3) instead of tmpnam(3) when creating temporary files for modeken1999-09-282-6/+12
| | | | | | | page editing. Submitted by: roberto Reviewed by: imp, ken
* Fix two rather embarrassing bugs in camcontrol. The first caused theken1999-09-271-3/+5
| | | | | | | | | | | | CAM_PASS_ERR_RECOVER flag to be set unconditionally on READ DEFECTS commands, and also caused the CAM_DIR_IN flag to not be set. This was the cause of all of the "camcontrol defects doesn't work with my NCR controller" bugs. The second prevented camcontrol negotiate from negotiating any bus width other than 8 bits. Submitted by: groudier@club-internet.fr (Gerard Roudier)
* -Wall cleanups, handle unknown cases.billf1999-09-261-5/+9
| | | | | Submitted by: billf, ken Reviewed by: ken
* $Id$ -> $FreeBSD$peter1999-08-285-5/+5
|
* Various man page cleanup:mpp1999-08-151-2/+2
| | | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Properly xref RFCs. - Be consistent with section names as outlined in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* Typo of sample command line.sada1999-08-011-2/+2
| | | | Submitted by: Seiichi Satomi <ssatomi@rr.iij4u.or.jp>
* Add a MAINTAINER line to modules that I maintain.ken1999-06-181-0/+2
| | | | Suggested by: brian, markm
* For vendor-specific commands sent using the 'camcontrol cmd' facility,ken1999-06-101-4/+4
| | | | | | use the passed in CDB length, not 1. Submitted by: Jean-Marc Zucconi <jmz@FreeBSD.ORG>
* Fix a typo, and get rid of the bugs section that talks about addingken1999-05-191-5/+2
| | | | different ways to specify devices. That code has been added.
* Add a new device specification syntax to camcontrol. It is now possible token1999-05-105-91/+204
| | | | | | | | | | | | | | | | | | | | | | | | do things like: camcontrol tur da5 or camcontrol tur 1:2:0 or camcontrol tur 1:2 These changes are fully backwards compatible with the original device specification syntax (-n dev -u unit), so it is possible to use either method to specify a device now. The device specification changes do not affect the rescan, reset or debug commands, since by design, those commands work on a bus or bus:target:lun basis only. Also, shorten the default usage statement so that it fits in a 24 column terminal. The full usage statement is still available by using the "help" "-h" or "-?" arguments to camcontrol. Submitted by: Joerg Wunsch <joerg_wunsch@interface-business.de>
* Add a number of interrelated CAM feature enhancements and bug fixes.ken1999-05-062-50/+1061
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Fix misspelling of Julian's last name. Oops.ken1999-02-271-2/+2
|
* Properly print devices that do not have attached peripherals.gibbs1999-01-141-3/+6
| | | | Submitted by: Kenneth Merry <ken@FreeBSD.org>
* Bad Dog! No Biscuit! *Never* commit without testing- even if it wasmjacob1998-12-201-3/+3
| | | | "just a printf formatting change"....
* add Bus and Device Reset commandsmjacob1998-12-202-27/+47
|
* Insert missing macro, and while I'm here change the inconsistentbillf1998-12-021-3/+3
| | | | | | | "page_ctl" and "pagectl" to "pgctl" to reflect ``camcontrol --help''. PR: docs/8781 Submitted by: Norihiro Kumagai <kuma@jp.FreeBSD.org>
* Fix a typo in a comment.ken1998-11-121-2/+2
|
* When we send a stop unit command to a device, send it as an ordered tag soken1998-10-131-2/+9
| | | | | | | | that any transactions in front of the stop command get flushed to disk first. This will have no effect on devices that have tagged queueing turned off, or don't support tagged queueing. Reviewed by: gibbs
* Fix a bug in camcontrol that caused 'camcontrol start' to not work.ken1998-10-131-6/+1
| | | | Noticed by: Philippe Regnauld <regnauld@deepo.prosa.dk>
* Add a missing word.ken1998-10-061-2/+2
|
* Add the -c flag in to the usage summaries in the man page and the usage()ken1998-10-032-4/+7
| | | | | | | function in camcontrol. Also, fix the modepage example in the examples section of the man page. It didn't quite come out right with the '.Dl' macro.
* Add a new CAM debugging mode, CAM_DEBUG_CDB. This causes the kernel token1998-10-022-5/+14
| | | | | | | | | | | | | print out a one line description/dump of every SCSI CDB sent to a particular debugging target or targets. This is a good bit more useful than the other debugging modes, I think. Change some things in LINT to note the availability of this new option. Fix an erroneous argument to scsi_cdb_string() in scsi_all.c Reviewed by: gibbs
* Fix a grammar problem.ken1998-09-211-2/+2
| | | | PR: docs/7975
* Page control field values go from 0-3, not 1-4.ken1998-09-171-5/+5
| | | | Reported by: Tony Maher <tonym@angis.usyd.edu.au> on -current
* Fix a typo. "Primay" -> "Primary"ken1998-09-171-2/+2
|
* Camcontrol - A utility for configuring/manipulating the CAM subsystemgibbs1998-09-156-0/+3548
Submitted by: "Kenneth D. Merry" <ken@plutotech.com>
OpenPOWER on IntegriCloud