• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/pcmcia/

Lines Matching refs:base

199 	/*unsigned int base    = SCpnt->device->host->io_port;*/
267 unsigned int base = data->BaseAddress;
280 nsp_index_write(base, TRANSFERMODE, transfer_mode_reg);
302 unsigned int base = data->BaseAddress;
304 nsp_dbg(NSP_DEBUG_INIT, "in base=0x%x", base);
314 nsp_write(base, IRQCONTROL, IRQCONTROL_ALLMASK);
317 nsp_write(base, IFSELECT, IF_IFSEL);
319 nsp_index_write(base, SCSIIRQMODE, 0);
321 nsp_index_write(base, TRANSFERMODE, MODE_IO8);
322 nsp_index_write(base, CLOCKDIV, data->ScsiClockDiv);
324 nsp_index_write(base, PARITYCTRL, 0);
325 nsp_index_write(base, POINTERCLR, POINTER_CLEAR |
331 nsp_write(base, IFSELECT, IF_REGSEL);
332 nsp_index_write(base, TERMPWRCTRL, 0);
333 if ((nsp_index_read(base, OTHERCONTROL) & TPWR_SENSE) == 0) {
335 nsp_index_write(base, TERMPWRCTRL, POWER_ON);
338 nsp_index_write(base, TIMERCOUNT, 0);
339 nsp_index_write(base, TIMERCOUNT, 0); /* requires 2 times!! */
341 nsp_index_write(base, SYNCREG, 0);
342 nsp_index_write(base, ACKWIDTH, 0);
345 nsp_index_write(base, SCSIIRQMODE, SCSI_PHASE_CHANGE_EI |
348 nsp_write(base, IRQCONTROL, IRQCONTROL_ALLCLEAR);
361 unsigned int base = SCpnt->device->host->io_port;
369 phase = nsp_index_read(base, SCSIBUSMON);
378 nsp_index_write(base, SETARBIT, ARBIT_GO);
382 arbit = nsp_index_read(base, ARBITSTATUS);
390 nsp_index_write(base, SETARBIT, ARBIT_FLAG_CLEAR);
398 nsp_index_write(base, SCSIDATALATCH, BIT(host_id) | BIT(target));
399 nsp_index_write(base, SCSIBUSCTRL, SCSI_SEL | SCSI_BSY | SCSI_ATN);
401 nsp_index_write(base, SCSIBUSCTRL, SCSI_SEL | SCSI_BSY | SCSI_DATAOUT_ENB | SCSI_ATN);
402 nsp_index_write(base, SETARBIT, ARBIT_FLAG_CLEAR);
404 nsp_index_write(base, SCSIBUSCTRL, SCSI_SEL | SCSI_DATAOUT_ENB | SCSI_ATN);
498 unsigned int base = SCpnt->device->host->io_port;
503 nsp_index_write(base, TIMERCOUNT, time);
512 unsigned int base = SCpnt->device->host->io_port;
521 reg = nsp_index_read(base, SCSIBUSMON);
541 unsigned int base = SCpnt->device->host->io_port;
549 phase = nsp_index_read(base, SCSIBUSMON);
554 i_src = nsp_read(base, IRQSTATUS);
574 unsigned int base = SCpnt->device->host->io_port;
592 nsp_index_write(base, SCSIBUSCTRL, AUTODIRECTION | ACKENB);
598 buf[ptr] = nsp_index_read(base, SCSIDATAWITHACK);
601 nsp_index_write(base, SCSIDATAWITHACK, buf[ptr]);
642 unsigned int base = SCpnt->device->host->io_port;
651 id_reg = nsp_index_read(base, RESELECTID);
669 bus_reg = nsp_index_read(base, SCSIBUSCTRL) & ~(SCSI_BSY | SCSI_ATN);
670 nsp_index_write(base, SCSIBUSCTRL, bus_reg);
671 nsp_index_write(base, SCSIBUSCTRL, bus_reg | AUTODIRECTION | ACKENB);
681 unsigned int base = SCpnt->device->host->io_port;
685 nsp_index_write(base, POINTERCLR, POINTER_CLEAR | ACK_COUNTER);
687 l = nsp_index_read(base, TRANSFERCOUNT);
688 m = nsp_index_read(base, TRANSFERCOUNT);
689 h = nsp_index_read(base, TRANSFERCOUNT);
690 dummy = nsp_index_read(base, TRANSFERCOUNT); /* required this! */
708 unsigned int base = SCpnt->device->host->io_port;
709 unsigned long mmio_base = SCpnt->device->host->base;
725 stat = nsp_index_read(base, SCSIBUSMON);
741 fifo_stat = nsp_read(base, FIFOSTATUS);
752 nsp_fifo32_read(base, SCpnt->SCp.ptr, res >> 2);
755 nsp_fifo8_read (base, SCpnt->SCp.ptr, res );
803 unsigned int base = SCpnt->device->host->io_port;
804 unsigned long mmio_base = SCpnt->device->host->base;
819 stat = nsp_index_read(base, SCSIBUSMON);
847 nsp_fifo32_write(base, SCpnt->SCp.ptr, res >> 2);
850 nsp_fifo8_write (base, SCpnt->SCp.ptr, res );
896 unsigned int base = SCpnt->device->host->io_port;
905 nsp_index_write(base, SYNCREG, sync->SyncRegister);
906 nsp_index_write(base, ACKWIDTH, sync->AckWidth);
925 nsp_index_write(base, POINTERCLR, POINTER_CLEAR |
939 unsigned int base;
963 base = data->BaseAddress;
964 //nsp_dbg(NSP_DEBUG_INTR, "base=0x%x", base);
969 nsp_write(base, IRQCONTROL, IRQCONTROL_IRQDISABLE);
970 irq_status = nsp_read(base, IRQSTATUS);
973 nsp_write(base, IRQCONTROL, 0);
978 phase = nsp_index_read(base, SCSIBUSMON);
980 irq_phase = nsp_index_read(base, IRQPHASESENCE);
993 nsp_index_write(base, TIMERCOUNT, 0);
994 nsp_index_write(base, TIMERCOUNT, 0);
1001 nsp_write(base, IRQCONTROL, IRQCONTROL_TIMER_CLEAR);
1005 nsp_write(base, IRQCONTROL, IRQCONTROL_TIMER_CLEAR | IRQCONTROL_FIFO_CLEAR);
1042 nsp_write(base, IRQCONTROL, IRQCONTROL_RESELECT_CLEAR);
1063 nsp_index_write(base, SCSIBUSCTRL, 0);
1079 nsp_index_write(base, SCSIBUSCTRL, SCSI_ATN);
1081 nsp_index_write(base, SCSIBUSCTRL, SCSI_ATN | AUTODIRECTION | ACKENB);
1153 nsp_index_write(base, COMMANDCTRL, CLEAR_COMMAND_POINTER);
1155 nsp_index_write(base, COMMANDDATA, tmpSC->cmnd[i]);
1157 nsp_index_write(base, COMMANDCTRL, CLEAR_COMMAND_POINTER | AUTO_COMMAND_GO);
1186 tmpSC->SCp.Status = nsp_index_read(base, SCSIDATAWITHACK);
1320 host->base = data->MmioAddress;
1328 host->base,
1433 SPRINTF("MMIO(virtual address): 0x%lx-0x%lx\n", host->base, host->base + data->MmioLength - 1);
1524 unsigned int base = data->BaseAddress;
1527 nsp_write(base, IRQCONTROL, IRQCONTROL_ALLMASK);
1529 nsp_index_write(base, SCSIBUSCTRL, SCSI_RST);
1531 nsp_index_write(base, SCSIBUSCTRL, 0);
1533 nsp_index_read(base, IRQPHASESENCE); /* dummy read */
1538 nsp_write(base, IRQCONTROL, IRQCONTROL_ALLCLEAR);
1729 link->io.BasePort1 = io->win[0].base;
1733 link->io.BasePort2 = io->win[1].base;