1 #include <linux/types.h>
5 #include <linux/slab.h>
8 #include <linux/module.h>
11 #include <asm/pgtable.h>
37 spin_unlock_irqrestore(instance->
host_lock, flags);
66 if (addr & A2091_XFER_MASK) {
77 cmd->
SCp.this_residual);
143 SCpnt->
SCp.this_residual);
150 static int a2091_bus_reset(
struct scsi_cmnd *cmd)
168 .name =
"Commodore A2091/A590 SCSI",
170 .proc_name =
"A2901",
173 .eh_bus_reset_handler = a2091_bus_reset,
182 static int __devinit a2091_probe(
struct zorro_dev *z,
210 hdata = shost_priv(instance);
211 hdata->
wh.no_sync = 0xff;
218 "A2091 SCSI", instance);
224 error = scsi_add_host(instance,
NULL);
228 zorro_set_drvdata(z, instance);
242 static void __devexit a2091_remove(
struct zorro_dev *z)
244 struct Scsi_Host *instance = zorro_get_drvdata(z);
247 hdata->
regs->CNTR = 0;
261 static struct zorro_driver a2091_driver = {
263 .id_table = a2091_zorro_tbl,
264 .probe = a2091_probe,
268 static int __init a2091_init(
void)
274 static void __exit a2091_exit(
void)