Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.0 KiB

  1. /**************************************************************************************************************************
  2. * SETTINGS.C SigmaTel STIR4200 baud rate information table
  3. **************************************************************************************************************************
  4. * (C) Unpublished Copyright of Sigmatel, Inc. All Rights Reserved.
  5. *
  6. *
  7. * Created: 04/06/2000
  8. * Version 0.9
  9. * Edited: 04/27/2000
  10. * Version 0.92
  11. * Edited: 11/15/2000
  12. * Version 1.12
  13. *
  14. *
  15. **************************************************************************************************************************/
  16. #define DOBREAKS // enable debug breaks
  17. #include <ndis.h>
  18. #include <ntddndis.h> // defines OID's
  19. #include <usbdi.h>
  20. #include <usbdlib.h>
  21. #include "debug.h"
  22. #include "ircommon.h"
  23. #include "irndis.h"
  24. BAUDRATE_INFO supportedBaudRateTable[NUM_BAUDRATES] = {
  25. {
  26. BAUDRATE_2400,
  27. SPEED_2400,
  28. IR_MODE_SIR,
  29. NDIS_IRDA_SPEED_2400,
  30. 0xDF
  31. },
  32. {
  33. BAUDRATE_9600,
  34. SPEED_9600,
  35. IR_MODE_SIR,
  36. NDIS_IRDA_SPEED_9600,
  37. 0x77
  38. },
  39. {
  40. BAUDRATE_19200,
  41. SPEED_19200,
  42. IR_MODE_SIR,
  43. NDIS_IRDA_SPEED_19200,
  44. 0x3B
  45. },
  46. {
  47. BAUDRATE_38400,
  48. SPEED_38400,
  49. IR_MODE_SIR,
  50. NDIS_IRDA_SPEED_38400,
  51. 0x1D
  52. },
  53. {
  54. BAUDRATE_57600,
  55. SPEED_57600,
  56. IR_MODE_SIR,
  57. NDIS_IRDA_SPEED_57600,
  58. 0x13
  59. },
  60. {
  61. BAUDRATE_115200,
  62. SPEED_115200,
  63. IR_MODE_SIR,
  64. NDIS_IRDA_SPEED_115200,
  65. 0x09
  66. },
  67. #if !defined(WORKAROUND_BROKEN_MIR)
  68. {
  69. BAUDRATE_576000,
  70. SPEED_576000,
  71. IR_MODE_MIR,
  72. NDIS_IRDA_SPEED_576K,
  73. 0x15
  74. },
  75. {
  76. BAUDRATE_1152000,
  77. SPEED_1152000,
  78. IR_MODE_MIR,
  79. NDIS_IRDA_SPEED_1152K,
  80. 0x01
  81. },
  82. #endif
  83. {
  84. BAUDRATE_4000000,
  85. SPEED_4000000,
  86. IR_MODE_FIR,
  87. NDIS_IRDA_SPEED_4M,
  88. 0x02
  89. }
  90. };