#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <asm/mvme16xhw.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_transport_spi.h>
MODULE_AUTHOR("Kars de Jong <jongk@linux-m68k.org>");
MODULE_DESCRIPTION("MVME16x NCR53C710 driver");
static struct scsi_host_template mvme16x_scsi_driver_template = {
.name = "MVME16x NCR53c710 SCSI",
static struct platform_device *mvme16x_scsi_device;
static int mvme16x_probe(struct platform_device *dev)
struct Scsi_Host * host = NULL;
struct NCR_700_Host_Parameters *hostdata;
if (mvme16x_config & MVME16x_CONFIG_NO_SCSICHIP) {
printk(KERN_INFO "mvme16x-scsi: detection disabled, "
"SCSI chip not present\n");
hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters), GFP_KERNEL);
printk(KERN_ERR "mvme16x-scsi: "
"Failed to allocate host data\n");
hostdata->base = (void __iomem *)0xfff47000UL;
hostdata->dmode_extra = DMODE_FC2;
hostdata->dcntl_extra = EA_710;