aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/chio.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: clean up empty lines in .c and .h filesMateusz Guzik2020-09-011-2/+0
| | | | Notes: svn path=/head/; revision=365223
* Fix an old typo in the element status display bits:Joerg Wunsch2019-01-051-1/+1
| | | | | | | | | | | | INEAB -> INENAB (import is eNabled) Note that this kernel definition is exported into chio(1), and used for element display there. MFC after: 1 week Notes: svn path=/head/; revision=342791
* sys/sys/chio.h: add NetBSD RCS ID.Pedro F. Giffuni2017-12-281-0/+2
| | | | | | | | | | | Make it easier to identify the point where we started diverging from NetBSD. Newer versions of this file has been updated to a new license so this information may become useful some day. Obtained from: NetBSD Notes: svn path=/head/; revision=327288
* sys/sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326256
* Update chio(1) and ch(4) to support reporting element designators.Kenneth D. Merry2013-04-191-16/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows mapping a tape drive in a changer (as reported by 'chio status') to a sa(4) driver instance by comparing the serial numbers. The designators can be ASCII (which is printed out directly), binary (which is printed in hex format) or UTF-8, which is printed in either native UTF-8 format if the terminal can support it, or in %XX notation for non-ASCII characters. Thanks to Hiroki Sato <hrs@> for the explaining UTF-8 printing and example UTF-8 printing code. chio.h: Modify the changer_element_status structure to add new fields and definitions from the SMC3r16 spec. Rename the original CHIOGSTATUS ioctl to OCHIOGTATUS and define a new CHIOGSTATUS ioctl. Clean up some tab/space issues. chio.c: For the 'status' subcommand, print the designator field if it is supplied by a device. scsi_ch.h: Add new flags for DVCID and CURDATA to the READ ELEMENT STATUS command structure. Add a read_element_status_device_id structure for the data fields in the new standard. Add new unions, dt_or_obsolete and voltage_devid, to hold and address data from either SCSI-2 or newer devices. scsi_ch.c: Implement support for fetching device IDs with READ ELEMENT STATUS data. Add new arguments to scsi_read_element_status() to allow the user to request the DVCID and CURDATA bits. This isn't compiled into libcam (it's only an internal kernel interface), so we don't need any special handling for the API change. If the user issues the new CHIOGSTATUS ioctl, copy all of the available element status data out. If he issues the OCHIOGSTATUS ioctl, we don't copy the new fields in the structure. Fix a bug in chopen() that would result in the peripheral never getting unheld if chgetparams() failed. Sponsored by: Spectra Logic Submitted by: Po-Li Soong MFC After: 1 week Notes: svn path=/head/; revision=249658
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139825
* Use symbolic constants instead of "4".Poul-Henning Kamp2003-05-311-0/+1
| | | | | | | | | Use arrays instead of relying on struct packing. Identical md5(scsi_ch.o). Notes: svn path=/head/; revision=115464
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-1/+1
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fixed pedantic syntax error (trailing comma in enum).Bruce Evans1999-03-061-2/+2
| | | | Notes: svn path=/head/; revision=44516
* system.h:Justin T. Gibbs1998-09-151-37/+107
| | | | | | | | | | | | Add definition for at_shutdown(9)'s SHUTDOWN_FINAL. ccdvar.h: chio.h: mtio.h: Add CAM support. Notes: svn path=/head/; revision=39248
* Retrofit Bruce's changes from rev 1.7.Joerg Wunsch1997-03-111-4/+9
| | | | Notes: svn path=/head/; revision=23736
* Merge Jason Thorpe's updated changer stuff into the actual system.Joerg Wunsch1997-03-061-81/+134
| | | | | | | | | | | | | Many things have been changing in the kernel since mid-1996, so there's quite some amount of diffs here already. It compiles, but i cannot test it anywhere here. 2.2 candidate? Closes PR # 1201. Notes: svn path=/head/; revision=23452
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Cleaned up all headers that include <sys/ioctl.h> or <sys/ioccom.h>:Bruce Evans1996-09-211-4/+10
| | | | | | | | | | | | | | | | - don't include <sys/ioctl.h> in any header. Include <sys/ioccom.h> instead. This was already done in 4.4Lite for the most important ioctl headers. Header spam currently increases kernel build times by 10-20%. There are more than 30000 #includes (not counting duplicates) for compiling LINT. - include <sys/types.h> if and only it is necessary to make the header almost self-sufficient (some ioctl headers still need structs from elsewhere). - uniformized idempotency ifdefs. Copied the style in the 4.4Lite ioctl headers. Notes: svn path=/head/; revision=18444
* Fix a bunch of spelling errors in the comment fields ofMike Pritchard1996-01-301-3/+3
| | | | | | | a bunch of system include files. Notes: svn path=/head/; revision=13765
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-4/+4
| | | | Notes: svn path=/head/; revision=8876
* New version of scsi code from JulianRodney W. Grimes1993-11-181-4/+5
| | | | Notes: svn path=/head/; revision=785
* Removed all patch kit headers, sccsid and rcsid strings, put $Id$ in, someRodney W. Grimes1993-10-161-0/+2
| | | | | | | minor cleanup. Added $Id$ to files that did not have any version info, etc Notes: svn path=/head/; revision=624
* Revised headers from Julian. Support for generic scsi.Rodney W. Grimes1993-08-281-38/+0
| | | | | | | Better audio support Notes: svn path=/head/; revision=346
* Initial import, 0.1 + pk 0.2.4-B1Rodney W. Grimes1993-06-121-0/+127
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=4