Updated binary toolchain for kernel 2.4 target (gcc 4.2.4, binutils 2.20.1)
[tomato.git] / tools / brcm / K24 / hndtools-mipsel-uclibc-4.2.4 / include / linux / atmbr2684.h
bloba225f1d9758243d4e7513a2bc56ee9948637f192
1 #ifndef _LINUX_ATMBR2684_H
2 #define _LINUX_ATMBR2684_H
4 #include <linux/atm.h>
5 #include <linux/if.h> /* For IFNAMSIZ */
6 #include <linux/if_ether.h> /* ETH_P_* */
8 /*
9 * Type of media we're bridging (ethernet, token ring, etc) Currently only
10 * ethernet is supported
12 #define BR2684_MEDIA_ETHERNET (0) /* 802.3 */
13 #define BR2684_MEDIA_802_4 (1) /* 802.4 */
14 #define BR2684_MEDIA_TR (2) /* 802.5 - token ring */
15 #define BR2684_MEDIA_FDDI (3)
16 #define BR2684_MEDIA_802_6 (4) /* 802.6 */
19 * Is there FCS inbound on this VC? This currently isn't supported.
21 #define BR2684_FCSIN_NO (0)
22 #define BR2684_FCSIN_IGNORE (1)
23 #define BR2684_FCSIN_VERIFY (2)
26 * Is there FCS outbound on this VC? This currently isn't supported.
28 #define BR2684_FCSOUT_NO (0)
29 #define BR2684_FCSOUT_SENDZERO (1)
30 #define BR2684_FCSOUT_GENERATE (2)
33 * Does this VC include LLC encapsulation?
35 #define BR2684_ENCAPS_VC (0) /* VC-mux */
36 #define BR2684_ENCAPS_LLC (1)
37 #define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
40 * Is this VC bridged or routed?
43 #define BR2684_PAYLOAD_ROUTED (0)
44 #define BR2684_PAYLOAD_BRIDGED (1)
48 * This is for the ATM_NEWBACKENDIF call - these are like socket families:
49 * the first element of the structure is the backend number and the rest
50 * is per-backend specific
52 struct atm_newif_br2684 {
53 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
54 int media; /* BR2684_MEDIA_* */
55 char ifname[IFNAMSIZ];
56 int mtu;
57 int payload; /* bridged or routed */
61 * This structure is used to specify a br2684 interface - either by a
62 * positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
64 #define BR2684_FIND_BYNOTHING (0)
65 #define BR2684_FIND_BYNUM (1)
66 #define BR2684_FIND_BYIFNAME (2)
67 struct br2684_if_spec {
68 int method; /* BR2684_FIND_* */
69 union {
70 char ifname[IFNAMSIZ];
71 int devnum;
72 } spec;
76 * This is for the ATM_SETBACKEND call - these are like socket families:
77 * the first element of the structure is the backend number and the rest
78 * is per-backend specific
80 struct atm_backend_br2684 {
81 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
82 struct br2684_if_spec ifspec;
83 int fcs_in; /* BR2684_FCSIN_* */
84 int fcs_out; /* BR2684_FCSOUT_* */
85 int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
86 int encaps; /* BR2684_ENCAPS_* */
87 int payload; /* BR2684_PAYLOAD_* */
88 int has_vpiid; /* 1: use vpn_id - Unsupported */
89 __u8 vpn_id[7];
90 int send_padding; /* unsupported */
91 int min_size; /* we will pad smaller packets than this */
95 * The BR2684_SETFILT ioctl is an experimental mechanism for folks
96 * terminating a large number of IP-only vcc's. When netfilter allows
97 * efficient per-if in/out filters, this support will be removed
99 struct br2684_filter {
100 __u32 prefix; /* network byte order */
101 __u32 netmask; /* 0 = disable filter */
104 struct br2684_filter_set {
105 struct br2684_if_spec ifspec;
106 struct br2684_filter filter;
109 enum br2684_payload {
110 p_routed = BR2684_PAYLOAD_ROUTED,
111 p_bridged = BR2684_PAYLOAD_BRIDGED,
114 #define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
115 struct br2684_filter_set)
117 #endif /* _LINUX_ATMBR2684_H */