• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching refs:ppb

192 	unsigned short ppb = dev->base;
195 w_ctr(ppb, 0x0c);
199 r = r_str(ppb);
224 w_ctr(ppb, 0x04);
285 static inline void epp_reset(unsigned short ppb)
289 i = r_str(ppb);
290 w_str(ppb, i);
291 w_str(ppb, i & 0xfe);
366 unsigned short ppb = dev->base;
383 epp_reset(ppb);
384 w_ctr(ppb, 0x4);
387 outsw(ppb + 4, buffer, len >> 1);
390 outsl(ppb + 4, buffer, len >> 2);
393 outsb(ppb + 4, buffer, len);
394 w_ctr(ppb, 0xc);
395 r = !(r_str(ppb) & 0x01);
396 w_ctr(ppb, 0xc);
403 r = imm_byte_out(ppb, buffer, len);
415 unsigned short ppb = dev->base;
430 r = imm_nibble_in(ppb, buffer, len);
431 w_ctr(ppb, 0xc);
436 r = imm_byte_in(ppb, buffer, len);
437 w_ctr(ppb, 0xc);
443 epp_reset(ppb);
444 w_ctr(ppb, 0x24);
447 insw(ppb + 4, buffer, len >> 1);
450 insl(ppb + 4, buffer, len >> 2);
453 insb(ppb + 4, buffer, len);
454 w_ctr(ppb, 0x2c);
455 r = !(r_str(ppb) & 0x01);
456 w_ctr(ppb, 0x2c);
468 static int imm_cpp(unsigned short ppb, unsigned char b)
476 w_ctr(ppb, 0x0c);
478 w_dtr(ppb, 0xaa);
480 w_dtr(ppb, 0x55);
482 w_dtr(ppb, 0x00);
484 w_dtr(ppb, 0xff);
486 s1 = r_str(ppb) & 0xb8;
487 w_dtr(ppb, 0x87);
489 s2 = r_str(ppb) & 0xb8;
490 w_dtr(ppb, 0x78);
492 s3 = r_str(ppb) & 0x38;
493 w_dtr(ppb, b);
495 w_ctr(ppb, 0x0c);
497 w_ctr(ppb, 0x0d);
499 w_ctr(ppb, 0x0c);
501 w_dtr(ppb, 0xff);
530 unsigned short ppb = dev->base;
532 imm_cpp(ppb, 0xe0); /* Select device 0 in compatible mode */
533 imm_cpp(ppb, 0x30); /* Disconnect all devices */
538 return imm_cpp(ppb, 0x28); /* Select device 0 in EPP mode */
539 return imm_cpp(ppb, 0xe0); /* Select device 0 in compatible mode */
550 unsigned short ppb = dev->base;
556 w_ctr(ppb, 0xc);
561 } while ((r_str(ppb) & 0x08) && (k));
569 w_ctr(ppb, 0x4);
570 w_dtr(ppb, 0x80 | (1 << target));
576 w_ctr(ppb, 0xc);
577 w_ctr(ppb, 0xd);
587 while (!(r_str(ppb) & 0x08) && (k));
592 w_ctr(ppb, 0xc);
635 unsigned short ppb = dev->base;
649 w_ctr(ppb, 0x0c);
650 r = (r_str(ppb) & 0xb8);
710 w_ctr(ppb, 0x0c);
711 r = (r_str(ppb) & 0xb8);
785 unsigned short ppb = dev->base;
821 w_ctr(ppb, 0x0c);
822 if (!(r_str(ppb) & 0x80))
847 w_ctr(ppb, 0x0c);
848 if (!(r_str(ppb) & 0x80))
852 x = (r_str(ppb) & 0xb8);
864 w_ctr(ppb, 0x0c);
865 if (!(r_str(ppb) & 0x80))
881 w_ctr(ppb, 0x4);
882 w_ctr(ppb, 0xc);
883 w_ctr(ppb, 0xe);
884 w_ctr(ppb, 0x4);
905 w_ctr(ppb, 0x4);
906 w_ctr(ppb, 0xc);
907 w_ctr(ppb, 0xe);
908 w_ctr(ppb, 0x4);
1016 int loop, old_mode, status, k, ppb = dev->base;
1022 if ((ppb & 0x0007) == 0x0000)
1037 w_ctr(ppb, 0x0c);
1055 w_ctr(ppb, 0x0c);
1059 l = r_str(ppb);
1084 ppb, loop, IMM_MODE_STRING[dev->mode]);
1137 int modes, ppb;
1177 ppb = dev->base = dev->dev->port->base;
1179 w_ctr(ppb, 0x0c);