The config stanza for SCSI_ZALON was in the wrong place, so move it.
Make SCSI_NCR53C8XX conflict with SCSI_ZALON.
Give ncr53c8xx and sym53c8xx names
Fill in detach and release methods unconditionally.
Call pci_set_master() in sym53c8xx.
Both these drivers need interrupt.h, not sched.h
Please read <file:drivers/scsi/sym53c8xx_2/Documentation.txt> for more
information.
-config SCSI_ZALON
- tristate "Zalon SCSI support"
- depends on GSC && SCSI
- help
- The Zalon is a GSC/HSC bus interface chip that sits between the
- PA-RISC processor and the NCR 53c720 SCSI controller on C100,
- C110, J200, J210 and some D, K & R-class machines. It's also
- used on the add-in Bluefish, Barracuda & Shrike SCSI cards.
- Say Y here if you have one of these machines or cards.
-
config SCSI_SYM53C8XX_DMA_ADDRESSING_MODE
int "DMA addressing mode"
depends on SCSI_SYM53C8XX_2
If you say Y here, the driver will preferently use normal IO rather than
memory mapped IO.
+config SCSI_ZALON
+ tristate "Zalon SCSI support"
+ depends on GSC && SCSI
+ help
+ The Zalon is a GSC/HSC bus interface chip that sits between the
+ PA-RISC processor and the NCR 53c720 SCSI controller on C100,
+ C110, J200, J210 and some D, K & R-class machines. It's also
+ used on the add-in Bluefish, Barracuda & Shrike SCSI cards.
+ Say Y here if you have one of these machines or cards.
+
config SCSI_NCR53C8XX
tristate "NCR53C8XX SCSI support"
- depends on PCI && SCSI_SYM53C8XX_2!=y && SCSI
+ depends on PCI && SCSI_SYM53C8XX_2!=y && SCSI_ZALON!=y && SCSI
---help---
This is the BSD ncr driver adapted to Linux for the NCR53C8XX family
of PCI-SCSI controllers. This driver supports parity checking,
**==========================================================
*/
-#ifdef MODULE
static int ncr_detach(ncb_p np)
{
ccb_p cp;
return 1;
}
-#endif
/*==========================================================
**
}
-#ifdef MODULE
int ncr53c8xx_release(struct Scsi_Host *host)
{
#ifdef DEBUG_NCR53C8XX
return 1;
}
-#endif
/*
int ncr53c8xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int ncr53c8xx_reset(Scsi_Cmnd *, unsigned int);
int ncr53c8xx_slave_configure(Scsi_Device *);
-
-#ifdef MODULE
int ncr53c8xx_release(struct Scsi_Host *);
-#else
-#define ncr53c8xx_release NULL
-#endif
#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
-#define NCR53C8XX { .name = "", \
+#define NCR53C8XX { .name = "ncr53c8xx", \
.detect = ncr53c8xx_detect, \
.release = ncr53c8xx_release, \
.info = ncr53c8xx_info, \
#include <asm/spinlock.h>
#endif
#include <linux/delay.h>
+#include <linux/interrupt.h>
#include <linux/signal.h>
-#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/pci.h>
#include <linux/string.h>
**==========================================================
*/
-#ifdef MODULE
static int ncr_detach(ncb_p np)
{
int i;
return 1;
}
-#endif
/*==========================================================
**
}
if (i != count) /* Ignore this device if we already have it */
continue;
+ pci_set_master(pcidev);
devp = &devtbl[count];
devp->host_id = driver_setup.host_id;
devp->attach_done = 0;
}
-#ifdef MODULE
int sym53c8xx_release(struct Scsi_Host *host)
{
#ifdef DEBUG_SYM53C8XX
return 1;
}
-#endif
/*
int sym53c8xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
int sym53c8xx_reset(Scsi_Cmnd *, unsigned int);
int sym53c8xx_slave_configure(Scsi_Device *);
-
-#ifdef MODULE
int sym53c8xx_release(struct Scsi_Host *);
-#else
-#define sym53c8xx_release NULL
-#endif
-
#if LINUX_VERSION_CODE >= LinuxVersionCode(2,1,75)
-#define SYM53C8XX { .name = "", \
+#define SYM53C8XX { .name = "sym53c8xx", \
.detect = sym53c8xx_detect, \
.release = sym53c8xx_release, \
.info = sym53c8xx_info, \
return (hosts_used != 0);
}
-#ifdef MODULE
extern int ncr53c8xx_release(struct Scsi_Host *host);
int zalon7xx_release(struct Scsi_Host *host)
unregister_parisc_driver(&zalon_driver);
return 1;
}
-#endif
int zalon7xx_detect(Scsi_Host_Template *tpnt);
const char *ncr53c8xx_info(struct Scsi_Host *host);
int ncr53c8xx_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
-
-#ifdef MODULE
int zalon7xx_release(struct Scsi_Host *);
-#else
-#define zalon7xx_release NULL
-#endif
#define GSC_SCSI_ZALON_OFFSET 0x800