1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
3 * DLCI/FRAD Definitions for Frame Relay Access Devices. DLCI devices are
4 * created for each DLCI associated with a FRAD. The FRAD driver
5 * is not truly a network device, but the lower level device
6 * handler. This allows other FRAD manufacturers to use the DLCI
7 * code, including its RFC1490 encapsulation alongside the current
8 * implementation for the Sangoma cards.
10 * Version: @(#)if_ifrad.h 0.15 31 Mar 96
12 * Author: Mike McLagan <mike.mclagan@linux.org>
15 * 0.15 Mike McLagan changed structure defs (packed)
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version
22 * 2 of the License, or (at your option) any later version.
30 /* Structures and constants associated with the DLCI device driver */
34 char devname
[IFNAMSIZ
];
38 #define DLCI_GET_CONF (SIOCDEVPRIVATE + 2)
39 #define DLCI_SET_CONF (SIOCDEVPRIVATE + 3)
42 * These are related to the Sangoma SDLA and should remain in order.
43 * Code within the SDLA module is based on the specifics of this
44 * structure. Change at your own peril.
55 /* these are part of the status read */
61 /* add any new fields here above is a mirror of sdla_dlci_conf */
64 #define DLCI_GET_SLAVE (SIOCDEVPRIVATE + 4)
66 /* configuration flags for DLCI */
67 #define DLCI_IGNORE_CIR_OUT 0x0001
68 #define DLCI_ACCOUNT_CIR_IN 0x0002
69 #define DLCI_BUFFER_IF 0x0008
71 #define DLCI_VALID_FLAGS 0x000B
73 /* defines for the actual Frame Relay hardware */
74 #define FRAD_GET_CONF (SIOCDEVPRIVATE)
75 #define FRAD_SET_CONF (SIOCDEVPRIVATE + 1)
77 #define FRAD_LAST_IOCTL FRAD_SET_CONF
80 * Based on the setup for the Sangoma SDLA. If changes are
81 * necessary to this structure, a routine will need to be
82 * added to that module to copy fields.
103 /* Add new fields here, above is a mirror of the sdla_conf */
107 #define FRAD_STATION_CPE 0x0000
108 #define FRAD_STATION_NODE 0x0001
110 #define FRAD_TX_IGNORE_CIR 0x0001
111 #define FRAD_RX_ACCOUNT_CIR 0x0002
112 #define FRAD_DROP_ABORTED 0x0004
113 #define FRAD_BUFFERIF 0x0008
114 #define FRAD_STATS 0x0010
115 #define FRAD_MCI 0x0100
116 #define FRAD_AUTODLCI 0x8000
117 #define FRAD_VALID_FLAGS 0x811F
119 #define FRAD_CLOCK_INT 0x0001
120 #define FRAD_CLOCK_EXT 0x0000
123 #endif /* _UAPI_FRAD_H_ */