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

Lines Matching defs:port_base

384 static int               port_base;
533 port_base);
555 port_base = ints[0] >= 1 ? ints[1] : 0;
574 outb(0, port_base + SCSI_Cntl);
575 outb(0, port_base + SCSI_Mode_Cntl);
577 outb(0x21 | PARITY_MASK, port_base + TMC_Cntl); /* Clear forced intr. */
579 outb(0x01 | PARITY_MASK, port_base + TMC_Cntl);
628 outb( i, port_base + Write_Loopback );
629 result = inb( port_base + Read_Loopback );
879 printk( "scsi: <fdomain> No BIOS, using port_base = 0x%x, irq = %d\n",
880 port_base, interrupt_level );
882 if (!request_region(port_base, 0x10, "fdomain")) {
883 printk( "scsi: <fdomain> port 0x%x is busy\n", port_base );
887 if (!fdomain_is_valid_port( port_base )) {
889 port_base );
891 release_region(port_base, 0x10);
899 flag = fdomain_pci_bios_detect( &interrupt_level, &port_base, &pdev );
903 flag = fdomain_isa_detect( &interrupt_level, &port_base );
915 printk(KERN_ERR "scsi: <fdomain> Detection failed (loopback test failed at port base 0x%x)\n", port_base);
940 release_region(port_base, 0x10);
944 shpnt->io_port = port_base;
978 release_region(port_base, 0x10);
1019 outb(0x82, port_base + SCSI_Cntl); /* Bus Enable + Select */
1020 outb(adapter_mask | (1 << target), port_base + SCSI_Data_NoACK);
1023 outb(PARITY_MASK, port_base + TMC_Cntl);
1028 status = inb(port_base + SCSI_Status); /* Read adapter status */
1031 outb(0x80, port_base + SCSI_Cntl);
1056 outb(0x00, port_base + Interrupt_Cntl);
1084 if ((inb(port_base + TMC_Status) & 0x01) == 0)
1088 outb(0x00, port_base + Interrupt_Cntl);
1113 status = inb(port_base + TMC_Status); /* Read adapter status */
1125 outb(0x40 | FIFO_COUNT, port_base + Interrupt_Cntl);
1127 outb(0x82, port_base + SCSI_Cntl); /* Bus Enable + Select */
1128 outb(adapter_mask | (1 << scmd_id(current_SC)), port_base + SCSI_Data_NoACK);
1131 outb(0x10 | PARITY_MASK, port_base + TMC_Cntl);
1137 status = inb(port_base + SCSI_Status);
1153 outb(0x10 | PARITY_MASK, port_base + TMC_Cntl);
1157 outb(0x90 | FIFO_COUNT, port_base + Interrupt_Cntl);
1158 outb(0x80, port_base + SCSI_Cntl);
1167 status = inb(port_base + SCSI_Status);
1175 port_base + Write_SCSI_Data);
1184 outb(0xd0 | PARITY_MASK, port_base + TMC_Cntl);
1190 outb(0x90 | PARITY_MASK, port_base + TMC_Cntl);
1194 current_SC->SCp.Status = inb(port_base + Read_SCSI_Data);
1210 outb(MESSAGE_REJECT, port_base + Write_SCSI_Data); /* Reject */
1213 current_SC->SCp.Message = inb(port_base + Read_SCSI_Data);
1234 outb(0xd0 | PARITY_MASK, port_base + TMC_Cntl);
1239 outb(0x90 | PARITY_MASK, port_base + TMC_Cntl);
1244 while ((data_count = FIFO_Size - inw(port_base + FIFO_Data_Count)) > 512) {
1255 outb(*current_SC->SCp.ptr++, port_base + Write_FIFO);
1259 outsw(port_base + Write_FIFO, current_SC->SCp.ptr, data_count);
1277 while ((data_count = inw(port_base + FIFO_Data_Count)) > 0) {
1288 *current_SC->SCp.ptr++ = inb(port_base + Read_FIFO);
1292 insw(port_base + Read_FIFO, current_SC->SCp.ptr, data_count);
1352 outb(0xd0 | FIFO_COUNT, port_base + Interrupt_Cntl);
1353 outb(0x00, port_base + SCSI_Cntl);
1355 outb(0x90 | FIFO_COUNT, port_base + Interrupt_Cntl);
1406 outb(0x00, port_base + Interrupt_Cntl);
1407 outb(0x00, port_base + SCSI_Cntl); /* Disable data drivers */
1408 outb(adapter_mask, port_base + SCSI_Data_NoACK); /* Set our id bit */
1410 outb(0x20, port_base + Interrupt_Cntl);
1411 outb(0x14 | PARITY_MASK, port_base + TMC_Cntl); /* Start arbitration */
1467 printk( "SCSI Status = 0x%02x\n", inb(port_base + SCSI_Status));
1468 printk( "TMC Status = 0x%02x", inb(port_base + TMC_Status));
1469 if (inb((port_base + TMC_Status) & 1))
1472 printk("Interrupt Status = 0x%02x", inb(port_base + Interrupt_Status));
1473 if (inb(port_base + Interrupt_Status) & 0x08)
1477 printk("FIFO Status = 0x%02x\n", inb(port_base + FIFO_Status));
1479 inb( port_base + Interrupt_Cond ) );
1481 printk( "Configuration 1 = 0x%02x\n", inb( port_base + Configuration1 ) );
1484 inb( port_base + Configuration2 ) );
1520 outb(1, port_base + SCSI_Cntl);
1522 outb(0, port_base + SCSI_Cntl);
1524 outb(0, port_base + SCSI_Mode_Cntl);
1525 outb(PARITY_MASK, port_base + TMC_Cntl);