Lines Matching +full:op +full:- +full:mode
2 on20.c (c) 1996-8 Grant R. Guenther <grant@torque.net>
5 on20.c is a low-level protocol driver for the
27 #define op(f) w2(4);w0(f);w2(5);w2(0xd);w2(5);w2(0xd);w2(5);w2(4); macro
32 /* cont = 0 - access the IDE register file
33 cont = 1 - access the IDE command set
42 op(1); vl(r); op(0); in on20_read_regr()
44 switch (pi->mode) { in on20_read_regr()
56 return -1; in on20_read_regr()
65 op(1); vl(r); in on20_write_regr()
66 op(0); vl(val); in on20_write_regr()
67 op(0); vl(val); in on20_write_regr()
72 { pi->saved_r0 = r0(); in on20_connect()
73 pi->saved_r2 = r2(); in on20_connect()
76 if (pi->mode) { op(2); vl(8); op(2); vl(9); } in on20_connect()
77 else { op(2); vl(0); op(2); vl(8); } in on20_connect()
83 w0(pi->saved_r0); in on20_disconnect()
84 w2(pi->saved_r2); in on20_disconnect()
91 op(1); vl(1); op(0); in on20_read_block()
94 if (pi->mode) { in on20_read_block()
108 op(1); vl(1); op(0); in on20_write_block()
116 { char *mode_string[2] = {"4-bit","8-bit"}; in on20_log_adapter()
119 pi->device,ON20_VERSION,pi->port); in on20_log_adapter()
120 printk("mode %d (%s), delay %d\n",pi->mode, in on20_log_adapter()
121 mode_string[pi->mode],pi->delay); in on20_log_adapter()