Skip to contentSkip to conversation

PATCH for g_NCR5380, DTC3151 support

PATCH Nils Hammar 2 participants 3 messages Jan 2, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

Patches for the g_NCR5380 driver.
The current driver depends on the ISAPNP functionality, but not all computers have ISAPNP, like my old Compaq 386sx.

This patch shall resolve that problem.

Additional in this patch is that most printk statements now prints "g_NCR5380 :" at the beginning of the line to correctly identify that it was this driver that generated the printout.

/Nils Hammar, [email protected]

Note: I couldn't find any maintainer for this driver in the MAINTAINERS file.

=============================================================================

scsi/g_NCR5380.h renamed from scsi/g_NCR5380.h.orig +8 -0
@@ -10,6 +10,9 @@
  * NCR53C400 extensions (c) 1994,1995,1996, Kevin Lentin
  *    [email protected]
  *
+ * Added BOARD_NONE constant
+ * 2003-01-01 Nils Hammar, [email protected]
+ *
  * ALPHA RELEASE 1. 
  *
  * For more information, please consult 
@@ -43,6 +46,10 @@
 #define NCR5380_BIOSPARAM NULL
 #endif
 
+/*	Local Prototypes */
+int	check_regs(int addr);
+int	find_dtc_pnp_card(void);
+int	try_port(int i, int *ports, int current_override);
 int generic_NCR5380_abort(Scsi_Cmnd *);
 int generic_NCR5380_detect(Scsi_Host_Template *);
 int generic_NCR5380_release_resources(struct Scsi_Host *);
@@ -144,6 +151,7 @@
 #define BOARD_NCR53C400	1
 #define BOARD_NCR53C400A 2
 #define BOARD_DTC3181E	3
+#define BOARD_NONE	255
 
 #endif				/* else def HOSTS_C */
 #endif				/* GENERIC_NCR5380_H */
scsi/g_NCR5380.c renamed from scsi/g_NCR5380.c.orig +257 -93

525 lines not on this page · raw message

#1 lore raw
Quoted 4 lines · Nils Hammar

Patches for the g_NCR5380 driver.
The current driver depends on the ISAPNP functionality, but not all computers have ISAPNP, like my old Compaq 386sx.

Why this huge patch.

Firstly ISAPnP is a fundamental ISA bus feature - so any box can support it. Secondly I don't understand what your code changes are trying to achieve because the diff is hard to follow

Other bits - why mdelay(100) not a sleeping timeout ?

The printk changes look fine, but the rest of it is a bit harder to follow.

Quoted 2 lines

Note: I couldn't find any maintainer for this driver in the MAINTAINERS file.

Thats sort of me. I've done major reworking on the 2.5 code and I keep some eye on the 2.4 code too.

#2 lore raw
In reply to Nils Hammar
Quoted 4 lines · Nils Hammar

Patches for the g_NCR5380 driver.
The current driver depends on the ISAPNP functionality, but not all computers have ISAPNP, like my old Compaq 386sx.

Why this huge patch.

Firstly ISAPnP is a fundamental ISA bus feature - so any box can support it. Secondly I don't understand what your code changes are trying to achieve because the diff is hard to follow

Other bits - why mdelay(100) not a sleeping timeout ?

The printk changes look fine, but the rest of it is a bit harder to follow.

Quoted 2 lines

Note: I couldn't find any maintainer for this driver in the MAINTAINERS file.

Thats sort of me. I've done major reworking on the 2.5 code and I keep some eye on the 2.4 code too.