mptscsih.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. This program is distributed in the hope that it will be useful,
  31. but WITHOUT ANY WARRANTY; without even the implied warranty of
  32. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  33. GNU General Public License for more details.
  34. NO WARRANTY
  35. THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
  36. CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
  37. LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
  38. MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
  39. solely responsible for determining the appropriateness of using and
  40. distributing the Program and assumes all risks associated with its
  41. exercise of rights under this Agreement, including but not limited to
  42. the risks and costs of program errors, damage to or loss of data,
  43. programs or equipment, and unavailability or interruption of operations.
  44. DISCLAIMER OF LIABILITY
  45. NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
  46. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  47. DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
  48. ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
  49. TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
  50. USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
  51. HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
  52. You should have received a copy of the GNU General Public License
  53. along with this program; if not, write to the Free Software
  54. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  55. */
  56. #ifndef SCSIHOST_H_INCLUDED
  57. #define SCSIHOST_H_INCLUDED
  58. /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
  59. /*
  60. * SCSI Public stuff...
  61. */
  62. #define MPT_SCSI_CMD_PER_DEV_HIGH 31
  63. #define MPT_SCSI_CMD_PER_DEV_LOW 7
  64. #define MPT_SCSI_CMD_PER_LUN 7
  65. #define MPT_SCSI_MAX_SECTORS 8192
  66. /* To disable domain validation, uncomment the
  67. * following line. No effect for FC devices.
  68. * For SCSI devices, driver will negotiate to
  69. * NVRAM settings (if available) or to maximum adapter
  70. * capabilities.
  71. */
  72. #define MPTSCSIH_ENABLE_DOMAIN_VALIDATION
  73. /* SCSI driver setup structure. Settings can be overridden
  74. * by command line options.
  75. */
  76. #define MPTSCSIH_DOMAIN_VALIDATION 1
  77. #define MPTSCSIH_MAX_WIDTH 1
  78. #define MPTSCSIH_MIN_SYNC 0x08
  79. #define MPTSCSIH_SAF_TE 0
  80. #endif