sati_mode_sense_6.h revision 230843
11573Srgrimes/*- 21573Srgrimes * This file is provided under a dual BSD/GPLv2 license. When using or 31573Srgrimes * redistributing this file, you may do so under either license. 41573Srgrimes * 51573Srgrimes * GPL LICENSE SUMMARY 61573Srgrimes * 71573Srgrimes * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 81573Srgrimes * 91573Srgrimes * This program is free software; you can redistribute it and/or modify 101573Srgrimes * it under the terms of version 2 of the GNU General Public License as 111573Srgrimes * published by the Free Software Foundation. 121573Srgrimes * 131573Srgrimes * This program is distributed in the hope that it will be useful, but 141573Srgrimes * WITHOUT ANY WARRANTY; without even the implied warranty of 151573Srgrimes * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 161573Srgrimes * General Public License for more details. 171573Srgrimes * 181573Srgrimes * You should have received a copy of the GNU General Public License 191573Srgrimes * along with this program; if not, write to the Free Software 201573Srgrimes * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 211573Srgrimes * The full GNU General Public License is included in this distribution 221573Srgrimes * in the file called LICENSE.GPL. 231573Srgrimes * 241573Srgrimes * BSD LICENSE 251573Srgrimes * 261573Srgrimes * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 271573Srgrimes * All rights reserved. 281573Srgrimes * 291573Srgrimes * Redistribution and use in source and binary forms, with or without 301573Srgrimes * modification, are permitted provided that the following conditions 311573Srgrimes * are met: 321573Srgrimes * 331573Srgrimes * * Redistributions of source code must retain the above copyright 341573Srgrimes * notice, this list of conditions and the following disclaimer. 351573Srgrimes * * Redistributions in binary form must reproduce the above copyright 361573Srgrimes * notice, this list of conditions and the following disclaimer in 371573Srgrimes * the documentation and/or other materials provided with the 381573Srgrimes * distribution. 391573Srgrimes * 401573Srgrimes * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 411573Srgrimes * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 421573Srgrimes * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 431573Srgrimes * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 441573Srgrimes * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 451573Srgrimes * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 461573Srgrimes * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 471573Srgrimes * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 481573Srgrimes * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 491573Srgrimes * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 501573Srgrimes * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 511573Srgrimes * 521573Srgrimes * $FreeBSD$ 531573Srgrimes */ 541573Srgrimes#ifndef _SATI_MODE_SENSE_6_H_ 551573Srgrimes#define _SATI_MODE_SENSE_6_H_ 561573Srgrimes 571573Srgrimes/** 581573Srgrimes * @file 591573Srgrimes * @brief This file contains the method prototypes required to 601573Srgrimes * translate the SCSI mode sense 6-byte commands. 611573Srgrimes */ 621573Srgrimes 631573Srgrimes#include <dev/isci/scil/sati_types.h> 641573Srgrimes#include <dev/isci/scil/sati_translator_sequence.h> 651573Srgrimes 661573SrgrimesSATI_STATUS sati_mode_sense_6_translate_command( 671573Srgrimes SATI_TRANSLATOR_SEQUENCE_T * sequence, 681573Srgrimes void * scsi_io, 691573Srgrimes void * ata_io 701573Srgrimes); 711573Srgrimes 721573Srgrimesvoid sati_mode_sense_6_caching_translate_data( 731573Srgrimes SATI_TRANSLATOR_SEQUENCE_T * sequence, 741573Srgrimes void * ata_input_data, 75 void * scsi_io 76); 77 78void sati_mode_sense_6_informational_excp_control_translate_data( 79 SATI_TRANSLATOR_SEQUENCE_T * sequence, 80 void * ata_input_data, 81 void * scsi_io 82); 83 84void sati_mode_sense_6_read_write_error_translate_data( 85 SATI_TRANSLATOR_SEQUENCE_T * sequence, 86 void * ata_input_data, 87 void * scsi_io 88); 89 90void sati_mode_sense_6_disconnect_reconnect_translate_data( 91 SATI_TRANSLATOR_SEQUENCE_T * sequence, 92 void * ata_input_data, 93 void * scsi_io 94); 95 96void sati_mode_sense_6_control_translate_data( 97 SATI_TRANSLATOR_SEQUENCE_T * sequence, 98 void * ata_input_data, 99 void * scsi_io 100); 101 102void sati_mode_sense_6_power_condition_translate_data( 103 SATI_TRANSLATOR_SEQUENCE_T * sequence, 104 void * ata_input_data, 105 void * scsi_io 106); 107 108void sati_mode_sense_6_all_pages_translate_data( 109 SATI_TRANSLATOR_SEQUENCE_T * sequence, 110 void * ata_input_data, 111 void * scsi_io 112); 113 114#endif // _SATI_MODE_SENSE_6_H_ 115