Browse Source

[SCSI] ibmmca: convert to new probing API and fix oopses

This is basically a straight conversion.  I have one of these things, so
I know it works ... my problem is that it has a wierd SCA like
connector, so I can't connect anything to it (no cables).

However, previously it panic'd in the interrupt, now it completes a bus
scan.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
James Bottomley 18 years ago
parent
commit
67b2009ae2
3 changed files with 266 additions and 277 deletions
  1. 1 1
      drivers/scsi/Kconfig
  2. 265 255
      drivers/scsi/ibmmca.c
  3. 0 21
      drivers/scsi/ibmmca.h

+ 1 - 1
drivers/scsi/Kconfig

@@ -738,7 +738,7 @@ config SCSI_GENERIC_NCR53C400
 
 
 config SCSI_IBMMCA
 config SCSI_IBMMCA
 	tristate "IBMMCA SCSI support"
 	tristate "IBMMCA SCSI support"
-	depends on MCA_LEGACY && SCSI
+	depends on MCA && SCSI
 	---help---
 	---help---
 	  This is support for the IBM SCSI adapter found in many of the PS/2
 	  This is support for the IBM SCSI adapter found in many of the PS/2
 	  series computers.  These machines have an MCA bus, so you need to
 	  series computers.  These machines have an MCA bus, so you need to

File diff suppressed because it is too large
+ 265 - 255
drivers/scsi/ibmmca.c


+ 0 - 21
drivers/scsi/ibmmca.h

@@ -1,21 +0,0 @@
-/*
- * Low Level Driver for the IBM Microchannel SCSI Subsystem
- * (Headerfile, see Documentation/scsi/ibmmca.txt for description of the
- * IBM MCA SCSI-driver.
- * For use under the GNU General Public License within the Linux-kernel project.
- * This include file works only correctly with kernel 2.4.0 or higher!!! */
-
-#ifndef _IBMMCA_H
-#define _IBMMCA_H
-
-/* Common forward declarations for all Linux-versions: */
-
-/* Interfaces to the midlevel Linux SCSI driver */
-static int ibmmca_detect (struct scsi_host_template *);
-static int ibmmca_release (struct Scsi_Host *);
-static int ibmmca_queuecommand (Scsi_Cmnd *, void (*done) (Scsi_Cmnd *));
-static int ibmmca_abort (Scsi_Cmnd *);
-static int ibmmca_host_reset (Scsi_Cmnd *);
-static int ibmmca_biosparam (struct scsi_device *, struct block_device *, sector_t, int *);
-
-#endif /* _IBMMCA_H */

Some files were not shown because too many files changed in this diff