1#ifndef _LINUX_X25_ASY_H
2#define _LINUX_X25_ASY_H
3
4
5#define SL_NRUNIT 256
6
7
8#define SL_MTU 256
9
10
11#define X25_END 0x7E
12#define X25_ESC 0x7D
13#define X25_ESCAPE(x) ((x)^0x20)
14#define X25_UNESCAPE(x) ((x)^0x20)
15
16
17struct x25_asy {
18 int magic;
19
20
21 spinlock_t lock;
22 struct tty_struct *tty;
23 struct net_device *dev;
24
25
26 unsigned char *rbuff;
27 int rcount;
28 unsigned char *xbuff;
29 unsigned char *xhead;
30 int xleft;
31 int buffsize;
32
33 unsigned long flags;
34#define SLF_INUSE 0
35#define SLF_ESCAPE 1
36#define SLF_ERROR 2
37#define SLF_OUTWAIT 4
38};
39
40
41
42#define X25_ASY_MAGIC 0x5303
43
44extern int x25_asy_init(struct net_device *dev);
45
46#endif
47