sati_test_unit_ready.h revision 231134
1275988Sngie/*- 2240116Smarcel * This file is provided under a dual BSD/GPLv2 license. When using or 3240116Smarcel * redistributing this file, you may do so under either license. 4240116Smarcel * 5240116Smarcel * GPL LICENSE SUMMARY 6240116Smarcel * 7240116Smarcel * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8240116Smarcel * 9240116Smarcel * This program is free software; you can redistribute it and/or modify 10240116Smarcel * it under the terms of version 2 of the GNU General Public License as 11240116Smarcel * published by the Free Software Foundation. 12240116Smarcel * 13240116Smarcel * This program is distributed in the hope that it will be useful, but 14240116Smarcel * WITHOUT ANY WARRANTY; without even the implied warranty of 15240116Smarcel * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16240116Smarcel * General Public License for more details. 17240116Smarcel * 18240116Smarcel * You should have received a copy of the GNU General Public License 19240116Smarcel * along with this program; if not, write to the Free Software 20240116Smarcel * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 21240116Smarcel * The full GNU General Public License is included in this distribution 22240116Smarcel * in the file called LICENSE.GPL. 23240116Smarcel * 24275988Sngie * BSD LICENSE 25240116Smarcel * 26275988Sngie * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 27240116Smarcel * All rights reserved. 28240116Smarcel * 29275988Sngie * Redistribution and use in source and binary forms, with or without 30240116Smarcel * modification, are permitted provided that the following conditions 31240116Smarcel * are met: 32240116Smarcel * 33240116Smarcel * * Redistributions of source code must retain the above copyright 34275988Sngie * notice, this list of conditions and the following disclaimer. 35240116Smarcel * * Redistributions in binary form must reproduce the above copyright 36275988Sngie * notice, this list of conditions and the following disclaimer in 37275988Sngie * the documentation and/or other materials provided with the 38275988Sngie * distribution. 39240116Smarcel * 40240116Smarcel * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 41240116Smarcel * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 42240116Smarcel * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 43240116Smarcel * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 44240116Smarcel * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45240116Smarcel * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 46240116Smarcel * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 47240116Smarcel * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 48240116Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 49240116Smarcel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 50240116Smarcel * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 51240116Smarcel * 52240116Smarcel * $FreeBSD$ 53240116Smarcel */ 54240116Smarcel#ifndef _SATI_TEST_UNIT_READY_H_ 55240116Smarcel#define _SATI_TEST_UNIT_READY_H_ 56240116Smarcel 57240116Smarcel/** 58240116Smarcel * @file 59240116Smarcel * @brief This file contains the method interfaces required to 60240116Smarcel * translate the SCSI test unit ready command and corresponding 61240116Smarcel * ATA responses. 62240116Smarcel */ 63240116Smarcel 64240116Smarcel#include <dev/isci/scil/sati_types.h> 65262855Sjmmv#include <dev/isci/scil/sati_translator_sequence.h> 66262855Sjmmv 67240116SmarcelSATI_STATUS sati_test_unit_ready_translate_command( 68240116Smarcel SATI_TRANSLATOR_SEQUENCE_T * translator_sequence, 69262855Sjmmv void * scsi_io, 70262855Sjmmv void * ata_io 71240116Smarcel); 72240116Smarcel 73240116SmarcelSATI_STATUS sati_test_unit_ready_translate_response( 74240116Smarcel SATI_TRANSLATOR_SEQUENCE_T * translator_sequence, 75240116Smarcel void * scsi_io, 76 void * ata_io 77); 78 79#endif // _SATI_TEST_UNIT_READY_H_ 80