1 #include <linux/types.h>
5 #include <linux/slab.h>
9 #include <linux/module.h>
12 #include <asm/pgtable.h>
38 spin_unlock_irqrestore(instance->
host_lock, flags);
41 pr_warning(
"Non-serviced A3000 SCSI-interrupt? ISTR = %02x\n", status);
74 cmd->
SCp.this_residual);
153 SCpnt->
SCp.this_residual);
165 static int a3000_bus_reset(
struct scsi_cmnd *cmd)
183 .name =
"Amiga 3000 built-in SCSI",
185 .proc_name =
"A3000",
188 .eh_bus_reset_handler = a3000_bus_reset,
228 hdata = shost_priv(instance);
229 hdata->
wh.no_sync = 0xff;
236 "A3000 SCSI", instance);
242 error = scsi_add_host(instance,
NULL);
246 platform_set_drvdata(pdev, instance);
262 struct Scsi_Host *instance = platform_get_drvdata(pdev);
266 hdata->
regs->CNTR = 0;
275 .remove =
__exit_p(amiga_a3000_scsi_remove),
277 .name =
"amiga-a3000-scsi",
282 static int __init amiga_a3000_scsi_init(
void)
285 amiga_a3000_scsi_probe);
289 static void __exit amiga_a3000_scsi_exit(
void)