• 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 refs:ppb

191 	unsigned short ppb = dev->base;
194 w_ctr(ppb, 0x0c);
198 r = r_str(ppb);
223 w_ctr(ppb, 0x04);
284 static inline void epp_reset(unsigned short ppb)
288 i = r_str(ppb);
289 w_str(ppb, i);
290 w_str(ppb, i & 0xfe);
365 unsigned short ppb = dev->base;
382 epp_reset(ppb);
383 w_ctr(ppb, 0x4);
386 outsw(ppb + 4, buffer, len >> 1);
389 outsl(ppb + 4, buffer, len >> 2);
392 outsb(ppb + 4, buffer, len);
393 w_ctr(ppb, 0xc);
394 r = !(r_str(ppb) & 0x01);
395 w_ctr(ppb, 0xc);
402 r = imm_byte_out(ppb, buffer, len);
414 unsigned short ppb = dev->base;
429 r = imm_nibble_in(ppb, buffer, len);
430 w_ctr(ppb, 0xc);
435 r = imm_byte_in(ppb, buffer, len);
436 w_ctr(ppb, 0xc);
442 epp_reset(ppb);
443 w_ctr(ppb, 0x24);
446 insw(ppb + 4, buffer, len >> 1);
449 insl(ppb + 4, buffer, len >> 2);
452 insb(ppb + 4, buffer, len);
453 w_ctr(ppb, 0x2c);
454 r = !(r_str(ppb) & 0x01);
455 w_ctr(ppb, 0x2c);
467 static int imm_cpp(unsigned short ppb, unsigned char b)
475 w_ctr(ppb, 0x0c);
477 w_dtr(ppb, 0xaa);
479 w_dtr(ppb, 0x55);
481 w_dtr(ppb, 0x00);
483 w_dtr(ppb, 0xff);
485 s1 = r_str(ppb) & 0xb8;
486 w_dtr(ppb, 0x87);
488 s2 = r_str(ppb) & 0xb8;
489 w_dtr(ppb, 0x78);
491 s3 = r_str(ppb) & 0x38;
492 w_dtr(ppb, b);
494 w_ctr(ppb, 0x0c);
496 w_ctr(ppb, 0x0d);
498 w_ctr(ppb, 0x0c);
500 w_dtr(ppb, 0xff);
529 unsigned short ppb = dev->base;
531 imm_cpp(ppb, 0xe0); /* Select device 0 in compatible mode */
532 imm_cpp(ppb, 0x30); /* Disconnect all devices */
537 return imm_cpp(ppb, 0x28); /* Select device 0 in EPP mode */
538 return imm_cpp(ppb, 0xe0); /* Select device 0 in compatible mode */
549 unsigned short ppb = dev->base;
555 w_ctr(ppb, 0xc);
560 } while ((r_str(ppb) & 0x08) && (k));
568 w_ctr(ppb, 0x4);
569 w_dtr(ppb, 0x80 | (1 << target));
575 w_ctr(ppb, 0xc);
576 w_ctr(ppb, 0xd);
586 while (!(r_str(ppb) & 0x08) && (k));
591 w_ctr(ppb, 0xc);
634 unsigned short ppb = dev->base;
648 w_ctr(ppb, 0x0c);
649 r = (r_str(ppb) & 0xb8);
711 w_ctr(ppb, 0x0c);
712 r = (r_str(ppb) & 0xb8);
790 unsigned short ppb = dev->base;
826 w_ctr(ppb, 0x0c);
827 if (!(r_str(ppb) & 0x80))
857 w_ctr(ppb, 0x0c);
858 if (!(r_str(ppb) & 0x80))
862 x = (r_str(ppb) & 0xb8);
874 w_ctr(ppb, 0x0c);
875 if (!(r_str(ppb) & 0x80))
891 w_ctr(ppb, 0x4);
892 w_ctr(ppb, 0xc);
893 w_ctr(ppb, 0xe);
894 w_ctr(ppb, 0x4);
915 w_ctr(ppb, 0x4);
916 w_ctr(ppb, 0xc);
917 w_ctr(ppb, 0xe);
918 w_ctr(ppb, 0x4);
1026 int loop, old_mode, status, k, ppb = dev->base;
1032 if ((ppb & 0x0007) == 0x0000)
1047 w_ctr(ppb, 0x0c);
1065 w_ctr(ppb, 0x0c);
1069 l = r_str(ppb);
1094 ppb, loop, IMM_MODE_STRING[dev->mode]);
1147 int modes, ppb;
1188 ppb = dev->base = dev->dev->port->base;
1190 w_ctr(ppb, 0x0c);