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.

101 lines
2.6 KiB

  1. /************************************************************************
  2. strdef.cpp
  3. -- define GUI display string <--> string id conversion array struc
  4. -- for All MOXA board.
  5. History: Date Author Comment
  6. 8/14/00 Casper Wrote it.
  7. *************************************************************************/
  8. #include "stdafx.h"
  9. #include "moxacfg.h"
  10. #include "strdef.h"
  11. LPCSTR Ldir_DiagReg = "Software\\MOXA\\Driver";
  12. LPCSTR Ldir_mxkey = "mxkey";
  13. LPCSTR Ldir_DiagDLL = "DiagDLL";
  14. LPCSTR NoType_Str = "Unknown Board";
  15. struct IRQTABSTRC GIrqTab[IRQCNT] = {
  16. {2, "2 (9)"},
  17. {3, "3"},
  18. {4, "4"},
  19. {5, "5"},
  20. {7, "7"},
  21. {10, "10"},
  22. {11, "11"},
  23. {12, "12"},
  24. {15, "15"},
  25. };
  26. struct PORTSTABSTRC GPortsTab[PORTSCNT] = {
  27. { 4, "4 ports" , 0},
  28. { 8, "8 ports" , I_8PORT},
  29. { 16, "16 ports" , I_16PORT},
  30. { 24, "24 ports" , I_24PORT},
  31. { 32, "32 ports" , I_32PORT}/*,
  32. { 64, "64 ports" , I_64PORT}*/
  33. };
  34. struct MODULETYPESTRC GModuleTypeTab[MODULECNT] = {
  35. { 8, I_8PORT ,"8 ports"},
  36. { 16, I_16PORT ,"16 ports"},
  37. { 24, I_24PORT ,"24 ports"},
  38. { 32, I_32PORT ,"32 ports"}/*,
  39. { 64, I_64PORT ,"64 ports"}*/
  40. };
  41. struct MEMBANKSTRC GMemBankTab[MEMBANKCNT] = {
  42. {0xC8000, "C8000"},
  43. {0xCC000, "CC000"},
  44. {0xD0000, "D0000"},
  45. {0xD4000, "D4000"},
  46. {0xD8000, "D8000"},
  47. {0xDC000, "DC000"}
  48. };
  49. struct FIFOTABSTRC GFifoTab[FIFOCNT] = {
  50. {1, RX_FIFO_1, "1"},
  51. {4, RX_FIFO_4, "4"},
  52. {8, RX_FIFO_8, "8"},
  53. {14, RX_FIFO_14,"14"}
  54. };
  55. struct TXFIFOTABSTRC GTxFifoTab[TXFIFOCNT] = {
  56. {1, TX_FIFO_1, "1"},
  57. {2, TX_FIFO_2, "2"},
  58. {3, TX_FIFO_3, "3"},
  59. {4, TX_FIFO_4, "4"},
  60. {5, TX_FIFO_5, "5"},
  61. {6, TX_FIFO_6, "6"},
  62. {7, TX_FIFO_7, "7"},
  63. {8, TX_FIFO_8, "8"},
  64. {9, TX_FIFO_9, "9"},
  65. {10, TX_FIFO_10, "10"},
  66. {11, TX_FIFO_11, "11"},
  67. {12, TX_FIFO_12, "12"},
  68. {13, TX_FIFO_13, "13"},
  69. {14, TX_FIFO_14, "14"},
  70. {15, TX_FIFO_15, "15"},
  71. {16, TX_FIFO_16, "16"}
  72. };
  73. struct POLLSTRC GPollTab[POLLCNT] = {
  74. { 0, 0 , "Manually"},
  75. { 1, 10, "Every second"},
  76. { 2, 50, "Every 5 seconds"},
  77. { 3,100, "Every 10 seconds"},
  78. { 4,300, "Every 30 seconds"},
  79. { 5,600, "Every minute"}
  80. };
  81. #define MODULE_NUM 5
  82. static LPSTR GModule[PORTSCNT]={
  83. "4 ports", "8 ports", "16 ports", "24 ports", "32 ports"
  84. };