Lines Matching +full:0 +full:xa4
33 w2(4); w0(0xff); w0(0xff); w0(0x73); w0(0x73); \
34 w0(0xc9); w0(0xc9); w0(0x26); \
35 w0(0x26); w0(x); w0(x); \
36 } while (0)
38 #define j44(l, h) (((l >> 4) & 0x0f) | (h & 0xf0))
41 * cont = 0 - access the IDE register file
44 static int cont_map[2] = { 0x08, 0x10 };
74 case 0: in friq_read_block_int()
76 for (k = 0; k < count; k++) { in friq_read_block_int()
85 CMD(regr + 0xc0); in friq_read_block_int()
86 w0(0xff); in friq_read_block_int()
87 for (k = 0; k < count; k++) { in friq_read_block_int()
88 w2(0xa4 + ph); in friq_read_block_int()
92 w2(0xac); w2(0xa4); w2(4); in friq_read_block_int()
95 CMD(regr + 0x80); in friq_read_block_int()
96 for (k = 0; k < count - 2; k++) in friq_read_block_int()
98 w2(0xac); w2(0xa4); in friq_read_block_int()
104 CMD(regr + 0x80); in friq_read_block_int()
105 for (k = 0; k < count / 2 - 1; k++) in friq_read_block_int()
107 w2(0xac); w2(0xa4); in friq_read_block_int()
113 CMD(regr + 0x80); in friq_read_block_int()
114 for (k = 0; k < count / 4 - 1; k++) in friq_read_block_int()
118 w2(0xac); w2(0xa4); in friq_read_block_int()
128 friq_read_block_int(pi, buf, count, 0x08); in friq_read_block()
136 case 0: in friq_write_block()
139 for (k = 0; k < count; k++) { in friq_write_block()
146 CMD(0xc8); w2(5); in friq_write_block()
147 for (k = 0; k < count; k++) in friq_write_block()
152 CMD(0xc8); w2(5); in friq_write_block()
153 for (k = 0; k < count / 2; k++) in friq_write_block()
158 CMD(0xc8); w2(5); in friq_write_block()
159 for (k = 0; k < count / 4; k++) in friq_write_block()
175 CMD(0x20); in friq_disconnect()
183 int e[2] = { 0, 0 }; in friq_test_proto()
187 w0(0xff); udelay(20); CMD(0x3d); /* turn the power on */ in friq_test_proto()
192 for (j = 0; j < 2; j++) { in friq_test_proto()
193 friq_write_regr(pi, 0, 6, 0xa0 + j * 0x10); in friq_test_proto()
194 for (k = 0; k < 256; k++) { in friq_test_proto()
195 friq_write_regr(pi, 0, 2, k ^ 0xaa); in friq_test_proto()
196 friq_write_regr(pi, 0, 3, k ^ 0x55); in friq_test_proto()
197 if (friq_read_regr(pi, 0, 2) != (k ^ 0xaa)) in friq_test_proto()
204 friq_read_block_int(pi, scratch, 512, 0x10); in friq_test_proto()
205 r = 0; in friq_test_proto()
206 for (k = 0; k < 128; k++) { in friq_test_proto()
213 "friq: port 0x%x, mode %d, test=(%d,%d,%d)\n", in friq_test_proto()
214 pi->port, pi->mode, e[0], e[1], r); in friq_test_proto()
216 return r || (e[0] && e[1]); in friq_test_proto()
224 "Freecom IQ ASIC-2 adapter at 0x%x, mode %d (%s), delay %d\n", in friq_log_adapter()
229 CMD(0x9e); /* disable sleep timer */ in friq_log_adapter()
237 CMD(0x1d); CMD(0x1e); in friq_release_proto()
239 pi->private = 0; in friq_release_proto()