sati_request_sense.h revision 231136
134919Simp/*- 234919Simp * This file is provided under a dual BSD/GPLv2 license. When using or 334919Simp * redistributing this file, you may do so under either license. 434919Simp * 534919Simp * GPL LICENSE SUMMARY 634919Simp * 734919Simp * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 834919Simp * 934919Simp * This program is free software; you can redistribute it and/or modify 1034919Simp * it under the terms of version 2 of the GNU General Public License as 1134919Simp * published by the Free Software Foundation. 1234919Simp * 1334919Simp * This program is distributed in the hope that it will be useful, but 1434919Simp * WITHOUT ANY WARRANTY; without even the implied warranty of 1534919Simp * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1634919Simp * General Public License for more details. 1734919Simp * 1834919Simp * You should have received a copy of the GNU General Public License 1934919Simp * along with this program; if not, write to the Free Software 2034919Simp * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 2134919Simp * The full GNU General Public License is included in this distribution 2234919Simp * in the file called LICENSE.GPL. 2334919Simp * 2434919Simp * BSD LICENSE 2534919Simp * 2634919Simp * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 2734919Simp * All rights reserved. 2834919Simp * 2934919Simp * Redistribution and use in source and binary forms, with or without 3034919Simp * modification, are permitted provided that the following conditions 3134919Simp * are met: 3234919Simp * 3334919Simp * * Redistributions of source code must retain the above copyright 3434919Simp * notice, this list of conditions and the following disclaimer. 3534919Simp * * Redistributions in binary form must reproduce the above copyright 3634919Simp * notice, this list of conditions and the following disclaimer in 3734919Simp * the documentation and/or other materials provided with the 3834919Simp * distribution. 3934919Simp * 4034919Simp * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 4134919Simp * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 4234919Simp * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 4334919Simp * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 4434919Simp * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4534919Simp * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 4634919Simp * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 4734919Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 4834919Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 4934919Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 5034919Simp * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 5134919Simp * 5234919Simp * $FreeBSD: head/sys/dev/isci/scil/sati_request_sense.h 231136 2012-02-07 17:43:58Z jimharris $ 5334919Simp */ 5434919Simp/** 5534919Simp * @file 5634919Simp * @brief This file contains the method definitions to translate 5734919Simp * SCSI Request Sense command based of the SAT spec. 5834919Simp */ 5934919Simp 6034919Simp#ifndef _SATI_REQUEST_SENSE_H_ 6134919Simp#define _SATI_REQUEST_SENSE_H_ 6234919Simp 6334919Simp#include <dev/isci/scil/sati_types.h> 6434919Simp#include <dev/isci/scil/sati_translator_sequence.h> 6534919Simp 6634919SimpSATI_STATUS sati_request_sense_translate_command( 6734919Simp SATI_TRANSLATOR_SEQUENCE_T * sequence, 6834919Simp void * scsi_io, 6934919Simp void * ata_io 7034919Simp); 7134919Simp 7234919SimpSATI_STATUS sati_request_sense_translate_response( 7334919Simp SATI_TRANSLATOR_SEQUENCE_T * sequence, 7434919Simp void * scsi_io, 7534919Simp void * ata_io 7634919Simp); 7734919Simp 7834919Simpvoid sati_request_sense_data_response_construct( 7934919Simp SATI_TRANSLATOR_SEQUENCE_T * sequence, 8034919Simp void * scsi_io, 8134919Simp U8 sense_key, 8234919Simp U8 additional_sense_code, 8334919Simp U8 additional_sense_code_qualifier 8434919Simp); 8534919Simp 8634919Simp#endif // _SATI_REQUEST_SENSE_H_ 8734919Simp