blob: 22a90badc86b4365ec8f9d8b6dfed87ea183cdcc [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Definitions for the KLSI KL5KUSB105 serial port adapter
3 */
4
5/* vendor/product pairs that are known to contain this chipset */
6#define PALMCONNECT_VID 0x0830
7#define PALMCONNECT_PID 0x0080
8
9#define KLSI_VID 0x05e9
10#define KLSI_KL5KUSB105D_PID 0x00c0
11
12/* Vendor commands: */
13
14
15/* port table -- the chip supports up to 4 channels */
16
17/* baud rates */
18
19enum {
Greg Kroah-Hartman932d22c2010-05-17 10:33:41 -070020 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 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070030};
31
32/* data bits */
33#define kl5kusb105a_dtb_7 7
34#define kl5kusb105a_dtb_8 8
35
36
37
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
45
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 ...
51 */
52#define KL5KUSB105A_DSR ((1<<4) | (1<<5))
53#define KL5KUSB105A_CTS ((1<<5) | (1<<4))
54
55#define KL5KUSB105A_WANTS_TO_SEND 0x30
Greg Kroah-Hartman932d22c2010-05-17 10:33:41 -070056#if 0
57#define KL5KUSB105A_DTR /* Data Terminal Ready */
58#define KL5KUSB105A_CTS /* Clear To Send */
59#define KL5KUSB105A_CD /* Carrier Detect */
60#define KL5KUSB105A_DSR /* Data Set Ready */
61#define KL5KUSB105A_RxD /* Receive pin */
Linus Torvalds1da177e2005-04-16 15:20:36 -070062
Greg Kroah-Hartman932d22c2010-05-17 10:33:41 -070063#define KL5KUSB105A_LE
64#define KL5KUSB105A_RTS
65#define KL5KUSB105A_ST
66#define KL5KUSB105A_SR
67#define KL5KUSB105A_RI /* Ring Indicator */
68#endif