blob: 18763050f8ecf0082e0aec0f29e5c28c3681d7a8 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_FRAD_H_
20#define _UAPI_FRAD_H_
21#include <linux/if.h>
Tao Baod7db5942015-01-28 10:07:51 -080022struct dlci_add {
Tao Baod7db5942015-01-28 10:07:51 -080023 char devname[IFNAMSIZ];
24 short dlci;
Ben Cheng655a7c02013-10-16 16:09:24 -070025};
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define DLCI_GET_CONF (SIOCDEVPRIVATE + 2)
27#define DLCI_SET_CONF (SIOCDEVPRIVATE + 3)
28struct dlci_conf {
Tao Baod7db5942015-01-28 10:07:51 -080029 short flags;
30 short CIR_fwd;
Tao Baod7db5942015-01-28 10:07:51 -080031 short Bc_fwd;
32 short Be_fwd;
33 short CIR_bwd;
34 short Bc_bwd;
Tao Baod7db5942015-01-28 10:07:51 -080035 short Be_bwd;
36 short Tc_fwd;
37 short Tc_bwd;
38 short Tf_max;
Tao Baod7db5942015-01-28 10:07:51 -080039 short Tb_max;
Ben Cheng655a7c02013-10-16 16:09:24 -070040};
41#define DLCI_GET_SLAVE (SIOCDEVPRIVATE + 4)
Ben Cheng655a7c02013-10-16 16:09:24 -070042#define DLCI_IGNORE_CIR_OUT 0x0001
43#define DLCI_ACCOUNT_CIR_IN 0x0002
44#define DLCI_BUFFER_IF 0x0008
45#define DLCI_VALID_FLAGS 0x000B
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define FRAD_GET_CONF (SIOCDEVPRIVATE)
47#define FRAD_SET_CONF (SIOCDEVPRIVATE + 1)
48#define FRAD_LAST_IOCTL FRAD_SET_CONF
Tao Baod7db5942015-01-28 10:07:51 -080049struct frad_conf {
50 short station;
Tao Baod7db5942015-01-28 10:07:51 -080051 short flags;
52 short kbaud;
53 short clocking;
54 short mtu;
Tao Baod7db5942015-01-28 10:07:51 -080055 short T391;
56 short T392;
57 short N391;
58 short N392;
Tao Baod7db5942015-01-28 10:07:51 -080059 short N393;
60 short CIR_fwd;
61 short Bc_fwd;
62 short Be_fwd;
Tao Baod7db5942015-01-28 10:07:51 -080063 short CIR_bwd;
64 short Bc_bwd;
65 short Be_bwd;
Ben Cheng655a7c02013-10-16 16:09:24 -070066};
67#define FRAD_STATION_CPE 0x0000
68#define FRAD_STATION_NODE 0x0001
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define FRAD_TX_IGNORE_CIR 0x0001
70#define FRAD_RX_ACCOUNT_CIR 0x0002
71#define FRAD_DROP_ABORTED 0x0004
72#define FRAD_BUFFERIF 0x0008
Ben Cheng655a7c02013-10-16 16:09:24 -070073#define FRAD_STATS 0x0010
74#define FRAD_MCI 0x0100
75#define FRAD_AUTODLCI 0x8000
76#define FRAD_VALID_FLAGS 0x811F
Ben Cheng655a7c02013-10-16 16:09:24 -070077#define FRAD_CLOCK_INT 0x0001
78#define FRAD_CLOCK_EXT 0x0000
Ben Cheng655a7c02013-10-16 16:09:24 -070079#endif