Lines Matching refs:ppb

192 	unsigned short ppb = dev->base;
197 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) {
199 r = r_str(ppb);
221 static inline void epp_reset(unsigned short ppb)
225 i = r_str(ppb);
226 w_str(ppb, i);
227 w_str(ppb, i & 0xfe);
290 unsigned short ppb = dev->base;
302 r = ppa_byte_out(ppb, buffer, len);
308 epp_reset(ppb);
309 w_ctr(ppb, 0x4);
311 outsl(ppb + 4, buffer, len >> 2);
313 outsw(ppb + 4, buffer, len >> 1);
315 outsb(ppb + 4, buffer, len);
316 w_ctr(ppb, 0xc);
317 r = !(r_str(ppb) & 0x01);
318 w_ctr(ppb, 0xc);
332 unsigned short ppb = dev->base;
343 r = ppa_nibble_in(ppb, buffer, len);
344 w_ctr(ppb, 0xc);
349 w_ctr(ppb, 0x25);
350 r = ppa_byte_in(ppb, buffer, len);
351 w_ctr(ppb, 0x4);
352 w_ctr(ppb, 0xc);
358 epp_reset(ppb);
359 w_ctr(ppb, 0x24);
361 insl(ppb + 4, buffer, len >> 2);
363 insw(ppb + 4, buffer, len >> 1);
365 insb(ppb + 4, buffer, len);
366 w_ctr(ppb, 0x2c);
367 r = !(r_str(ppb) & 0x01);
368 w_ctr(ppb, 0x2c);
381 static inline void ppa_d_pulse(unsigned short ppb, unsigned char b)
383 w_dtr(ppb, b);
384 w_ctr(ppb, 0xc);
385 w_ctr(ppb, 0xe);
386 w_ctr(ppb, 0xc);
387 w_ctr(ppb, 0x4);
388 w_ctr(ppb, 0xc);
393 unsigned short ppb = dev->base;
395 ppa_d_pulse(ppb, 0);
396 ppa_d_pulse(ppb, 0x3c);
397 ppa_d_pulse(ppb, 0x20);
398 ppa_d_pulse(ppb, 0xf);
401 static inline void ppa_c_pulse(unsigned short ppb, unsigned char b)
403 w_dtr(ppb, b);
404 w_ctr(ppb, 0x4);
405 w_ctr(ppb, 0x6);
406 w_ctr(ppb, 0x4);
407 w_ctr(ppb, 0xc);
412 unsigned short ppb = dev->base;
414 ppa_c_pulse(ppb, 0);
415 ppa_c_pulse(ppb, 0x3c);
416 ppa_c_pulse(ppb, 0x20);
418 ppa_c_pulse(ppb, 0xcf);
420 ppa_c_pulse(ppb, 0x8f);
426 unsigned short ppb = dev->base;
436 } while ((r_str(ppb) & 0x40) && (k));
440 w_dtr(ppb, (1 << target));
441 w_ctr(ppb, 0xe);
442 w_ctr(ppb, 0xc);
443 w_dtr(ppb, 0x80); /* This is NOT the initator */
444 w_ctr(ppb, 0x8);
451 while (!(r_str(ppb) & 0x40) && (k));
470 unsigned short ppb = dev->base;
498 w_ctr(ppb, 0xe);
499 if ((r_str(ppb) & 0x08) == 0x08)
502 w_ctr(ppb, 0xc);
503 if ((r_str(ppb) & 0x08) == 0x00)
507 ppa_reset_pulse(ppb);
548 unsigned short ppb = dev->base;
562 r = (r_str(ppb) & 0xf0);
592 for (; k && ((r = (r_str(ppb) & 0xf0)) & 0xc0) != 0xc0;
628 r = (r_str(ppb) & 0xf0);
702 unsigned short ppb = dev->base;
729 w_ctr(ppb, 0xe);
730 if ((r_str(ppb) & 0x08) == 0x08)
733 w_ctr(ppb, 0xc);
734 if ((r_str(ppb) & 0x08) == 0x00)
760 w_ctr(ppb, 0x0c);
761 if (!(r_str(ppb) & 0x80))
785 w_ctr(ppb, 0x0c);
786 if (!(r_str(ppb) & 0x80))
912 int loop, old_mode, status, k, ppb = dev->base;
918 if (autodetect && (ppb & 0x0007) == 0x0000)
933 w_ctr(ppb, 0x0c);
940 w_dtr(ppb, 0x40);
941 w_ctr(ppb, 0x08);
943 w_ctr(ppb, 0x0c);
953 w_ctr(ppb, 0x0c);
956 l = r_str(ppb);
966 ppa_reset_pulse(ppb);
980 ppa_reset_pulse(ppb);