1285242Sachim/******************************************************************************* 2285242Sachim*Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved. 3285242Sachim* 4285242Sachim*Redistribution and use in source and binary forms, with or without modification, are permitted provided 5285242Sachim*that the following conditions are met: 6285242Sachim*1. Redistributions of source code must retain the above copyright notice, this list of conditions and the 7285242Sachim*following disclaimer. 8285242Sachim*2. Redistributions in binary form must reproduce the above copyright notice, 9285242Sachim*this list of conditions and the following disclaimer in the documentation and/or other materials provided 10285242Sachim*with the distribution. 11285242Sachim* 12285242Sachim*THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED 13285242Sachim*WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14285242Sachim*FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 15285242Sachim*FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 16285242Sachim*NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 17285242Sachim*BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 18285242Sachim*LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 19285242Sachim*SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 20285242Sachim* 21285242Sachim* $FreeBSD$ 22285242Sachim* 23285242Sachim********************************************************************************/ 24285242Sachim/******************************************************************************** 25285242Sachim** 26285242Sachim** Version Control Information: 27285242Sachim** 28285242Sachim** 29285242Sachim*******************************************************************************/ 30285242Sachim/******************************************************************************** 31285242Sachim** 32285242Sachim** tiscsi.h 33285242Sachim** 34285242Sachim** Abstract: This module contains SCSI related data structure definition. 35285242Sachim** 36285242Sachim********************************************************************************/ 37285242Sachim 38285242Sachim#ifndef TISCSI_H 39285242Sachim#define TISCSI_H 40285242Sachim 41285242Sachim 42285242Sachim/* 43285242Sachim * SCSI Sense Data 44285242Sachim */ 45285242Sachimtypedef struct 46285242Sachim{ 47285242Sachim bit8 snsRespCode; 48285242Sachim bit8 snsSegment; 49285242Sachim bit8 senseKey; /* sense key */ 50285242Sachim bit8 info[4]; 51285242Sachim bit8 addSenseLen; /* 11 always */ 52285242Sachim bit8 cmdSpecific[4]; 53285242Sachim bit8 addSenseCode; /* additional sense code */ 54285242Sachim bit8 senseQual; /* additional sense code qualifier */ 55285242Sachim bit8 fru; 56285242Sachim bit8 skeySpecific[3]; 57285242Sachim} scsiRspSense_t; 58285242Sachim 59285242Sachim 60285242Sachim 61285242Sachim#endif /* TISCSI_H */ 62