aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/kl5kusb105.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/usb/serial/kl5kusb105.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/usb/serial/kl5kusb105.h')
-rw-r--r--drivers/usb/serial/kl5kusb105.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/drivers/usb/serial/kl5kusb105.h b/drivers/usb/serial/kl5kusb105.h
new file mode 100644
index 000000000000..1231d9e78398
--- /dev/null
+++ b/drivers/usb/serial/kl5kusb105.h
@@ -0,0 +1,69 @@
1/*
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 {
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 */
30};
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
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 */
61
62//#define KL5KUSB105A_LE
63//#define KL5KUSB105A_RTS
64//#define KL5KUSB105A_ST
65//#define KL5KUSB105A_SR
66//#define KL5KUSB105A_RI /* Ring Indicator */
67
68/* vim: set ts=8 sts=8: */
69