The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


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

FreeBSD/Linux Kernel Cross Reference
sys/dev/scsipi/scsi_iu.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 12637b632f2f385ba41dcbed6cd51eba


[ 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.