sati_write_and_verify.h revision 231136
1238405Sjkim/*- 2238405Sjkim * This file is provided under a dual BSD/GPLv2 license. When using or 3238405Sjkim * redistributing this file, you may do so under either license. 4238405Sjkim* 5238405Sjkim* GPL LICENSE SUMMARY 6238405Sjkim* 7238405Sjkim* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8238405Sjkim* 9238405Sjkim* This program is free software; you can redistribute it and/or modify 10238405Sjkim* it under the terms of version 2 of the GNU General Public License as 11238405Sjkim* published by the Free Software Foundation. 12238405Sjkim* 13238405Sjkim* This program is distributed in the hope that it will be useful, but 14238405Sjkim* WITHOUT ANY WARRANTY; without even the implied warranty of 15238405Sjkim* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16238405Sjkim* General Public License for more details. 17238405Sjkim* 18238405Sjkim* You should have received a copy of the GNU General Public License 19238405Sjkim* along with this program; if not, write to the Free Software 20238405Sjkim* Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21238405Sjkim* The full GNU General Public License is included in this distribution 22238405Sjkim* in the file called LICENSE.GPL. 23238405Sjkim* 24238405Sjkim* BSD LICENSE 25238405Sjkim* 26238405Sjkim* Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 27238405Sjkim* All rights reserved. 28238405Sjkim* 29238405Sjkim* Redistribution and use in source and binary forms, with or without 30238405Sjkim* modification, are permitted provided that the following conditions 31238405Sjkim* are met: 32238405Sjkim* 33238405Sjkim* * Redistributions of source code must retain the above copyright 34238405Sjkim* notice, this list of conditions and the following disclaimer. 35238405Sjkim* * Redistributions in binary form must reproduce the above copyright 36238405Sjkim* notice, this list of conditions and the following disclaimer in 37238405Sjkim* the documentation and/or other materials provided with the 38238405Sjkim* distribution. 39238405Sjkim* 40238405Sjkim* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 41238405Sjkim* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 42238405Sjkim* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 43238405Sjkim* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 44238405Sjkim* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45238405Sjkim* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 46238405Sjkim* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 47238405Sjkim* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 48238405Sjkim* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 49238405Sjkim* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 50238405Sjkim* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 51238405Sjkim * 52238405Sjkim * $FreeBSD: head/sys/dev/isci/scil/sati_write_and_verify.h 231136 2012-02-07 17:43:58Z jimharris $ 53238405Sjkim */ 54238405Sjkim/** 55238405Sjkim* @file 56238405Sjkim* @brief This file contains the method definitions to translate 57238405Sjkim* SCSI Write and Verify command based of the SAT spec. 58238405Sjkim*/ 59238405Sjkim 60238405Sjkim#ifndef _SATI_WRITE_AND_VERIFY_H_ 61238405Sjkim#define _SATI_WRITE_AND_VERIFY_H_ 62238405Sjkim 63238405Sjkim#include <dev/isci/scil/sati_types.h> 64238405Sjkim#include <dev/isci/scil/sati_translator_sequence.h> 65238405Sjkim 66238405SjkimSATI_STATUS sati_write_and_verify_10_translate_command( 67238405Sjkim SATI_TRANSLATOR_SEQUENCE_T * sequence, 68238405Sjkim void * scsi_io, 69238405Sjkim void * ata_io 70238405Sjkim); 71238405Sjkim 72238405SjkimSATI_STATUS sati_write_and_verify_12_translate_command( 73238405Sjkim SATI_TRANSLATOR_SEQUENCE_T * sequence, 74238405Sjkim void * scsi_io, 75238405Sjkim void * ata_io 76238405Sjkim); 77238405Sjkim 78238405SjkimSATI_STATUS sati_write_and_verify_16_translate_command( 79238405Sjkim SATI_TRANSLATOR_SEQUENCE_T * sequence, 80238405Sjkim void * scsi_io, 81238405Sjkim void * ata_io 82238405Sjkim); 83238405Sjkim 84238405SjkimSATI_STATUS sati_write_and_verify_translate_response( 85238405Sjkim SATI_TRANSLATOR_SEQUENCE_T * sequence, 86238405Sjkim void * scsi_io, 87238405Sjkim void * ata_io 88238405Sjkim); 89238405Sjkim 90238405Sjkim#endif //#ifndef _SATI_WRITE_AND_VERIFY_H_ 91238405Sjkim