Merge tag 'drm-intel-fixes-2014-02-11' of ssh://git.freedesktop.org/git/drm-intel...
[linux-2.6-microblaze.git] / drivers / staging / dgap / dgap_conf.h
1 /*
2  * Copyright 2003 Digi International (www.digi.com)
3  *      Scott H Kilau <Scott_Kilau at digi dot com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED; without even the
12  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  * PURPOSE.  See the GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18  *
19  *****************************************************************************
20  *
21  *      dgap_conf.h - Header file for installations and parse files.
22  *
23  *      $Id: dgap_conf.h,v 1.1 2009/10/23 14:01:57 markh Exp $
24  *
25  *      NOTE: THIS IS A SHARED HEADER. DO NOT CHANGE CODING STYLE!!!
26  */
27
28 #ifndef _DGAP_CONF_H
29 #define _DGAP_CONF_H
30
31 #define NULLNODE 0              /* header node, not used */
32 #define BNODE 1                 /* Board node */
33 #define LNODE 2                 /* Line node */
34 #define CNODE 3                 /* Concentrator node */
35 #define MNODE 4                 /* EBI Module node */
36 #define TNODE 5                 /* tty name prefix node */
37 #define CUNODE 6                /* cu name prefix (non-SCO) */
38 #define PNODE 7                 /* trans. print prefix node */
39 #define JNODE 8                 /* maJor number node */
40 #define ANODE 9                 /* altpin */
41 #define TSNODE 10               /* tty structure size */
42 #define CSNODE 11               /* channel structure size */
43 #define BSNODE 12               /* board structure size */
44 #define USNODE 13               /* unit schedule structure size */
45 #define FSNODE 14               /* f2200 structure size */
46 #define VSNODE 15               /* size of VPIX structures */
47 #define INTRNODE 16             /* enable interrupt */
48
49 /* Enumeration of tokens */
50 #define BEGIN   1
51 #define END     2
52 #define BOARD   10
53
54 #define EPCFS   11 /* start of EPC family definitions */
55 #define ICX             11
56 #define MCX             13
57 #define PCX     14
58 #define IEPC    15
59 #define EEPC    16
60 #define MEPC    17
61 #define IPCM    18
62 #define EPCM    19
63 #define MPCM    20
64 #define PEPC    21
65 #define PPCM    22
66 #ifdef CP
67 #define ICP     23
68 #define ECP     24
69 #define MCP     25
70 #endif
71 #define EPCFE   25 /* end of EPC family definitions */
72 #define PC2E    26
73 #define PC4E    27
74 #define PC4E8K  28
75 #define PC8E    29
76 #define PC8E8K  30
77 #define PC16E   31
78 #define MC2E8K  34
79 #define MC4E8K  35
80 #define MC8E8K  36
81
82 #define AVANFS  42      /* start of Avanstar family definitions */
83 #define A8P     42
84 #define A16P    43
85 #define AVANFE  43      /* end of Avanstar family definitions */
86
87 #define DA2000FS        44      /* start of AccelePort 2000 family definitions */
88 #define DA22            44 /* AccelePort 2002 */
89 #define DA24            45 /* AccelePort 2004 */
90 #define DA28            46 /* AccelePort 2008 */
91 #define DA216           47 /* AccelePort 2016 */
92 #define DAR4            48 /* AccelePort RAS 4 port */
93 #define DAR8            49 /* AccelePort RAS 8 port */
94 #define DDR24           50 /* DataFire RAS 24 port */
95 #define DDR30           51 /* DataFire RAS 30 port */
96 #define DDR48           52 /* DataFire RAS 48 port */
97 #define DDR60           53 /* DataFire RAS 60 port */
98 #define DA2000FE        53 /* end of AccelePort 2000/RAS family definitions */
99
100 #define PCXRFS  106     /* start of PCXR family definitions */
101 #define APORT4  106
102 #define APORT8  107
103 #define PAPORT4 108
104 #define PAPORT8 109
105 #define APORT4_920I     110
106 #define APORT8_920I     111
107 #define APORT4_920P     112
108 #define APORT8_920P     113
109 #define APORT2_920P 114
110 #define PCXRFE  117     /* end of PCXR family definitions */
111
112 #define LINE    82
113 #ifdef T1
114 #define T1M     83
115 #define E1M     84
116 #endif
117 #define CONC    64
118 #define CX      65
119 #define EPC     66
120 #define MOD     67
121 #define PORTS   68
122 #define METHOD  69
123 #define CUSTOM  70
124 #define BASIC   71
125 #define STATUS  72
126 #define MODEM   73
127 /* The following tokens can appear in multiple places */
128 #define SPEED   74
129 #define NPORTS  75
130 #define ID      76
131 #define CABLE   77
132 #define CONNECT 78
133 #define IO      79
134 #define MEM     80
135 #define DPSZ    81
136
137 #define TTYN    90
138 #define CU      91
139 #define PRINT   92
140 #define XPRINT  93
141 #define CMAJOR   94
142 #define ALTPIN  95
143 #define STARTO 96
144 #define USEINTR  97
145 #define PCIINFO  98
146
147 #define TTSIZ   100
148 #define CHSIZ   101
149 #define BSSIZ   102
150 #define UNTSIZ  103
151 #define F2SIZ   104
152 #define VPSIZ   105
153
154 #define TOTAL_BOARD     2
155 #define CURRENT_BRD     4
156 #define BOARD_TYPE      6
157 #define IO_ADDRESS      8
158 #define MEM_ADDRESS     10
159
160 #define FIELDS_PER_PAGE 18
161
162 #define TB_FIELD        1
163 #define CB_FIELD        3
164 #define BT_FIELD        5
165 #define IO_FIELD        7
166 #define ID_FIELD        8
167 #define ME_FIELD        9
168 #define TTY_FIELD       11
169 #define CU_FIELD        13
170 #define PR_FIELD        15
171 #define MPR_FIELD       17
172
173 #define MAX_FIELD       512
174
175 #define INIT            0
176 #define NITEMS          128
177 #define MAX_ITEM        512
178
179 #define DSCRINST        1
180 #define DSCRNUM         3
181 #define ALTPINQ         5
182 #define SSAVE           7
183
184 #define DSCR            "32"
185 #define ONETONINE       "123456789"
186 #define ALL             "1234567890"
187
188
189 struct cnode {
190         struct cnode *next;
191         int type;
192         int numbrd;
193
194         union {
195                 struct {
196                         char  type;     /* Board Type           */
197                         short port;     /* I/O Address          */
198                         char  *portstr; /* I/O Address in string */
199                         long  addr;     /* Memory Address       */
200                         char  *addrstr; /* Memory Address in string */
201                         long  pcibus;   /* PCI BUS              */
202                         char  *pcibusstr; /* PCI BUS in string */
203                         long  pcislot;  /* PCI SLOT             */
204                         char  *pcislotstr; /* PCI SLOT in string */
205                         char  nport;    /* Number of Ports      */
206                         char  *id;      /* tty id               */
207                         int   start;    /* start of tty counting */
208                         char  *method;  /* Install method       */
209                         char  v_type;
210                         char  v_port;
211                         char  v_addr;
212                         char  v_pcibus;
213                         char  v_pcislot;
214                         char  v_nport;
215                         char  v_id;
216                         char  v_start;
217                         char  v_method;
218                         char  line1;
219                         char  line2;
220                         char  conc1;   /* total concs in line1 */
221                         char  conc2;   /* total concs in line2 */
222                         char  module1; /* total modules for line1 */
223                         char  module2; /* total modules for line2 */
224                         char  *status; /* config status */
225                         char  *dimstatus;        /* Y/N */
226                         int   status_index; /* field pointer */
227                 } board;
228
229                 struct {
230                         char  *cable;
231                         char  v_cable;
232                         char  speed;
233                         char  v_speed;
234                 } line;
235
236                 struct {
237                         char  type;
238                         char  *connect;
239                         char  speed;
240                         char  nport;
241                         char  *id;
242                         char  *idstr;
243                         int   start;
244                         char  v_type;
245                         char  v_connect;
246                         char  v_speed;
247                         char  v_nport;
248                         char  v_id;
249                         char  v_start;
250                 } conc;
251
252                 struct {
253                         char type;
254                         char nport;
255                         char *id;
256                         char *idstr;
257                         int  start;
258                         char v_type;
259                         char v_nport;
260                         char v_id;
261                         char v_start;
262                 } module;
263
264                 char *ttyname;
265
266                 char *cuname;
267
268                 char *printname;
269
270                 int  majornumber;
271
272                 int  altpin;
273
274                 int  ttysize;
275
276                 int  chsize;
277
278                 int  bssize;
279
280                 int  unsize;
281
282                 int  f2size;
283
284                 int  vpixsize;
285
286                 int  useintr;
287         } u;
288 };
289
290 #endif