• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef __HDLC_IOCTL_H__
7 #define __HDLC_IOCTL_H__
8 #define GENERIC_HDLC_VERSION 4
9 #define CLOCK_DEFAULT   0
10 #define CLOCK_EXT	1
11 #define CLOCK_INT	2
12 #define CLOCK_TXINT	3
13 #define CLOCK_TXFROMRX	4
14 #define ENCODING_DEFAULT	0
15 #define ENCODING_NRZ		1
16 #define ENCODING_NRZI		2
17 #define ENCODING_FM_MARK	3
18 #define ENCODING_FM_SPACE	4
19 #define ENCODING_MANCHESTER	5
20 #define PARITY_DEFAULT		0
21 #define PARITY_NONE		1
22 #define PARITY_CRC16_PR0	2
23 #define PARITY_CRC16_PR1	3
24 #define PARITY_CRC16_PR0_CCITT	4
25 #define PARITY_CRC16_PR1_CCITT	5
26 #define PARITY_CRC32_PR0_CCITT	6
27 #define PARITY_CRC32_PR1_CCITT	7
28 #define LMI_DEFAULT		0
29 #define LMI_NONE		1
30 #define LMI_ANSI		2
31 #define LMI_CCITT		3
32 #define LMI_CISCO		4
33 #ifndef __ASSEMBLY__
34 typedef struct {
35 	unsigned int clock_rate;
36 	unsigned int clock_type;
37 	unsigned short loopback;
38 } sync_serial_settings;
39 typedef struct {
40 	unsigned int clock_rate;
41 	unsigned int clock_type;
42 	unsigned short loopback;
43 	unsigned int slot_map;
44 } te1_settings;
45 typedef struct {
46 	unsigned short encoding;
47 	unsigned short parity;
48 } raw_hdlc_proto;
49 typedef struct {
50 	unsigned int t391;
51 	unsigned int t392;
52 	unsigned int n391;
53 	unsigned int n392;
54 	unsigned int n393;
55 	unsigned short lmi;
56 	unsigned short dce;
57 } fr_proto;
58 typedef struct {
59 	unsigned int dlci;
60 } fr_proto_pvc;
61 typedef struct {
62 	unsigned int dlci;
63 	char master[IFNAMSIZ];
64 }fr_proto_pvc_info;
65 typedef struct {
66     unsigned int interval;
67     unsigned int timeout;
68 } cisco_proto;
69 #endif
70 #endif
71