Lines Matching defs:info

61 	FAS216_Info		info;
76 struct powertec_info *info = ec->irq_data;
77 writeb(POWERTEC_INTR_ENABLE, info->base + POWERTEC_INTR_CONTROL);
88 struct powertec_info *info = ec->irq_data;
89 writeb(POWERTEC_INTR_DISABLE, info->base + POWERTEC_INTR_CONTROL);
105 struct powertec_info *info = (struct powertec_info *)host->hostdata;
107 info->term_ctl = on_off ? POWERTEC_TERM_ENABLE : 0;
108 writeb(info->term_ctl, info->base + POWERTEC_TERM_CONTROL);
118 struct powertec_info *info = dev_id;
120 return fas216_intr(&info->info);
135 struct powertec_info *info = (struct powertec_info *)host->hostdata;
137 int dmach = info->info.scsi.dma;
139 if (info->info.ifcfg.capabilities & FASCAP_DMA &&
143 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG);
153 dma_map_sg(dev, info->sg, bufs, map_dir);
156 set_dma_sg(dmach, info->sg, bufs);
177 struct powertec_info *info = (struct powertec_info *)host->hostdata;
178 if (info->info.scsi.dma != NO_DMA)
179 disable_dma(info->info.scsi.dma);
184 * Params : host - driver host structure to return info for.
189 struct powertec_info *info = (struct powertec_info *)host->hostdata;
193 host->hostt->name, info->info.scsi.type, info->ec->slot_no,
194 VERSION, info->term_ctl ? "n" : "ff");
244 struct powertec_info *info;
246 info = (struct powertec_info *)host->hostdata;
249 fas216_print_host(&info->info, m);
251 info->term_ctl ? "n" : "ff");
253 fas216_print_stats(&info->info, m);
254 fas216_print_devices(&info->info, m);
262 struct powertec_info *info = (struct powertec_info *)host->hostdata;
264 return sprintf(buf, "%d\n", info->term_ctl ? 1 : 0);
287 .info = powertecscsi_info,
306 struct powertec_info *info;
329 info = (struct powertec_info *)host->hostdata;
330 info->base = base;
333 info->ec = ec;
334 info->info.scsi.io_base = base + POWERTEC_FAS216_OFFSET;
335 info->info.scsi.io_shift = POWERTEC_FAS216_SHIFT;
336 info->info.scsi.irq = ec->irq;
337 info->info.scsi.dma = ec->dma;
338 info->info.ifcfg.clockrate = 40; /* MHz */
339 info->info.ifcfg.select_timeout = 255;
340 info->info.ifcfg.asyncperiod = 200; /* ns */
341 info->info.ifcfg.sync_max_depth = 7;
342 info->info.ifcfg.cntl3 = CNTL3_BS8 | CNTL3_FASTSCSI | CNTL3_FASTCLK;
343 info->info.ifcfg.disconnect_ok = 1;
344 info->info.ifcfg.wide_max_size = 0;
345 info->info.ifcfg.capabilities = 0;
346 info->info.dma.setup = powertecscsi_dma_setup;
347 info->info.dma.pseudo = NULL;
348 info->info.dma.stop = powertecscsi_dma_stop;
353 ecard_setirq(ec, &powertecscsi_ops, info);
362 0, "powertec", info);
369 if (info->info.scsi.dma != NO_DMA) {
370 if (request_dma(info->info.scsi.dma, "powertec")) {
372 host->host_no, info->info.scsi.dma);
373 info->info.scsi.dma = NO_DMA;
375 set_dma_speed(info->info.scsi.dma, 180);
376 info->info.ifcfg.capabilities |= FASCAP_DMA;
384 if (info->info.scsi.dma != NO_DMA)
385 free_dma(info->info.scsi.dma);
386 free_irq(ec->irq, info);
405 struct powertec_info *info = (struct powertec_info *)host->hostdata;
412 if (info->info.scsi.dma != NO_DMA)
413 free_dma(info->info.scsi.dma);
414 free_irq(ec->irq, info);