Lines Matching +full:host +full:- +full:id

1 // SPDX-License-Identifier: GPL-2.0-only
10 * Rewritten to use 53c700.c by Kars de Jong <jongk@linux-m68k.org>
27 MODULE_AUTHOR("Alan Hourihane <alanh@fairlite.demon.co.uk> / Kars de Jong <jongk@linux-m68k.org>");
52 .id = ZORRO_PROD_PHASE5_BLIZZARD_603E_PLUS,
56 .id = ZORRO_PROD_MACROSYSTEMS_WARP_ENGINE_40xx,
60 .id = ZORRO_PROD_CBM_A4091_1,
64 .id = ZORRO_PROD_CBM_A4091_2,
68 .id = ZORRO_PROD_GVP_GFORCE_040_060,
78 struct Scsi_Host *host; in zorro7xx_init_one() local
84 zdd = (struct zorro_driver_data *)ent->driver_data; in zorro7xx_init_one()
86 if (zdd->absolute) { in zorro7xx_init_one()
87 ioaddr = zdd->offset; in zorro7xx_init_one()
89 ioaddr = board + zdd->offset; in zorro7xx_init_one()
92 if (!zorro_request_device(z, zdd->name)) { in zorro7xx_init_one()
95 return -EBUSY; in zorro7xx_init_one()
100 printk(KERN_ERR "zorro7xx: Failed to allocate host data\n"); in zorro7xx_init_one()
106 hostdata->base = ioremap(ioaddr, zorro_resource_len(z)); in zorro7xx_init_one()
108 hostdata->base = ZTWO_VADDR(ioaddr); in zorro7xx_init_one()
110 hostdata->clock = 50; in zorro7xx_init_one()
111 hostdata->chip710 = 1; in zorro7xx_init_one()
114 hostdata->ctest7_extra = CTEST7_TT1; in zorro7xx_init_one()
116 zorro7xx_scsi_driver_template.name = zdd->name; in zorro7xx_init_one()
119 host = NCR_700_detect(&zorro7xx_scsi_driver_template, hostdata, in zorro7xx_init_one()
120 &z->dev); in zorro7xx_init_one()
121 if (!host) { in zorro7xx_init_one()
122 printk(KERN_ERR "zorro7xx: No host detected; " in zorro7xx_init_one()
127 host->this_id = 7; in zorro7xx_init_one()
128 host->base = ioaddr; in zorro7xx_init_one()
129 host->irq = IRQ_AMIGA_PORTS; in zorro7xx_init_one()
131 if (request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "zorro7xx-scsi", in zorro7xx_init_one()
132 host)) { in zorro7xx_init_one()
137 zorro_set_drvdata(z, host); in zorro7xx_init_one()
138 scsi_scan_host(host); in zorro7xx_init_one()
143 scsi_host_put(host); in zorro7xx_init_one()
146 iounmap(hostdata->base); in zorro7xx_init_one()
151 return -ENODEV; in zorro7xx_init_one()
156 struct Scsi_Host *host = zorro_get_drvdata(z); in zorro7xx_remove_one() local
157 struct NCR_700_Host_Parameters *hostdata = shost_priv(host); in zorro7xx_remove_one()
159 scsi_remove_host(host); in zorro7xx_remove_one()
161 NCR_700_release(host); in zorro7xx_remove_one()
162 if (host->base > 0x01000000) in zorro7xx_remove_one()
163 iounmap(hostdata->base); in zorro7xx_remove_one()
165 free_irq(host->irq, host); in zorro7xx_remove_one()
170 .name = "zorro7xx-scsi",