2 * DLCI/FRAD Definitions for Frame Relay Access Devices. DLCI devices are
3 * created for each DLCI associated with a FRAD. The FRAD driver
4 * is not truly a network device, but the lower level device
5 * handler. This allows other FRAD manufacturers to use the DLCI
6 * code, including its RFC1490 encapsulation alongside the current
7 * implementation for the Sangoma cards.
9 * Version: @(#)if_ifrad.h 0.15 31 Mar 96
14 * 0.15 Mike McLagan changed structure defs (packed)
18 * This program is free software; you can redistribute it and/or
19 * modify it under the terms of the GNU General Public License
20 * as published by the Free Software Foundation; either version
21 * 2 of the License, or (at your option) any later version.
29 /* Structures and constants associated with the DLCI device driver */
33 char devname[IFNAMSIZ];
37 #define DLCI_GET_CONF (SIOCDEVPRIVATE + 2)
38 #define DLCI_SET_CONF (SIOCDEVPRIVATE + 3)
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.
54 /* these are part of the status read */
60 /* add any new fields here above is a mirror of sdla_dlci_conf */
63 #define DLCI_GET_SLAVE (SIOCDEVPRIVATE + 4)
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
70 #define DLCI_VALID_FLAGS 0x000B
72 /* defines for the actual Frame Relay hardware */
73 #define FRAD_GET_CONF (SIOCDEVPRIVATE)
74 #define FRAD_SET_CONF (SIOCDEVPRIVATE + 1)
76 #define FRAD_LAST_IOCTL FRAD_SET_CONF
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.
102 /* Add new fields here, above is a mirror of the sdla_conf */
106 #define FRAD_STATION_CPE 0x0000
107 #define FRAD_STATION_NODE 0x0001
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
118 #define FRAD_CLOCK_INT 0x0001
119 #define FRAD_CLOCK_EXT 0x0000
122 #endif /* _UAPI_FRAD_H_ */