Lines Matching full:ec

62 	struct expansion_card	*ec;  member
68 /* Prototype: void powertecscsi_irqenable(ec, irqnr)
70 * Params : ec - expansion card structure
74 powertecscsi_irqenable(struct expansion_card *ec, int irqnr) in powertecscsi_irqenable() argument
76 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable()
80 /* Prototype: void powertecscsi_irqdisable(ec, irqnr)
82 * Params : ec - expansion card structure
86 powertecscsi_irqdisable(struct expansion_card *ec, int irqnr) in powertecscsi_irqdisable() argument
88 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable()
193 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
260 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_show_term() local
261 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_show_term()
270 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_store_term() local
271 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_store_term()
302 static int powertecscsi_probe(struct expansion_card *ec, in powertecscsi_probe() argument
310 ret = ecard_request_resources(ec); in powertecscsi_probe()
314 base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in powertecscsi_probe()
327 ecard_set_drvdata(ec, host); in powertecscsi_probe()
331 powertecscsi_terminator_ctl(host, term[ec->slot_no]); in powertecscsi_probe()
333 info->ec = ec; in powertecscsi_probe()
336 info->info.scsi.irq = ec->irq; in powertecscsi_probe()
337 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
350 ec->irqaddr = base + POWERTEC_INTR_STATUS; in powertecscsi_probe()
351 ec->irqmask = POWERTEC_INTR_BIT; in powertecscsi_probe()
353 ecard_setirq(ec, &powertecscsi_ops, info); in powertecscsi_probe()
355 device_create_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_probe()
361 ret = request_irq(ec->irq, powertecscsi_intr, in powertecscsi_probe()
365 host->host_no, ec->irq, ret); in powertecscsi_probe()
380 ret = fas216_add(host, &ec->dev); in powertecscsi_probe()
386 free_irq(ec->irq, info); in powertecscsi_probe()
392 device_remove_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_probe()
396 ecard_release_resources(ec); in powertecscsi_probe()
402 static void powertecscsi_remove(struct expansion_card *ec) in powertecscsi_remove() argument
404 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_remove()
407 ecard_set_drvdata(ec, NULL); in powertecscsi_remove()
410 device_remove_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_remove()
414 free_irq(ec->irq, info); in powertecscsi_remove()
418 ecard_release_resources(ec); in powertecscsi_remove()