patch-2.2.13 linux/drivers/scsi/aha1542.c
Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/scsi/advansys.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Tue Oct 19 17:14:01 1999
- Orig file:
v2.2.12/linux/drivers/scsi/aha1542.c
- Orig date:
Mon Aug 9 16:05:56 1999
diff -u --recursive --new-file v2.2.12/linux/drivers/scsi/aha1542.c linux/drivers/scsi/aha1542.c
@@ -20,7 +20,7 @@
* Recognize that DMA0 is valid DMA channel -- 13-Jul-98
* Modified by Chris Faulhaber <jedgar@fxp.org>
* Added module command-line options
- * 18-Jul-99
+ * 19-Jul-99
*/
#include <linux/module.h>
@@ -964,11 +964,30 @@
tpnt->proc_dir = &proc_scsi_aha1542;
#ifdef MODULE
- bases[0] = 4;
- bases[1] = aha1542[0];
- bases[2] = aha1542[1];
- bases[3] = aha1542[2];
- bases[4] = aha1542[3];
+ bases[0] = aha1542[0];
+ setup_buson[0] = aha1542[1];
+ setup_busoff[0] = aha1542[2];
+ {
+ int atbt = -1;
+ switch (aha1542[3]) {
+ case 5:
+ atbt = 0x00;
+ break;
+ case 6:
+ atbt = 0x04;
+ break;
+ case 7:
+ atbt = 0x01;
+ break;
+ case 8:
+ atbt = 0x02;
+ break;
+ case 10:
+ atbt = 0x03;
+ break;
+ };
+ setup_dmaspeed[0] = atbt;
+ }
#endif
for(indx = 0; indx < sizeof(bases)/sizeof(bases[0]); indx++)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)