From c12f96f27e547c29103733310a50b4a5bfe85b90 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 3 Sep 2003 11:12:00 -0700 Subject: [PATCH] [PATCH] add config option for qla1280 SCSI MMIO/ioport From: Andrey Panin 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 | 10 ++++++++++ drivers/scsi/qla1280.c | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig index 01218bd31486f..315967cc013ad 100644 --- a/drivers/scsi/Kconfig +++ b/drivers/scsi/Kconfig @@ -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 . +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 diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index bd05b2a7268f8..f8ebdb8bbfc46 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -331,11 +331,17 @@ */ #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 */ -- 2.53.0