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