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.

93 lines
2.0 KiB

  1. /************************************************************************
  2. strdef.h
  3. -- strdef.cpp include file
  4. History: Date Author Comment
  5. 8/14/00 Casper Wrote it.
  6. *************************************************************************/
  7. #ifndef _STRDEF_H
  8. #define _STRDEF_H
  9. #define TYPESTRLEN 50
  10. #define IRQCNT 9
  11. #define PORTSCNT 5
  12. #define FIFOCNT 4
  13. #define TXFIFOCNT 16
  14. #define MODULECNT 4
  15. #define MEMBANKCNT 6
  16. #define POLLCNT 6
  17. struct PCITABSTRC{
  18. WORD devid;
  19. WORD boardtype;
  20. int portnum;
  21. LPCSTR typestr;
  22. LPCSTR infstr;
  23. };
  24. struct ISATABSTRC{
  25. int mxkey_no;
  26. WORD boardtype;
  27. int asic_id;
  28. int portnum;
  29. LPCSTR typestr;
  30. LPCSTR infstr;
  31. };
  32. struct IRQTABSTRC {
  33. int irq;
  34. LPSTR irq_str;
  35. };
  36. extern struct IRQTABSTRC GIrqTab[IRQCNT];
  37. struct PORTSTABSTRC {
  38. int ports;
  39. LPSTR ports_str;
  40. WORD ports_def;
  41. };
  42. extern struct PORTSTABSTRC GPortsTab[PORTSCNT];
  43. struct MEMBANKSTRC {
  44. ULONG membank;
  45. LPSTR membank_str;
  46. };
  47. extern struct MEMBANKSTRC GMemBankTab[MEMBANKCNT];
  48. struct MODULETYPESTRC{
  49. int ports;
  50. WORD ports_def;
  51. LPSTR ports_str;
  52. };
  53. extern struct MODULETYPESTRC GModuleTypeTab[MODULECNT];
  54. struct FIFOTABSTRC {
  55. int fifo;
  56. int fifoidx;
  57. LPSTR fifo_str;
  58. };
  59. extern struct FIFOTABSTRC GFifoTab[FIFOCNT];
  60. struct TXFIFOTABSTRC {
  61. int txfifo;
  62. int fifoidx;
  63. LPSTR fifo_str;
  64. };
  65. extern struct TXFIFOTABSTRC GTxFifoTab[TXFIFOCNT];
  66. struct POLLSTRC{
  67. int poll_idx;
  68. DWORD poll_val;
  69. LPSTR poll_str;
  70. };
  71. extern struct POLLSTRC GPollTab[POLLCNT];
  72. extern LPCSTR NoType_Str;
  73. extern LPCSTR Ldir_DiagReg;
  74. extern LPCSTR Ldir_mxkey;// = "mxkey";
  75. extern LPCSTR Ldir_DiagDLL;// = "DiagDLL";
  76. #endif