Lines Matching +full:op +full:- +full:mode
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * (c) 1996-1998 Grant R. Guenther <[email protected]>
5 * on20.c is a low-level protocol driver for the
18 #define op(f) \ macro
33 * cont = 0 - access the IDE register file
34 * cont = 1 - access the IDE command set
43 op(1); vl(r); op(0); in on20_read_regr()
45 switch (pi->mode) { in on20_read_regr()
57 return -1; in on20_read_regr()
64 op(1); vl(r); in on20_write_regr()
65 op(0); vl(val); in on20_write_regr()
66 op(0); vl(val); in on20_write_regr()
71 pi->saved_r0 = r0(); in on20_connect()
72 pi->saved_r2 = r2(); in on20_connect()
75 if (pi->mode) { in on20_connect()
76 op(2); vl(8); op(2); vl(9); in on20_connect()
78 op(2); vl(0); op(2); vl(8); in on20_connect()
85 w0(pi->saved_r0); in on20_disconnect()
86 w2(pi->saved_r2); in on20_disconnect()
93 op(1); vl(1); op(0); in on20_read_block()
96 if (pi->mode) { in on20_read_block()
111 op(1); vl(1); op(0); in on20_write_block()
121 char *mode_string[2] = { "4-bit", "8-bit" }; in on20_log_adapter()
123 dev_info(&pi->dev, in on20_log_adapter()
124 "OnSpec 90c20 at 0x%x, mode %d (%s), delay %d\n", in on20_log_adapter()
125 pi->port, pi->mode, mode_string[pi->mode], pi->delay); in on20_log_adapter()