digiFep1.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. u16 cin;
  14. u16 cout;
  15. u16 cstart;
  16. u16 cmax;
  17. u16 ein;
  18. u16 eout;
  19. u16 istart;
  20. u16 imax;
  21. };
  22. struct board_chan
  23. {
  24. u32 filler1;
  25. u32 filler2;
  26. u16 tseg;
  27. u16 tin;
  28. u16 tout;
  29. u16 tmax;
  30. u16 rseg;
  31. u16 rin;
  32. u16 rout;
  33. u16 rmax;
  34. u16 tlow;
  35. u16 rlow;
  36. u16 rhigh;
  37. u16 incr;
  38. u16 etime;
  39. u16 edelay;
  40. unchar *dev;
  41. u16 iflag;
  42. u16 oflag;
  43. u16 cflag;
  44. u16 gmask;
  45. u16 col;
  46. u16 delay;
  47. u16 imask;
  48. u16 tflush;
  49. u32 filler3;
  50. u32 filler4;
  51. u32 filler5;
  52. u32 filler6;
  53. u8 num;
  54. u8 ract;
  55. u8 bstat;
  56. u8 tbusy;
  57. u8 iempty;
  58. u8 ilow;
  59. u8 idata;
  60. u8 eflag;
  61. u8 tflag;
  62. u8 rflag;
  63. u8 xmask;
  64. u8 xval;
  65. u8 mstat;
  66. u8 mchange;
  67. u8 mint;
  68. u8 lstat;
  69. u8 mtran;
  70. u8 orun;
  71. u8 startca;
  72. u8 stopca;
  73. u8 startc;
  74. u8 stopc;
  75. u8 vnext;
  76. u8 hflow;
  77. u8 fillc;
  78. u8 ochar;
  79. u8 omask;
  80. u8 filler7;
  81. u8 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