Contents of /alx-src/tags/kernel26-2.6.12-alx-r9/drivers/char/digiFep1.h
Parent Directory | Revision Log
Revision 630 -
(show annotations)
(download)
Wed Mar 4 11:03:09 2009 UTC (15 years, 6 months ago) by niro
File MIME type: text/plain
File size: 2664 byte(s)
Wed Mar 4 11:03:09 2009 UTC (15 years, 6 months ago) by niro
File MIME type: text/plain
File size: 2664 byte(s)
Tag kernel26-2.6.12-alx-r9
1 | |
2 | #define CSTART 0x400L |
3 | #define CMAX 0x800L |
4 | #define ISTART 0x800L |
5 | #define IMAX 0xC00L |
6 | #define CIN 0xD10L |
7 | #define GLOBAL 0xD10L |
8 | #define EIN 0xD18L |
9 | #define FEPSTAT 0xD20L |
10 | #define CHANSTRUCT 0x1000L |
11 | #define RXTXBUF 0x4000L |
12 | |
13 | |
14 | struct global_data |
15 | { |
16 | volatile ushort cin; |
17 | volatile ushort cout; |
18 | volatile ushort cstart; |
19 | volatile ushort cmax; |
20 | volatile ushort ein; |
21 | volatile ushort eout; |
22 | volatile ushort istart; |
23 | volatile ushort imax; |
24 | }; |
25 | |
26 | |
27 | struct board_chan |
28 | { |
29 | int filler1; |
30 | int filler2; |
31 | volatile ushort tseg; |
32 | volatile ushort tin; |
33 | volatile ushort tout; |
34 | volatile ushort tmax; |
35 | |
36 | volatile ushort rseg; |
37 | volatile ushort rin; |
38 | volatile ushort rout; |
39 | volatile ushort rmax; |
40 | |
41 | volatile ushort tlow; |
42 | volatile ushort rlow; |
43 | volatile ushort rhigh; |
44 | volatile ushort incr; |
45 | |
46 | volatile ushort etime; |
47 | volatile ushort edelay; |
48 | volatile unchar *dev; |
49 | |
50 | volatile ushort iflag; |
51 | volatile ushort oflag; |
52 | volatile ushort cflag; |
53 | volatile ushort gmask; |
54 | |
55 | volatile ushort col; |
56 | volatile ushort delay; |
57 | volatile ushort imask; |
58 | volatile ushort tflush; |
59 | |
60 | int filler3; |
61 | int filler4; |
62 | int filler5; |
63 | int filler6; |
64 | |
65 | volatile unchar num; |
66 | volatile unchar ract; |
67 | volatile unchar bstat; |
68 | volatile unchar tbusy; |
69 | volatile unchar iempty; |
70 | volatile unchar ilow; |
71 | volatile unchar idata; |
72 | volatile unchar eflag; |
73 | |
74 | volatile unchar tflag; |
75 | volatile unchar rflag; |
76 | volatile unchar xmask; |
77 | volatile unchar xval; |
78 | volatile unchar mstat; |
79 | volatile unchar mchange; |
80 | volatile unchar mint; |
81 | volatile unchar lstat; |
82 | |
83 | volatile unchar mtran; |
84 | volatile unchar orun; |
85 | volatile unchar startca; |
86 | volatile unchar stopca; |
87 | volatile unchar startc; |
88 | volatile unchar stopc; |
89 | volatile unchar vnext; |
90 | volatile unchar hflow; |
91 | |
92 | volatile unchar fillc; |
93 | volatile unchar ochar; |
94 | volatile unchar omask; |
95 | |
96 | unchar filler7; |
97 | unchar filler8[28]; |
98 | }; |
99 | |
100 | |
101 | #define SRXLWATER 0xE0 |
102 | #define SRXHWATER 0xE1 |
103 | #define STOUT 0xE2 |
104 | #define PAUSETX 0xE3 |
105 | #define RESUMETX 0xE4 |
106 | #define SAUXONOFFC 0xE6 |
107 | #define SENDBREAK 0xE8 |
108 | #define SETMODEM 0xE9 |
109 | #define SETIFLAGS 0xEA |
110 | #define SONOFFC 0xEB |
111 | #define STXLWATER 0xEC |
112 | #define PAUSERX 0xEE |
113 | #define RESUMERX 0xEF |
114 | #define SETBUFFER 0xF2 |
115 | #define SETCOOKED 0xF3 |
116 | #define SETHFLOW 0xF4 |
117 | #define SETCTRLFLAGS 0xF5 |
118 | #define SETVNEXT 0xF6 |
119 | |
120 | |
121 | |
122 | #define BREAK_IND 0x01 |
123 | #define LOWTX_IND 0x02 |
124 | #define EMPTYTX_IND 0x04 |
125 | #define DATA_IND 0x08 |
126 | #define MODEMCHG_IND 0x20 |
127 | |
128 | #define FEP_HUPCL 0002000 |
129 | #if 0 |
130 | #define RTS 0x02 |
131 | #define CD 0x08 |
132 | #define DSR 0x10 |
133 | #define CTS 0x20 |
134 | #define RI 0x40 |
135 | #define DTR 0x80 |
136 | #endif |