12f245829Sagc /* 2*b6364952Sagc * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 3*b6364952Sagc * By downloading, copying, installing or using the software you agree 4*b6364952Sagc * to this license. If you do not agree to this license, do not 5*b6364952Sagc * download, install, copy or use the software. 62f245829Sagc * 72f245829Sagc * Intel License Agreement 82f245829Sagc * 92f245829Sagc * Copyright (c) 2000, Intel Corporation 102f245829Sagc * All rights reserved. 112f245829Sagc * 12*b6364952Sagc * Redistribution and use in source and binary forms, with or without 13*b6364952Sagc * modification, are permitted provided that the following conditions 14*b6364952Sagc * are met: 152f245829Sagc * 16*b6364952Sagc * -Redistributions of source code must retain the above copyright 17*b6364952Sagc * notice, this list of conditions and the following disclaimer. 182f245829Sagc * 19*b6364952Sagc * -Redistributions in binary form must reproduce the above copyright 20*b6364952Sagc * notice, this list of conditions and the following disclaimer in the 21*b6364952Sagc * documentation and/or other materials provided with the 22*b6364952Sagc * distribution. 232f245829Sagc * 24*b6364952Sagc * -The name of Intel Corporation may not be used to endorse or 25*b6364952Sagc * promote products derived from this software without specific prior 26*b6364952Sagc * written permission. 272f245829Sagc * 28*b6364952Sagc * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 29*b6364952Sagc * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 30*b6364952Sagc * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 31*b6364952Sagc * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL 32*b6364952Sagc * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 33*b6364952Sagc * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 34*b6364952Sagc * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 35*b6364952Sagc * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 36*b6364952Sagc * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 37*b6364952Sagc * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 38*b6364952Sagc * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39*b6364952Sagc * SUCH DAMAGE. 402f245829Sagc */ 412f245829Sagc #ifndef _SCSI_TEST_H 422f245829Sagc #define _SCSI_TEST_H 432f245829Sagc 442f245829Sagc #include "initiator.h" 452f245829Sagc 462f245829Sagc int test_all(int , int ); 472f245829Sagc int integrity_test(uint32_t , uint32_t , uint32_t , int ); 482f245829Sagc int nop_test(uint32_t , uint32_t , uint32_t ); 492f245829Sagc int latency_test(uint64_t , uint32_t , uint8_t , uint32_t ); 502f245829Sagc int throughput_test(uint32_t , uint32_t , uint32_t , uint32_t , uint32_t , int , int ); 512f245829Sagc int read_or_write(uint64_t , uint32_t , uint32_t , uint32_t , uint32_t , uint8_t *, int , int ); 522f245829Sagc int nop_out(uint64_t , int , int , int , const char *); 532f245829Sagc int read_capacity(uint64_t , uint32_t , uint32_t *, uint32_t *); 542f245829Sagc int write_read_test(uint64_t , uint32_t , int ); 552f245829Sagc int scatter_gather_test(uint64_t , uint32_t , uint8_t ); 562f245829Sagc 572f245829Sagc int ii_test_all(void); 582f245829Sagc 592f245829Sagc #endif 60