aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_frad.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/if_frad.h')
-rw-r--r--include/linux/if_frad.h98
1 files changed, 1 insertions, 97 deletions
diff --git a/include/linux/if_frad.h b/include/linux/if_frad.h
index 191ee0869bc1..4316aa173dde 100644
--- a/include/linux/if_frad.h
+++ b/include/linux/if_frad.h
@@ -20,105 +20,11 @@
20 * as published by the Free Software Foundation; either version 20 * as published by the Free Software Foundation; either version
21 * 2 of the License, or (at your option) any later version. 21 * 2 of the License, or (at your option) any later version.
22 */ 22 */
23
24#ifndef _FRAD_H_ 23#ifndef _FRAD_H_
25#define _FRAD_H_ 24#define _FRAD_H_
26 25
27#include <linux/if.h> 26#include <uapi/linux/if_frad.h>
28
29/* Structures and constants associated with the DLCI device driver */
30
31struct dlci_add
32{
33 char devname[IFNAMSIZ];
34 short dlci;
35};
36
37#define DLCI_GET_CONF (SIOCDEVPRIVATE + 2)
38#define DLCI_SET_CONF (SIOCDEVPRIVATE + 3)
39
40/*
41 * These are related to the Sangoma SDLA and should remain in order.
42 * Code within the SDLA module is based on the specifics of this
43 * structure. Change at your own peril.
44 */
45struct dlci_conf {
46 short flags;
47 short CIR_fwd;
48 short Bc_fwd;
49 short Be_fwd;
50 short CIR_bwd;
51 short Bc_bwd;
52 short Be_bwd;
53
54/* these are part of the status read */
55 short Tc_fwd;
56 short Tc_bwd;
57 short Tf_max;
58 short Tb_max;
59
60/* add any new fields here above is a mirror of sdla_dlci_conf */
61};
62
63#define DLCI_GET_SLAVE (SIOCDEVPRIVATE + 4)
64
65/* configuration flags for DLCI */
66#define DLCI_IGNORE_CIR_OUT 0x0001
67#define DLCI_ACCOUNT_CIR_IN 0x0002
68#define DLCI_BUFFER_IF 0x0008
69
70#define DLCI_VALID_FLAGS 0x000B
71 27
72/* defines for the actual Frame Relay hardware */
73#define FRAD_GET_CONF (SIOCDEVPRIVATE)
74#define FRAD_SET_CONF (SIOCDEVPRIVATE + 1)
75
76#define FRAD_LAST_IOCTL FRAD_SET_CONF
77
78/*
79 * Based on the setup for the Sangoma SDLA. If changes are
80 * necessary to this structure, a routine will need to be
81 * added to that module to copy fields.
82 */
83struct frad_conf
84{
85 short station;
86 short flags;
87 short kbaud;
88 short clocking;
89 short mtu;
90 short T391;
91 short T392;
92 short N391;
93 short N392;
94 short N393;
95 short CIR_fwd;
96 short Bc_fwd;
97 short Be_fwd;
98 short CIR_bwd;
99 short Bc_bwd;
100 short Be_bwd;
101
102/* Add new fields here, above is a mirror of the sdla_conf */
103
104};
105
106#define FRAD_STATION_CPE 0x0000
107#define FRAD_STATION_NODE 0x0001
108
109#define FRAD_TX_IGNORE_CIR 0x0001
110#define FRAD_RX_ACCOUNT_CIR 0x0002
111#define FRAD_DROP_ABORTED 0x0004
112#define FRAD_BUFFERIF 0x0008
113#define FRAD_STATS 0x0010
114#define FRAD_MCI 0x0100
115#define FRAD_AUTODLCI 0x8000
116#define FRAD_VALID_FLAGS 0x811F
117
118#define FRAD_CLOCK_INT 0x0001
119#define FRAD_CLOCK_EXT 0x0000
120
121#ifdef __KERNEL__
122 28
123#if defined(CONFIG_DLCI) || defined(CONFIG_DLCI_MODULE) 29#if defined(CONFIG_DLCI) || defined(CONFIG_DLCI_MODULE)
124 30
@@ -188,6 +94,4 @@ struct frad_local
188 94
189extern void dlci_ioctl_set(int (*hook)(unsigned int, void __user *)); 95extern void dlci_ioctl_set(int (*hook)(unsigned int, void __user *));
190 96
191#endif /* __KERNEL__ */
192
193#endif 97#endif