• Home
  • Raw
  • Download

Lines Matching refs:ppb

181 	unsigned short ppb = dev->base;  in ppa_wait()  local
186 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) { in ppa_wait()
188 r = r_str(ppb); in ppa_wait()
210 static inline void epp_reset(unsigned short ppb) in epp_reset() argument
214 i = r_str(ppb); in epp_reset()
215 w_str(ppb, i); in epp_reset()
216 w_str(ppb, i & 0xfe); in epp_reset()
279 unsigned short ppb = dev->base; in ppa_out() local
291 r = ppa_byte_out(ppb, buffer, len); in ppa_out()
297 epp_reset(ppb); in ppa_out()
298 w_ctr(ppb, 0x4); in ppa_out()
301 outsw(ppb + 4, buffer, len >> 1); in ppa_out()
304 outsl(ppb + 4, buffer, len >> 2); in ppa_out()
307 outsb(ppb + 4, buffer, len); in ppa_out()
308 w_ctr(ppb, 0xc); in ppa_out()
309 r = !(r_str(ppb) & 0x01); in ppa_out()
310 w_ctr(ppb, 0xc); in ppa_out()
324 unsigned short ppb = dev->base; in ppa_in() local
335 r = ppa_nibble_in(ppb, buffer, len); in ppa_in()
336 w_ctr(ppb, 0xc); in ppa_in()
341 w_ctr(ppb, 0x25); in ppa_in()
342 r = ppa_byte_in(ppb, buffer, len); in ppa_in()
343 w_ctr(ppb, 0x4); in ppa_in()
344 w_ctr(ppb, 0xc); in ppa_in()
350 epp_reset(ppb); in ppa_in()
351 w_ctr(ppb, 0x24); in ppa_in()
354 insw(ppb + 4, buffer, len >> 1); in ppa_in()
357 insl(ppb + 4, buffer, len >> 2); in ppa_in()
360 insb(ppb + 4, buffer, len); in ppa_in()
361 w_ctr(ppb, 0x2c); in ppa_in()
362 r = !(r_str(ppb) & 0x01); in ppa_in()
363 w_ctr(ppb, 0x2c); in ppa_in()
376 static inline void ppa_d_pulse(unsigned short ppb, unsigned char b) in ppa_d_pulse() argument
378 w_dtr(ppb, b); in ppa_d_pulse()
379 w_ctr(ppb, 0xc); in ppa_d_pulse()
380 w_ctr(ppb, 0xe); in ppa_d_pulse()
381 w_ctr(ppb, 0xc); in ppa_d_pulse()
382 w_ctr(ppb, 0x4); in ppa_d_pulse()
383 w_ctr(ppb, 0xc); in ppa_d_pulse()
388 unsigned short ppb = dev->base; in ppa_disconnect() local
390 ppa_d_pulse(ppb, 0); in ppa_disconnect()
391 ppa_d_pulse(ppb, 0x3c); in ppa_disconnect()
392 ppa_d_pulse(ppb, 0x20); in ppa_disconnect()
393 ppa_d_pulse(ppb, 0xf); in ppa_disconnect()
396 static inline void ppa_c_pulse(unsigned short ppb, unsigned char b) in ppa_c_pulse() argument
398 w_dtr(ppb, b); in ppa_c_pulse()
399 w_ctr(ppb, 0x4); in ppa_c_pulse()
400 w_ctr(ppb, 0x6); in ppa_c_pulse()
401 w_ctr(ppb, 0x4); in ppa_c_pulse()
402 w_ctr(ppb, 0xc); in ppa_c_pulse()
407 unsigned short ppb = dev->base; in ppa_connect() local
409 ppa_c_pulse(ppb, 0); in ppa_connect()
410 ppa_c_pulse(ppb, 0x3c); in ppa_connect()
411 ppa_c_pulse(ppb, 0x20); in ppa_connect()
413 ppa_c_pulse(ppb, 0xcf); in ppa_connect()
415 ppa_c_pulse(ppb, 0x8f); in ppa_connect()
421 unsigned short ppb = dev->base; in ppa_select() local
431 } while ((r_str(ppb) & 0x40) && (k)); in ppa_select()
435 w_dtr(ppb, (1 << target)); in ppa_select()
436 w_ctr(ppb, 0xe); in ppa_select()
437 w_ctr(ppb, 0xc); in ppa_select()
438 w_dtr(ppb, 0x80); /* This is NOT the initator */ in ppa_select()
439 w_ctr(ppb, 0x8); in ppa_select()
446 while (!(r_str(ppb) & 0x40) && (k)); in ppa_select()
465 unsigned short ppb = dev->base; in ppa_init() local
472 w_ctr(ppb, 0xe); in ppa_init()
473 if ((r_str(ppb) & 0x08) == 0x08) in ppa_init()
476 w_ctr(ppb, 0xc); in ppa_init()
477 if ((r_str(ppb) & 0x08) == 0x00) in ppa_init()
481 ppa_reset_pulse(ppb); in ppa_init()
521 unsigned short ppb = dev->base; in ppa_completion() local
535 r = (r_str(ppb) & 0xf0); in ppa_completion()
565 for (; k && ((r = (r_str(ppb) & 0xf0)) & 0xc0) != 0xc0; in ppa_completion()
599 r = (r_str(ppb) & 0xf0); in ppa_completion()
672 unsigned short ppb = dev->base; in ppa_engine() local
699 w_ctr(ppb, 0xe); in ppa_engine()
700 if ((r_str(ppb) & 0x08) == 0x08) in ppa_engine()
703 w_ctr(ppb, 0xc); in ppa_engine()
704 if ((r_str(ppb) & 0x08) == 0x00) in ppa_engine()
728 w_ctr(ppb, 0x0c); in ppa_engine()
729 if (!(r_str(ppb) & 0x80)) in ppa_engine()
750 w_ctr(ppb, 0x0c); in ppa_engine()
751 if (!(r_str(ppb) & 0x80)) in ppa_engine()
881 int loop, old_mode, status, k, ppb = dev->base; in device_check() local
887 if ((ppb & 0x0007) == 0x0000) in device_check()
902 w_ctr(ppb, 0x0c); in device_check()
909 w_dtr(ppb, 0x40); in device_check()
910 w_ctr(ppb, 0x08); in device_check()
912 w_ctr(ppb, 0x0c); in device_check()
922 w_ctr(ppb, 0x0c); in device_check()
925 l = r_str(ppb); in device_check()
935 ppa_reset_pulse(ppb); in device_check()
949 ppa_reset_pulse(ppb); in device_check()
996 int modes, ppb, ppb_hi; in __ppa_attach() local
1031 ppb = dev->base = dev->dev->port->base; in __ppa_attach()
1033 w_ctr(ppb, 0x0c); in __ppa_attach()