x86: disable BTS ptrace extensions for now
[wrt350n-kernel.git] / drivers / usb / serial / kl5kusb105.h
blob1231d9e78398b1f5da834710153b744453de7e88
1 /*
2 * Definitions for the KLSI KL5KUSB105 serial port adapter
3 */
5 /* vendor/product pairs that are known to contain this chipset */
6 #define PALMCONNECT_VID 0x0830
7 #define PALMCONNECT_PID 0x0080
9 #define KLSI_VID 0x05e9
10 #define KLSI_KL5KUSB105D_PID 0x00c0
12 /* Vendor commands: */
15 /* port table -- the chip supports up to 4 channels */
17 /* baud rates */
19 enum {
20 kl5kusb105a_sio_b115200 = 0,
21 kl5kusb105a_sio_b57600 = 1,
22 kl5kusb105a_sio_b38400 = 2,
23 kl5kusb105a_sio_b19200 = 4,
24 kl5kusb105a_sio_b14400 = 5,
25 kl5kusb105a_sio_b9600 = 6,
26 kl5kusb105a_sio_b4800 = 8, /* unchecked */
27 kl5kusb105a_sio_b2400 = 9, /* unchecked */
28 kl5kusb105a_sio_b1200 = 0xa, /* unchecked */
29 kl5kusb105a_sio_b600 = 0xb /* unchecked */
32 /* data bits */
33 #define kl5kusb105a_dtb_7 7
34 #define kl5kusb105a_dtb_8 8
38 /* requests: */
39 #define KL5KUSB105A_SIO_SET_DATA 1
40 #define KL5KUSB105A_SIO_POLL 2
41 #define KL5KUSB105A_SIO_CONFIGURE 3
42 /* values used for request KL5KUSB105A_SIO_CONFIGURE */
43 #define KL5KUSB105A_SIO_CONFIGURE_READ_ON 3
44 #define KL5KUSB105A_SIO_CONFIGURE_READ_OFF 2
46 /* Interpretation of modem status lines */
47 /* These need sorting out by individually connecting pins and checking
48 * results. FIXME!
49 * When data is being sent we see 0x30 in the lower byte; this must
50 * contain DSR and CTS ...
52 #define KL5KUSB105A_DSR ((1<<4) | (1<<5))
53 #define KL5KUSB105A_CTS ((1<<5) | (1<<4))
55 #define KL5KUSB105A_WANTS_TO_SEND 0x30
56 //#define KL5KUSB105A_DTR /* Data Terminal Ready */
57 //#define KL5KUSB105A_CTS /* Clear To Send */
58 //#define KL5KUSB105A_CD /* Carrier Detect */
59 //#define KL5KUSB105A_DSR /* Data Set Ready */
60 //#define KL5KUSB105A_RxD /* Receive pin */
62 //#define KL5KUSB105A_LE
63 //#define KL5KUSB105A_RTS
64 //#define KL5KUSB105A_ST
65 //#define KL5KUSB105A_SR
66 //#define KL5KUSB105A_RI /* Ring Indicator */
68 /* vim: set ts=8 sts=8: */