]> git.hungrycats.org Git - linux/commitdiff
[PATCH] add config option for qla1280 SCSI MMIO/ioport
authorAndrew Morton <akpm@osdl.org>
Wed, 3 Sep 2003 18:12:00 +0000 (11:12 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 3 Sep 2003 18:12:00 +0000 (11:12 -0700)
From: Andrey Panin <pazke@donpac.ru>

Add a config option which allows ioport/mmio selection for QLA1280 SCSI
driver.

With this patch applied QLA1280 can be used on Visws again.

drivers/scsi/Kconfig
drivers/scsi/qla1280.c

index 01218bd31486f86bdd67ca979ed0032842421a05..315967cc013ad7cd99ba237e9625e7e2262ef9e3 100644 (file)
@@ -1298,6 +1298,16 @@ config SCSI_QLOGIC_1280
          The module will be called qla1280. If you want to compile it as
          a module, say M here and read <file:Documentation/modules.txt>.
 
+config SCSI_QLOGIC_1280_PIO
+       bool "Use PIO instead of MMIO" if !X86_VISWS
+       depends on SCSI_QLOGIC_1280
+       default y if X86_VISWS
+       help
+         This instructs the driver to use programmed I/O ports (PIO) instead
+         of PCI shared memory (MMIO).  This can possibly solve some problems
+         in case your mainboard has memory consistency issues.  If unsure,
+         say N.
+
 config SCSI_QLOGICPTI
        tristate "PTI Qlogic, ISP Driver"
        depends on SBUS && SCSI
index bd05b2a7268f843b9b880f5b87201f2e462b2b5c..f8ebdb8bbfc46252222b8b676be8e7d10a5b5e5a 100644 (file)
  */
 #define  QL1280_LUN_SUPPORT    0
 #define  WATCHDOGTIMER         0
-#define  MEMORY_MAPPED_IO      1
+
 #define  DEBUG_QLA1280_INTR    0
 #define  DEBUG_PRINT_NVRAM     0
 #define  DEBUG_QLA1280         0
 
+#ifdef CONFIG_SCSI_QLOGIC_1280_PIO
+#define        MEMORY_MAPPED_IO        0
+#else
+#define        MEMORY_MAPPED_IO        1
+#endif
+
 #define UNIQUE_FW_NAME
 #include "qla1280.h"
 #include "ql12160_fw.h"                /* ISP RISC codes */