prolific.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. enum {
  10. /* flavours of the device */
  11. TypeH,
  12. TypeHX,
  13. TypeUnk,
  14. RevH = 0x0202,
  15. RevX = 0x0300,
  16. RevHX = 0x0400,
  17. Rev1 = 0x0001,
  18. /* usbcmd parameters */
  19. SetLineReq = 0x20,
  20. SetCtlReq = 0x22,
  21. BreakReq = 0x23,
  22. BreakOn = 0xffff,
  23. BreakOff = 0x0000,
  24. GetLineReq = 0x21,
  25. VendorWriteReq = 0x01, /* BUG: is this a standard request? */
  26. VendorReadReq = 0x01,
  27. ParamReqSz = 7,
  28. VendorReqSz = 10,
  29. /* status read from interrupt endpoint */
  30. DcdStatus = 0x01,
  31. DsrStatus = 0x02,
  32. BreakerrStatus = 0x04,
  33. RingStatus = 0x08,
  34. FrerrStatus = 0x10,
  35. ParerrStatus = 0x20,
  36. OvererrStatus = 0x40,
  37. CtsStatus = 0x80,
  38. DcrGet = 0x80,
  39. DcrSet = 0x00,
  40. Dcr0Idx = 0x00,
  41. Dcr0Init = 0x0001,
  42. Dcr0HwFcH = 0x0040,
  43. Dcr0HwFcX = 0x0060,
  44. Dcr1Idx = 0x01,
  45. Dcr1Init = 0x0000,
  46. Dcr1InitH = 0x0080,
  47. Dcr1InitX = 0x0000,
  48. Dcr2Idx = 0x02,
  49. Dcr2InitH = 0x0024,
  50. Dcr2InitX = 0x0044,
  51. PipeDSRst = 0x08,
  52. PipeUSRst = 0x09,
  53. };
  54. enum {
  55. PL2303Vid = 0x067b,
  56. PL2303Did = 0x2303,
  57. PL2303DidRSAQ2 = 0x04bb,
  58. PL2303DidDCU11 = 0x1234,
  59. PL2303DidPHAROS = 0xaaa0,
  60. PL2303DidRSAQ3 = 0xaaa2,
  61. PL2303DidALDIGA = 0x0611,
  62. PL2303DidMMX = 0x0612,
  63. PL2303DidGPRS = 0x0609,
  64. ATENVid = 0x0557,
  65. ATENVid2 = 0x0547,
  66. ATENDid = 0x2008,
  67. IODATAVid = 0x04bb,
  68. IODATADid = 0x0a03,
  69. IODATADidRSAQ5 = 0x0a0e,
  70. ELCOMVid = 0x056e,
  71. ELCOMDid = 0x5003,
  72. ELCOMDidUCSGT = 0x5004,
  73. ITEGNOVid = 0x0eba,
  74. ITEGNODid = 0x1080,
  75. ITEGNODid2080 = 0x2080,
  76. MA620Vid = 0x0df7,
  77. MA620Did = 0x0620,
  78. RATOCVid = 0x0584,
  79. RATOCDid = 0xb000,
  80. TRIPPVid = 0x2478,
  81. TRIPPDid = 0x2008,
  82. RADIOSHACKVid = 0x1453,
  83. RADIOSHACKDid = 0x4026,
  84. DCU10Vid = 0x0731,
  85. DCU10Did = 0x0528,
  86. SITECOMVid = 0x6189,
  87. SITECOMDid = 0x2068,
  88. /* Alcatel OT535/735 USB cable */
  89. ALCATELVid = 0x11f7,
  90. ALCATELDid = 0x02df,
  91. /* Samsung I330 phone cradle */
  92. SAMSUNGVid = 0x04e8,
  93. SAMSUNGDid = 0x8001,
  94. SIEMENSVid = 0x11f5,
  95. SIEMENSDidSX1 = 0x0001,
  96. SIEMENSDidX65 = 0x0003,
  97. SIEMENSDidX75 = 0x0004,
  98. SIEMENSDidEF81 = 0x0005,
  99. SYNTECHVid = 0x0745,
  100. SYNTECHDid = 0x0001,
  101. /* Nokia CA-42 Cable */
  102. NOKIACA42Vid = 0x078b,
  103. NOKIACA42Did = 0x1234,
  104. /* CA-42 CLONE Cable www.ca-42.com chipset: Prolific Technology Inc */
  105. CA42CA42Vid = 0x10b5,
  106. CA42CA42Did = 0xac70,
  107. SAGEMVid = 0x079b,
  108. SAGEMDid = 0x0027,
  109. /* Leadtek GPS 9531 (ID 0413:2101) */
  110. LEADTEKVid = 0x0413,
  111. LEADTEK9531Did = 0x2101,
  112. /* USB GSM cable from Speed Dragon Multimedia, Ltd */
  113. SPEEDDRAGONVid = 0x0e55,
  114. SPEEDDRAGONDid = 0x110b,
  115. /* DATAPILOT Universal-2 Phone Cable */
  116. BELKINVid = 0x050d,
  117. BELKINDid = 0x0257,
  118. /* Belkin "F5U257" Serial Adapter */
  119. DATAPILOTU2Vid = 0x0731,
  120. DATAPILOTU2Did = 0x2003,
  121. ALCORVid = 0x058F,
  122. ALCORDid = 0x9720,
  123. /* Willcom WS002IN Data Driver (by NetIndex Inc.) */
  124. WS002INVid = 0x11f6,
  125. WS002INDid = 0x2001,
  126. /* Corega CG-USBRS232R Serial Adapter */
  127. COREGAVid = 0x07aa,
  128. COREGADid = 0x002a,
  129. /* Y.C. Cable U.S.A., Inc - USB to RS-232 */
  130. YCCABLEVid = 0x05ad,
  131. YCCABLEDid = 0x0fba,
  132. /* "Superial" USB - Serial */
  133. SUPERIALVid = 0x5372,
  134. SUPERIALDid = 0x2303,
  135. /* Hewlett-Packard LD220-HP POS Pole Display */
  136. HPVid = 0x03f0,
  137. HPLD220Did = 0x3524,
  138. };
  139. extern Serialops plops;
  140. int plmatch(char *info);