Lines Matching +full:a +full:- +full:9
5 ktti.c is a low-level protocol driver for the KT Technology
7 portable hard-drives. As far as I can tell, this device
8 supports 4-bit mode _only_.
24 #define j44(a,b) (((a>>4)&0x0f)|(b&0xf0)) argument
26 /* cont = 0 - access the IDE register file
27 cont = 1 - access the IDE command set
44 { int a, b, r; in ktti_read_regr() local
48 w0(r); w2(0xb); w2(0xa); w2(9); w2(0xc); w2(9); in ktti_read_regr()
49 a = r1(); w2(0xc); b = r1(); w2(9); w2(0xc); w2(9); in ktti_read_regr()
50 return j44(a,b); in ktti_read_regr()
56 { int k, a, b; in ktti_read_block() local
59 w0(0x10); w2(0xb); w2(0xa); w2(9); w2(0xc); w2(9); in ktti_read_block()
60 a = r1(); w2(0xc); b = r1(); w2(9); in ktti_read_block()
61 buf[2*k] = j44(a,b); in ktti_read_block()
62 a = r1(); w2(0xc); b = r1(); w2(9); in ktti_read_block()
63 buf[2*k+1] = j44(a,b); in ktti_read_block()
81 { pi->saved_r0 = r0(); in ktti_connect()
82 pi->saved_r2 = r2(); in ktti_connect()
89 w0(pi->saved_r0); in ktti_disconnect()
90 w2(pi->saved_r2); in ktti_disconnect()
96 pi->device,KTTI_VERSION,pi->port,pi->delay); in ktti_log_adapter()