[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/cam/scsi/scsi_iu.h

Version: -  FREEBSD  -  FREEBSD7  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  OPENSOLARIS  -  minix-3-1-1  -  TRUSTEDBSD-SEBSD  -  FREEBSD-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  excerpts  -  bigexcerpts 

  1 /*-
  2  * This file is in the public domain.
  3  * $FreeBSD: src/sys/cam/scsi/scsi_iu.h,v 1.3 2005/01/05 22:34:34 imp Exp $
  4  */
  5 #ifndef _SCSI_SCSI_IU_H
  6 #define _SCSI_SCSI_IU_H 1
  7 
  8 struct scsi_status_iu_header
  9 {
 10         u_int8_t reserved[2];
 11         u_int8_t flags;
 12 #define SIU_SNSVALID 0x2
 13 #define SIU_RSPVALID 0x1
 14         u_int8_t status;
 15         u_int8_t sense_length[4];
 16         u_int8_t pkt_failures_length[4];
 17         u_int8_t pkt_failures[1];
 18 };
 19 
 20 #define SIU_PKTFAIL_OFFSET(siu) 12
 21 #define SIU_PKTFAIL_CODE(siu) (scsi_4btoul((siu)->pkt_failures) & 0xFF)
 22 #define         SIU_PFC_NONE                    0
 23 #define         SIU_PFC_CIU_FIELDS_INVALID      2
 24 #define         SIU_PFC_TMF_NOT_SUPPORTED       4
 25 #define         SIU_PFC_TMF_FAILED              5
 26 #define         SIU_PFC_INVALID_TYPE_CODE       6
 27 #define         SIU_PFC_ILLEGAL_REQUEST         7
 28 #define SIU_SENSE_OFFSET(siu)                           \
 29     (12 + (((siu)->flags & SIU_RSPVALID)                \
 30         ? scsi_4btoul((siu)->pkt_failures_length)       \
 31         : 0))
 32 
 33 #define SIU_TASKMGMT_NONE               0x00
 34 #define SIU_TASKMGMT_ABORT_TASK         0x01
 35 #define SIU_TASKMGMT_ABORT_TASK_SET     0x02
 36 #define SIU_TASKMGMT_CLEAR_TASK_SET     0x04
 37 #define SIU_TASKMGMT_LUN_RESET          0x08
 38 #define SIU_TASKMGMT_TARGET_RESET       0x20
 39 #define SIU_TASKMGMT_CLEAR_ACA          0x40
 40 #endif /*_SCSI_SCSI_IU_H*/
 41 

Cache object: 188f57f1d0a210fa9d21c8bacd74c35d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.