Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * linux/drivers/message/fusion/mptscsih.h |
| 3 | * High performance SCSI / Fibre Channel SCSI Host device driver. |
| 4 | * For use with PCI chip/adapter(s): |
| 5 | * LSIFC9xx/LSI409xx Fibre Channel |
| 6 | * running LSI Logic Fusion MPT (Message Passing Technology) firmware. |
| 7 | * |
| 8 | * Credits: |
| 9 | * This driver would not exist if not for Alan Cox's development |
| 10 | * of the linux i2o driver. |
| 11 | * |
| 12 | * A huge debt of gratitude is owed to David S. Miller (DaveM) |
| 13 | * for fixing much of the stupid and broken stuff in the early |
| 14 | * driver while porting to sparc64 platform. THANK YOU! |
| 15 | * |
| 16 | * (see also mptbase.c) |
| 17 | * |
| 18 | * Copyright (c) 1999-2004 LSI Logic Corporation |
| 19 | * Originally By: Steven J. Ralston |
| 20 | * (mailto:netscape.net) |
| 21 | * (mailto:mpt_linux_developer@lsil.com) |
| 22 | * |
| 23 | * $Id: mptscsih.h,v 1.21 2002/12/03 21:26:35 pdelaney Exp $ |
| 24 | */ |
| 25 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ |
| 26 | /* |
| 27 | This program is free software; you can redistribute it and/or modify |
| 28 | it under the terms of the GNU General Public License as published by |
| 29 | the Free Software Foundation; version 2 of the License. |
| 30 | |
| 31 | This program is distributed in the hope that it will be useful, |
| 32 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 33 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 34 | GNU General Public License for more details. |
| 35 | |
| 36 | NO WARRANTY |
| 37 | THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR |
| 38 | CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT |
| 39 | LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, |
| 40 | MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is |
| 41 | solely responsible for determining the appropriateness of using and |
| 42 | distributing the Program and assumes all risks associated with its |
| 43 | exercise of rights under this Agreement, including but not limited to |
| 44 | the risks and costs of program errors, damage to or loss of data, |
| 45 | programs or equipment, and unavailability or interruption of operations. |
| 46 | |
| 47 | DISCLAIMER OF LIABILITY |
| 48 | NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY |
| 49 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 50 | DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND |
| 51 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 52 | TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE |
| 53 | USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED |
| 54 | HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES |
| 55 | |
| 56 | You should have received a copy of the GNU General Public License |
| 57 | along with this program; if not, write to the Free Software |
| 58 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 59 | */ |
| 60 | |
| 61 | #ifndef SCSIHOST_H_INCLUDED |
| 62 | #define SCSIHOST_H_INCLUDED |
| 63 | |
| 64 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ |
| 65 | /* |
| 66 | * SCSI Public stuff... |
| 67 | */ |
| 68 | |
| 69 | #define MPT_SCSI_CMD_PER_DEV_HIGH 31 |
| 70 | #define MPT_SCSI_CMD_PER_DEV_LOW 7 |
| 71 | |
| 72 | #define MPT_SCSI_CMD_PER_LUN 7 |
| 73 | |
| 74 | #define MPT_SCSI_MAX_SECTORS 8192 |
| 75 | |
| 76 | /* To disable domain validation, uncomment the |
| 77 | * following line. No effect for FC devices. |
| 78 | * For SCSI devices, driver will negotiate to |
| 79 | * NVRAM settings (if available) or to maximum adapter |
| 80 | * capabilities. |
| 81 | */ |
| 82 | |
| 83 | #define MPTSCSIH_ENABLE_DOMAIN_VALIDATION |
| 84 | |
| 85 | |
| 86 | /* SCSI driver setup structure. Settings can be overridden |
| 87 | * by command line options. |
| 88 | */ |
| 89 | #define MPTSCSIH_DOMAIN_VALIDATION 1 |
| 90 | #define MPTSCSIH_MAX_WIDTH 1 |
| 91 | #define MPTSCSIH_MIN_SYNC 0x08 |
| 92 | #define MPTSCSIH_SAF_TE 0 |
| 93 | |
| 94 | #endif |