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 _UAPI_FRAD_H_ 7 #define _UAPI_FRAD_H_ 8 #include <linux/if.h> 9 struct dlci_add 10 { 11 char devname[IFNAMSIZ]; 12 short dlci; 13 }; 14 #define DLCI_GET_CONF (SIOCDEVPRIVATE + 2) 15 #define DLCI_SET_CONF (SIOCDEVPRIVATE + 3) 16 struct dlci_conf { 17 short flags; 18 short CIR_fwd; 19 short Bc_fwd; 20 short Be_fwd; 21 short CIR_bwd; 22 short Bc_bwd; 23 short Be_bwd; 24 short Tc_fwd; 25 short Tc_bwd; 26 short Tf_max; 27 short Tb_max; 28 }; 29 #define DLCI_GET_SLAVE (SIOCDEVPRIVATE + 4) 30 #define DLCI_IGNORE_CIR_OUT 0x0001 31 #define DLCI_ACCOUNT_CIR_IN 0x0002 32 #define DLCI_BUFFER_IF 0x0008 33 #define DLCI_VALID_FLAGS 0x000B 34 #define FRAD_GET_CONF (SIOCDEVPRIVATE) 35 #define FRAD_SET_CONF (SIOCDEVPRIVATE + 1) 36 #define FRAD_LAST_IOCTL FRAD_SET_CONF 37 struct frad_conf 38 { 39 short station; 40 short flags; 41 short kbaud; 42 short clocking; 43 short mtu; 44 short T391; 45 short T392; 46 short N391; 47 short N392; 48 short N393; 49 short CIR_fwd; 50 short Bc_fwd; 51 short Be_fwd; 52 short CIR_bwd; 53 short Bc_bwd; 54 short Be_bwd; 55 }; 56 #define FRAD_STATION_CPE 0x0000 57 #define FRAD_STATION_NODE 0x0001 58 #define FRAD_TX_IGNORE_CIR 0x0001 59 #define FRAD_RX_ACCOUNT_CIR 0x0002 60 #define FRAD_DROP_ABORTED 0x0004 61 #define FRAD_BUFFERIF 0x0008 62 #define FRAD_STATS 0x0010 63 #define FRAD_MCI 0x0100 64 #define FRAD_AUTODLCI 0x8000 65 #define FRAD_VALID_FLAGS 0x811F 66 #define FRAD_CLOCK_INT 0x0001 67 #define FRAD_CLOCK_EXT 0x0000 68 #endif 69