digiFep1.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:3k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #define CSTART       0x400L
  2. #define CMAX         0x800L
  3. #define ISTART       0x800L
  4. #define IMAX         0xC00L
  5. #define CIN          0xD10L
  6. #define GLOBAL       0xD10L
  7. #define EIN          0xD18L
  8. #define FEPSTAT      0xD20L
  9. #define CHANSTRUCT   0x1000L
  10. #define RXTXBUF      0x4000L
  11. struct global_data 
  12. {
  13. volatile ushort cin;
  14. volatile ushort cout;
  15. volatile ushort cstart;
  16. volatile ushort cmax;
  17. volatile ushort ein;
  18. volatile ushort eout;
  19. volatile ushort istart;
  20. volatile ushort imax;
  21. };
  22. struct board_chan 
  23. {
  24. int filler1; 
  25. int filler2;
  26. volatile ushort tseg;
  27. volatile ushort tin;
  28. volatile ushort tout;
  29. volatile ushort tmax;
  30. volatile ushort rseg;
  31. volatile ushort rin;
  32. volatile ushort rout;
  33. volatile ushort rmax;
  34. volatile ushort tlow;
  35. volatile ushort rlow;
  36. volatile ushort rhigh;
  37. volatile ushort incr;
  38. volatile ushort etime;
  39. volatile ushort edelay;
  40. volatile unchar *dev;
  41. volatile ushort iflag;
  42. volatile ushort oflag;
  43. volatile ushort cflag;
  44. volatile ushort gmask;
  45. volatile ushort col;
  46. volatile ushort delay;
  47. volatile ushort imask;
  48. volatile ushort tflush;
  49. int filler3;
  50. int filler4;
  51. int filler5;
  52. int filler6;
  53. volatile unchar num;
  54. volatile unchar ract;
  55. volatile unchar bstat;
  56. volatile unchar tbusy;
  57. volatile unchar iempty;
  58. volatile unchar ilow;
  59. volatile unchar idata;
  60. volatile unchar eflag;
  61. volatile unchar tflag;
  62. volatile unchar rflag;
  63. volatile unchar xmask;
  64. volatile unchar xval;
  65. volatile unchar mstat;
  66. volatile unchar mchange;
  67. volatile unchar mint;
  68. volatile unchar lstat;
  69. volatile unchar mtran;
  70. volatile unchar orun;
  71. volatile unchar startca;
  72. volatile unchar stopca;
  73. volatile unchar startc;
  74. volatile unchar stopc;
  75. volatile unchar vnext;
  76. volatile unchar hflow;
  77. volatile unchar fillc;
  78. volatile unchar ochar;
  79. volatile unchar omask;
  80. unchar filler7;
  81. unchar filler8[28];
  82. }; 
  83. #define SRXLWATER      0xE0
  84. #define SRXHWATER      0xE1
  85. #define STOUT          0xE2
  86. #define PAUSETX        0xE3
  87. #define RESUMETX       0xE4
  88. #define SAUXONOFFC     0xE6
  89. #define SENDBREAK      0xE8
  90. #define SETMODEM       0xE9
  91. #define SETIFLAGS      0xEA
  92. #define SONOFFC        0xEB
  93. #define STXLWATER      0xEC
  94. #define PAUSERX        0xEE
  95. #define RESUMERX       0xEF
  96. #define SETBUFFER      0xF2
  97. #define SETCOOKED      0xF3
  98. #define SETHFLOW       0xF4
  99. #define SETCTRLFLAGS   0xF5
  100. #define SETVNEXT       0xF6
  101. #define BREAK_IND        0x01
  102. #define LOWTX_IND        0x02
  103. #define EMPTYTX_IND      0x04
  104. #define DATA_IND         0x08
  105. #define MODEMCHG_IND     0x20
  106. #define FEP_HUPCL  0002000
  107. #if 0
  108. #define RTS   0x02
  109. #define CD    0x08
  110. #define DSR   0x10
  111. #define CTS   0x20
  112. #define RI    0x40
  113. #define DTR   0x80
  114. #endif