qla_settings.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /******************************************************************************
  2. * QLOGIC LINUX SOFTWARE
  3. *
  4. * QLogic ISP2x00 device driver for Linux 2.6.x
  5. * Copyright (C) 2003-2004 QLogic Corporation
  6. * (www.qlogic.com)
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2, or (at your option) any
  11. * later version.
  12. *
  13. * This program is distributed in the hope that it will be useful, but
  14. * WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * General Public License for more details.
  17. *
  18. ******************************************************************************/
  19. /*
  20. * Compile time Options:
  21. * 0 - Disable and 1 - Enable
  22. */
  23. #define DEBUG_QLA2100 0 /* For Debug of qla2x00 */
  24. #define STOP_ON_RESET 0
  25. #define USE_ABORT_TGT 1 /* Use Abort Target mbx cmd */
  26. #define VSA 0 /* Volume Set Addressing */
  27. /* Failover options */
  28. #define MAX_RECOVERYTIME 10 /*
  29. * Max suspend time for a lun recovery
  30. * time
  31. */
  32. #define MAX_FAILBACKTIME 5 /* Max suspend time before fail back */
  33. #define QLA_CMD_TIMER_DELTA 3
  34. /*
  35. * When a lun is suspended for the "Not Ready" condition then it will suspend
  36. * the lun for increments of 6 sec delays. SUSPEND_COUNT is that count.
  37. */
  38. #define SUSPEND_COUNT 10 /* 6 secs * 10 retries = 60 secs */
  39. /*
  40. * Defines the time in seconds that the driver extends the command timeout to
  41. * get around the problem where the mid-layer only allows 5 retries for
  42. * commands that return BUS_BUSY
  43. */
  44. #define EXTEND_CMD_TIMEOUT 60
  45. #define MAX_RETRIES_OF_ISP_ABORT 5
  46. /* Max time to wait for the loop to be in LOOP_READY state */
  47. #define MAX_LOOP_TIMEOUT (60 * 5)
  48. #define EH_ACTIVE 1 /* Error handler active */
  49. /*
  50. * Some vendor subsystems do not recover properly after a device reset. Define
  51. * the following to force a logout after a successful device reset.
  52. */
  53. #undef LOGOUT_AFTER_DEVICE_RESET
  54. #include "qla_version.h"