ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / linux / hdlc / ioctl.h
1 #ifndef __HDLC_IOCTL_H__
2 #define __HDLC_IOCTL_H__
3
4 typedef struct { 
5         unsigned int clock_rate; /* bits per second */
6         unsigned int clock_type; /* internal, external, TX-internal etc. */
7         unsigned short loopback;
8 } sync_serial_settings;          /* V.35, V.24, X.21 */
9
10 typedef struct { 
11         unsigned int clock_rate; /* bits per second */
12         unsigned int clock_type; /* internal, external, TX-internal etc. */
13         unsigned short loopback;
14         unsigned int slot_map;
15 } te1_settings;                  /* T1, E1 */
16
17 typedef struct {
18         unsigned short encoding;
19         unsigned short parity;
20 } raw_hdlc_proto;
21
22 typedef struct {
23         unsigned int t391;
24         unsigned int t392;
25         unsigned int n391;
26         unsigned int n392;
27         unsigned int n393;
28         unsigned short lmi;
29         unsigned short dce; /* 1 for DCE (network side) operation */
30 } fr_proto;
31
32 typedef struct {
33         unsigned int dlci;
34 } fr_proto_pvc;          /* for creating/deleting FR PVCs */
35
36 typedef struct {
37         unsigned int dlci;
38         char master[IFNAMSIZ];  /* Name of master FRAD device */
39 }fr_proto_pvc_info;             /* for returning PVC information only */
40
41 typedef struct {
42     unsigned int interval;
43     unsigned int timeout;
44 } cisco_proto;
45
46 /* PPP doesn't need any info now - supply length = 0 to ioctl */
47
48 #endif /* __HDLC_IOCTL_H__ */