lkml.org 
[lkml]   [2003]   [Sep]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] add config option for qla1280 SCSI MMIO/ioport selection
From
Hi,

attached patch adds config option which allows ioport/mmio
selection for QLA1280 SCSI driver.

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

Best regards.

--
Andrey Panin | Linux and UNIX system administrator
pazke@donpac.ru | PGP key: wwwkeys.pgp.net
diff -urN -X /usr/share/dontdiff linux-2.6.0-test3.vanilla/drivers/scsi/Kconfig linux-2.6.0-test3/drivers/scsi/Kconfig
--- linux-2.6.0-test3.vanilla/drivers/scsi/Kconfig Sat Aug 9 08:40:56 2003
+++ linux-2.6.0-test3/drivers/scsi/Kconfig Mon Sep 1 20:58:04 2003
@@ -1298,6 +1298,16 @@
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
diff -urN -X /usr/share/dontdiff linux-2.6.0-test3.vanilla/drivers/scsi/qla1280.c linux-2.6.0-test3/drivers/scsi/qla1280.c
--- linux-2.6.0-test3.vanilla/drivers/scsi/qla1280.c Mon Sep 1 21:50:04 2003
+++ linux-2.6.0-test3/drivers/scsi/qla1280.c Mon Sep 1 21:21:33 2003
@@ -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 */[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.024 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site