#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <asm/amigaints.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport_spi.h>
static struct scsi_host_template a4000t_scsi_driver_template = {
.name = "A4000T builtin SCSI",
#define A4000T_SCSI_OFFSET 0x40
static int __init amiga_a4000t_scsi_probe(struct platform_device *pdev)
struct NCR_700_Host_Parameters *hostdata;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!request_mem_region(res->start, resource_size(res),
hostdata = kzalloc(sizeof(struct NCR_700_Host_Parameters),
dev_err(&pdev->dev, "Failed to allocate host data\n");
scsi_addr = res->start + A4000T_SCSI_OFFSET;
hostdata->base = ZTWO_VADDR(scsi_addr);
hostdata->dmode_extra = DMODE_FC2;
hostdata->dcntl_extra = EA_710;