kl5kusb105.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * Definitions for the KLSI KL5KUSB105 serial port adapter
  3. */
  4. /* vendor/product pairs that are known to contain this chipset */
  5. #define PALMCONNECT_VID 0x0830
  6. #define PALMCONNECT_PID 0x0080
  7. #define KLSI_VID 0x05e9
  8. #define KLSI_KL5KUSB105D_PID 0x00c0
  9. /* Vendor commands: */
  10. /* port table -- the chip supports up to 4 channels */
  11. /* baud rates */
  12. enum {
  13. kl5kusb105a_sio_b115200 = 0,
  14. kl5kusb105a_sio_b57600 = 1,
  15. kl5kusb105a_sio_b38400 = 2,
  16. kl5kusb105a_sio_b19200 = 4,
  17. kl5kusb105a_sio_b14400 = 5,
  18. kl5kusb105a_sio_b9600 = 6,
  19. kl5kusb105a_sio_b4800 = 8, /* unchecked */
  20. kl5kusb105a_sio_b2400 = 9, /* unchecked */
  21. kl5kusb105a_sio_b1200 = 0xa, /* unchecked */
  22. kl5kusb105a_sio_b600 = 0xb /* unchecked */
  23. };
  24. /* data bits */
  25. #define kl5kusb105a_dtb_7 7
  26. #define kl5kusb105a_dtb_8 8
  27. /* requests: */
  28. #define KL5KUSB105A_SIO_SET_DATA 1
  29. #define KL5KUSB105A_SIO_POLL 2
  30. #define KL5KUSB105A_SIO_CONFIGURE 3
  31. /* values used for request KL5KUSB105A_SIO_CONFIGURE */
  32. #define KL5KUSB105A_SIO_CONFIGURE_READ_ON 3
  33. #define KL5KUSB105A_SIO_CONFIGURE_READ_OFF 2
  34. /* Interpretation of modem status lines */
  35. /* These need sorting out by individually connecting pins and checking
  36. * results. FIXME!
  37. * When data is being sent we see 0x30 in the lower byte; this must
  38. * contain DSR and CTS ...
  39. */
  40. #define KL5KUSB105A_DSR ((1<<4) | (1<<5))
  41. #define KL5KUSB105A_CTS ((1<<5) | (1<<4))
  42. #define KL5KUSB105A_WANTS_TO_SEND 0x30
  43. #if 0
  44. #define KL5KUSB105A_DTR /* Data Terminal Ready */
  45. #define KL5KUSB105A_CTS /* Clear To Send */
  46. #define KL5KUSB105A_CD /* Carrier Detect */
  47. #define KL5KUSB105A_DSR /* Data Set Ready */
  48. #define KL5KUSB105A_RxD /* Receive pin */
  49. #define KL5KUSB105A_LE
  50. #define KL5KUSB105A_RTS
  51. #define KL5KUSB105A_ST
  52. #define KL5KUSB105A_SR
  53. #define KL5KUSB105A_RI /* Ring Indicator */
  54. #endif