Lines Matching +full:4 +full:a
5 * dstr.c is a low-level protocol driver for the DataStor EP2000 parallel
23 * 4 EPP-32
26 #define j44(a, b) (((a >> 3) & 0x07) | ((~a >> 4) & 0x08) | \ argument
29 #define P1 w2(5);w2(0xd);w2(5);w2(4);
30 #define P2 w2(5);w2(7);w2(5);w2(4);
31 #define P3 w2(6);w2(4);w2(6);w2(4);
41 int a, b, r; in dstr_read_regr() local
54 w2(6); a = r1(); w2(4); w2(6); b = r1(); w2(4); in dstr_read_regr()
55 return j44(a, b); in dstr_read_regr()
57 w0(0); w2(0x26); a = r0(); w2(4); in dstr_read_regr()
58 return a; in dstr_read_regr()
61 case 4: in dstr_read_regr()
62 w2(0x24); a = r4(); w2(4); in dstr_read_regr()
63 return a; in dstr_read_regr()
83 w0(val); w2(5); w2(7); w2(5); w2(4); in dstr_write_regr()
87 case 4: in dstr_write_regr()
95 w0(0xff); w2(0xc); w2(4); \
98 w0(x); w2(5); w2(4); \
105 w2(4); CCP(0xe0); w0(0xff); in dstr_connect()
117 int k, a, b; in dstr_read_block() local
129 w2(6); a = r1(); w2(4); in dstr_read_block()
130 w2(6); b = r1(); w2(4); in dstr_read_block()
131 buf[k] = j44(a, b); in dstr_read_block()
141 w2(4); in dstr_read_block()
147 w2(4); in dstr_read_block()
153 w2(4); in dstr_read_block()
155 case 4: in dstr_read_block()
157 for (k = 0; k < count / 4; k++) in dstr_read_block()
159 w2(4); in dstr_read_block()
183 w2(5); w2(4); in dstr_write_block()
197 case 4: in dstr_write_block()
199 for (k = 0; k < count / 4; k++) in dstr_write_block()
209 char *mode_string[5] = { "4-bit", "8-bit", "EPP-8", "EPP-16", "EPP-32" }; in dstr_log_adapter()