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.

109 lines
2.5 KiB

  1. /************************************************************************
  2. moxacfg.h
  3. -- Configuration struct
  4. History: Date Author Comment
  5. 8/14/00 Casper Wrote it.
  6. *************************************************************************/
  7. #ifndef _MOXACFG_H
  8. #define _MOXACFG_H
  9. #include "mxdef.h"
  10. #ifndef EXPORT
  11. #define EXPORT __declspec(dllexport)
  12. #endif
  13. struct PciInfo {
  14. WORD DevId;
  15. WORD BusNum;
  16. WORD DevNum;
  17. char RegKey[MAX_PATH];
  18. };
  19. struct MoxaOneCfg{
  20. WORD BoardType;
  21. int Irq;
  22. int BusType;
  23. /* Intellio */
  24. WORD PciIrqAck;
  25. DWORD MemBank;
  26. /* Smartio/Industio */
  27. WORD IOaddr[CARD_MAXPORTS_DUMB];
  28. WORD Vector;
  29. int ComNo[CARD_MAXPORTS_INTE];
  30. int NPort;
  31. /* Intellio */
  32. int DisableFiFo[CARD_MAXPORTS_INTE];
  33. int NormalTxMode[CARD_MAXPORTS_INTE];
  34. /* Smartio/Industio */
  35. int FiFo[CARD_MAXPORTS_DUMB];
  36. int TxFiFo[CARD_MAXPORTS_DUMB];
  37. DWORD polling[CARD_MAXPORTS_INTE];
  38. BOOL isext;
  39. struct PciInfo Pci;
  40. };
  41. struct MoxaConfig {
  42. int OemID; /* not used */
  43. int NoBoards;
  44. struct MoxaOneCfg Cfg[MAXCARD];
  45. };
  46. typedef struct MoxaConfig far * LPMoxaConfig;
  47. typedef struct MoxaOneCfg far * LPMoxaOneCfg;
  48. /* Smartio/Industio */
  49. #define RX_FIFO_1 0
  50. #define RX_FIFO_4 1
  51. #define RX_FIFO_8 2
  52. #define RX_FIFO_14 3
  53. #define TX_FIFO_1 0
  54. #define TX_FIFO_2 1
  55. #define TX_FIFO_3 2
  56. #define TX_FIFO_4 3
  57. #define TX_FIFO_5 4
  58. #define TX_FIFO_6 5
  59. #define TX_FIFO_7 6
  60. #define TX_FIFO_8 7
  61. #define TX_FIFO_9 8
  62. #define TX_FIFO_10 9
  63. #define TX_FIFO_11 10
  64. #define TX_FIFO_12 11
  65. #define TX_FIFO_13 12
  66. #define TX_FIFO_14 13
  67. #define TX_FIFO_15 14
  68. #define TX_FIFO_16 15
  69. #define DEFFIFO RX_FIFO_14
  70. #define DEFTXFIFO TX_FIFO_16
  71. #define DEFPOLL 0/*val(ms), not idx */
  72. /* -- */
  73. /* Intellio */
  74. #define DISABLE_FIFO 1
  75. #define ENABLE_FIFO 0
  76. #define NORMAL_TXFIFO 1
  77. #define FAST_TXFIFO 0
  78. #define DEF_ISFIFO ENABLE_FIFO
  79. #define DEF_TXFIFO FAST_TXFIFO
  80. /* -- */
  81. #endif