Lines Matching defs:padr
22 writereg(unsigned int padr, signed int addr, u_char off, u_char val) {
23 outb_p(0x1c,padr+2);
24 outb_p(0x14,padr+2);
25 outb_p((addr+off)&0x7f,padr);
26 outb_p(0x16,padr+2);
27 outb_p(val,padr);
28 outb_p(0x17,padr+2);
29 outb_p(0x14,padr+2);
30 outb_p(0x1c,padr+2);
38 readreg(unsigned int padr, signed int addr, u_char off) {
41 outb_p(0x1c,padr+2);
42 outb_p(0x14,padr+2);
43 outb_p((addr+off)|0x80,padr);
44 outb_p(0x16,padr+2);
45 outb_p(0x17,padr+2);
46 n1 = (inb_p(padr+1) >> 3) & 0x17;
47 outb_p(0x16,padr+2);
48 n2 = (inb_p(padr+1) >> 3) & 0x17;
49 outb_p(0x14,padr+2);
50 outb_p(0x1c,padr+2);
55 read_fifo(unsigned int padr, signed int adr, u_char * data, int size)
60 outb_p(0x1c, padr+2);
61 outb_p(0x14, padr+2);
62 outb_p(adr|0x80, padr);
63 outb_p(0x16, padr+2);
65 outb_p(0x17, padr+2);
66 n1 = (inb_p(padr+1) >> 3) & 0x17;
67 outb_p(0x16,padr+2);
68 n2 = (inb_p(padr+1) >> 3) & 0x17;
71 outb_p(0x14,padr+2);
72 outb_p(0x1c,padr+2);
77 write_fifo(unsigned int padr, signed int adr, u_char * data, int size)
80 outb_p(0x1c, padr+2);
81 outb_p(0x14, padr+2);
82 outb_p(adr&0x7f, padr);
84 outb_p(0x16, padr+2);
85 outb_p(*(data++), padr);
86 outb_p(0x17, padr+2);
88 outb_p(0x14,padr+2);
89 outb_p(0x1c,padr+2);