Lines Matching refs:info
78 FAS216_Info info; member
96 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable() local
97 writeb(ALATCH_ENA_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqenable()
108 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable() local
109 writeb(ALATCH_DIS_INT, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_irqdisable()
125 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_terminator_ctl() local
128 info->terms = 1; in cumanascsi_2_terminator_ctl()
129 writeb(ALATCH_ENA_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl()
131 info->terms = 0; in cumanascsi_2_terminator_ctl()
132 writeb(ALATCH_DIS_TERM, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_terminator_ctl()
144 struct cumanascsi2_info *info = dev_id; in cumanascsi_2_intr() local
146 return fas216_intr(&info->info); in cumanascsi_2_intr()
161 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_setup() local
163 int dmach = info->info.scsi.dma; in cumanascsi_2_dma_setup()
165 writeb(ALATCH_DIS_DMA, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
171 bufs = copy_SCp_to_sg(&info->sg[0], SCp, NR_SG); in cumanascsi_2_dma_setup()
183 dma_map_sg(dev, info->sg, bufs, map_dir); in cumanascsi_2_dma_setup()
186 set_dma_sg(dmach, info->sg, bufs); in cumanascsi_2_dma_setup()
187 writeb(alatch_dir, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
190 writeb(ALATCH_ENA_DMA, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
191 writeb(ALATCH_DIS_BIT32, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_setup()
214 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_pseudo() local
225 unsigned int status = readb(info->base + CUMANASCSI2_STATUS); in cumanascsi_2_dma_pseudo()
234 writew(word, info->base + CUMANASCSI2_PSEUDODMA); in cumanascsi_2_dma_pseudo()
244 unsigned int status = readb(info->base + CUMANASCSI2_STATUS); in cumanascsi_2_dma_pseudo()
252 readsw(info->base + CUMANASCSI2_PSEUDODMA, in cumanascsi_2_dma_pseudo()
261 unsigned int status = readb(info->base + CUMANASCSI2_STATUS); in cumanascsi_2_dma_pseudo()
269 word = readw(info->base + CUMANASCSI2_PSEUDODMA); in cumanascsi_2_dma_pseudo()
287 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_dma_stop() local
288 if (info->info.scsi.dma != NO_DMA) { in cumanascsi_2_dma_stop()
289 writeb(ALATCH_DIS_DMA, info->base + CUMANASCSI2_ALATCH); in cumanascsi_2_dma_stop()
290 disable_dma(info->info.scsi.dma); in cumanascsi_2_dma_stop()
301 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_info() local
305 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in cumanascsi_2_info()
306 VERSION, info->terms ? "n" : "ff"); in cumanascsi_2_info()
346 struct cumanascsi2_info *info; in cumanascsi_2_show_info() local
347 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi_2_show_info()
350 fas216_print_host(&info->info, m); in cumanascsi_2_show_info()
352 info->terms ? "n" : "ff"); in cumanascsi_2_show_info()
354 fas216_print_stats(&info->info, m); in cumanascsi_2_show_info()
355 fas216_print_devices(&info->info, m); in cumanascsi_2_show_info()
364 .info = cumanascsi_2_info,
382 struct cumanascsi2_info *info; in cumanascsi2_probe() local
405 info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_probe()
406 info->ec = ec; in cumanascsi2_probe()
407 info->base = base; in cumanascsi2_probe()
411 info->info.scsi.io_base = base + CUMANASCSI2_FAS216_OFFSET; in cumanascsi2_probe()
412 info->info.scsi.io_shift = CUMANASCSI2_FAS216_SHIFT; in cumanascsi2_probe()
413 info->info.scsi.irq = ec->irq; in cumanascsi2_probe()
414 info->info.scsi.dma = ec->dma; in cumanascsi2_probe()
415 info->info.ifcfg.clockrate = 40; /* MHz */ in cumanascsi2_probe()
416 info->info.ifcfg.select_timeout = 255; in cumanascsi2_probe()
417 info->info.ifcfg.asyncperiod = 200; /* ns */ in cumanascsi2_probe()
418 info->info.ifcfg.sync_max_depth = 7; in cumanascsi2_probe()
419 info->info.ifcfg.cntl3 = CNTL3_BS8 | CNTL3_FASTSCSI | CNTL3_FASTCLK; in cumanascsi2_probe()
420 info->info.ifcfg.disconnect_ok = 1; in cumanascsi2_probe()
421 info->info.ifcfg.wide_max_size = 0; in cumanascsi2_probe()
422 info->info.ifcfg.capabilities = FASCAP_PSEUDODMA; in cumanascsi2_probe()
423 info->info.dma.setup = cumanascsi_2_dma_setup; in cumanascsi2_probe()
424 info->info.dma.pseudo = cumanascsi_2_dma_pseudo; in cumanascsi2_probe()
425 info->info.dma.stop = cumanascsi_2_dma_stop; in cumanascsi2_probe()
427 ec->irqaddr = info->base + CUMANASCSI2_STATUS; in cumanascsi2_probe()
430 ecard_setirq(ec, &cumanascsi_2_ops, info); in cumanascsi2_probe()
437 0, "cumanascsi2", info); in cumanascsi2_probe()
444 if (info->info.scsi.dma != NO_DMA) { in cumanascsi2_probe()
445 if (request_dma(info->info.scsi.dma, "cumanascsi2")) { in cumanascsi2_probe()
447 host->host_no, info->info.scsi.dma); in cumanascsi2_probe()
448 info->info.scsi.dma = NO_DMA; in cumanascsi2_probe()
450 set_dma_speed(info->info.scsi.dma, 180); in cumanascsi2_probe()
451 info->info.ifcfg.capabilities |= FASCAP_DMA; in cumanascsi2_probe()
459 if (info->info.scsi.dma != NO_DMA) in cumanascsi2_probe()
460 free_dma(info->info.scsi.dma); in cumanascsi2_probe()
461 free_irq(ec->irq, info); in cumanascsi2_probe()
479 struct cumanascsi2_info *info = (struct cumanascsi2_info *)host->hostdata; in cumanascsi2_remove() local
484 if (info->info.scsi.dma != NO_DMA) in cumanascsi2_remove()
485 free_dma(info->info.scsi.dma); in cumanascsi2_remove()
486 free_irq(ec->irq, info); in cumanascsi2_remove()