• Home
  • Raw
  • Download

Lines Matching refs:ppb

176 	unsigned short ppb = dev->base;  in imm_wait()  local
179 w_ctr(ppb, 0x0c); in imm_wait()
183 r = r_str(ppb); in imm_wait()
208 w_ctr(ppb, 0x04); in imm_wait()
269 static inline void epp_reset(unsigned short ppb) in epp_reset() argument
273 i = r_str(ppb); in epp_reset()
274 w_str(ppb, i); in epp_reset()
275 w_str(ppb, i & 0xfe); in epp_reset()
350 unsigned short ppb = dev->base; in imm_out() local
367 epp_reset(ppb); in imm_out()
368 w_ctr(ppb, 0x4); in imm_out()
371 outsw(ppb + 4, buffer, len >> 1); in imm_out()
374 outsl(ppb + 4, buffer, len >> 2); in imm_out()
377 outsb(ppb + 4, buffer, len); in imm_out()
378 w_ctr(ppb, 0xc); in imm_out()
379 r = !(r_str(ppb) & 0x01); in imm_out()
380 w_ctr(ppb, 0xc); in imm_out()
387 r = imm_byte_out(ppb, buffer, len); in imm_out()
399 unsigned short ppb = dev->base; in imm_in() local
414 r = imm_nibble_in(ppb, buffer, len); in imm_in()
415 w_ctr(ppb, 0xc); in imm_in()
420 r = imm_byte_in(ppb, buffer, len); in imm_in()
421 w_ctr(ppb, 0xc); in imm_in()
427 epp_reset(ppb); in imm_in()
428 w_ctr(ppb, 0x24); in imm_in()
431 insw(ppb + 4, buffer, len >> 1); in imm_in()
434 insl(ppb + 4, buffer, len >> 2); in imm_in()
437 insb(ppb + 4, buffer, len); in imm_in()
438 w_ctr(ppb, 0x2c); in imm_in()
439 r = !(r_str(ppb) & 0x01); in imm_in()
440 w_ctr(ppb, 0x2c); in imm_in()
452 static int imm_cpp(unsigned short ppb, unsigned char b) in imm_cpp() argument
460 w_ctr(ppb, 0x0c); in imm_cpp()
462 w_dtr(ppb, 0xaa); in imm_cpp()
464 w_dtr(ppb, 0x55); in imm_cpp()
466 w_dtr(ppb, 0x00); in imm_cpp()
468 w_dtr(ppb, 0xff); in imm_cpp()
470 s1 = r_str(ppb) & 0xb8; in imm_cpp()
471 w_dtr(ppb, 0x87); in imm_cpp()
473 s2 = r_str(ppb) & 0xb8; in imm_cpp()
474 w_dtr(ppb, 0x78); in imm_cpp()
476 s3 = r_str(ppb) & 0x38; in imm_cpp()
487 w_dtr(ppb, b); in imm_cpp()
489 w_ctr(ppb, 0x0c); in imm_cpp()
491 w_ctr(ppb, 0x0d); in imm_cpp()
493 w_ctr(ppb, 0x0c); in imm_cpp()
495 w_dtr(ppb, 0xff); in imm_cpp()
524 unsigned short ppb = dev->base; in imm_connect() local
526 imm_cpp(ppb, 0xe0); /* Select device 0 in compatible mode */ in imm_connect()
527 imm_cpp(ppb, 0x30); /* Disconnect all devices */ in imm_connect()
532 return imm_cpp(ppb, 0x28); /* Select device 0 in EPP mode */ in imm_connect()
533 return imm_cpp(ppb, 0xe0); /* Select device 0 in compatible mode */ in imm_connect()
544 unsigned short ppb = dev->base; in imm_select() local
550 w_ctr(ppb, 0xc); in imm_select()
555 } while ((r_str(ppb) & 0x08) && (k)); in imm_select()
563 w_ctr(ppb, 0x4); in imm_select()
564 w_dtr(ppb, 0x80 | (1 << target)); in imm_select()
570 w_ctr(ppb, 0xc); in imm_select()
571 w_ctr(ppb, 0xd); in imm_select()
581 while (!(r_str(ppb) & 0x08) && (k)); in imm_select()
586 w_ctr(ppb, 0xc); in imm_select()
629 unsigned short ppb = dev->base; in imm_completion() local
643 w_ctr(ppb, 0x0c); in imm_completion()
644 r = (r_str(ppb) & 0xb8); in imm_completion()
704 w_ctr(ppb, 0x0c); in imm_completion()
705 r = (r_str(ppb) & 0xb8); in imm_completion()
779 unsigned short ppb = dev->base; in imm_engine() local
815 w_ctr(ppb, 0x0c); in imm_engine()
816 if (!(r_str(ppb) & 0x80)) in imm_engine()
842 w_ctr(ppb, 0x0c); in imm_engine()
843 if (!(r_str(ppb) & 0x80)) in imm_engine()
847 x = (r_str(ppb) & 0xb8); in imm_engine()
859 w_ctr(ppb, 0x0c); in imm_engine()
860 if (!(r_str(ppb) & 0x80)) in imm_engine()
876 w_ctr(ppb, 0x4); in imm_engine()
877 w_ctr(ppb, 0xc); in imm_engine()
878 w_ctr(ppb, 0xe); in imm_engine()
879 w_ctr(ppb, 0x4); in imm_engine()
900 w_ctr(ppb, 0x4); in imm_engine()
901 w_ctr(ppb, 0xc); in imm_engine()
902 w_ctr(ppb, 0xe); in imm_engine()
903 w_ctr(ppb, 0x4); in imm_engine()
1013 int loop, old_mode, status, k, ppb = dev->base; in device_check() local
1019 if ((ppb & 0x0007) == 0x0000) in device_check()
1034 w_ctr(ppb, 0x0c); in device_check()
1052 w_ctr(ppb, 0x0c); in device_check()
1056 l = r_str(ppb); in device_check()
1081 ppb, loop, IMM_MODE_STRING[dev->mode]); in device_check()
1156 int modes, ppb; in __imm_attach() local
1203 ppb = dev->base = dev->dev->port->base; in __imm_attach()
1205 w_ctr(ppb, 0x0c); in __imm_attach()