Home | History | Annotate | Download | only in linux
      1 /****************************************************************************
      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 _ATMLEC_H_
     20 #define _ATMLEC_H_
     21 #include <linux/atmapi.h>
     22 #include <linux/atmioc.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #include <linux/atm.h>
     25 #include <linux/if_ether.h>
     26 #include <linux/types.h>
     27 #define ATMLEC_CTRL _IO('a', ATMIOC_LANE)
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define ATMLEC_DATA _IO('a', ATMIOC_LANE + 1)
     30 #define ATMLEC_MCAST _IO('a', ATMIOC_LANE + 2)
     31 #define MAX_LEC_ITF 48
     32 typedef enum {
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34   l_set_mac_addr,
     35   l_del_mac_addr,
     36   l_svc_setup,
     37   l_addr_delete,
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39   l_topology_change,
     40   l_flush_complete,
     41   l_arp_update,
     42   l_narp_req,
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   l_config,
     45   l_flush_tran_id,
     46   l_set_lecid,
     47   l_arp_xmt,
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49   l_rdesc_arp_xmt,
     50   l_associate_req,
     51   l_should_bridge
     52 } atmlec_msg_type;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define ATMLEC_MSG_TYPE_MAX l_should_bridge
     55 struct atmlec_config_msg {
     56   unsigned int maximum_unknown_frame_count;
     57   unsigned int max_unknown_frame_time;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59   unsigned short max_retry_count;
     60   unsigned int aging_time;
     61   unsigned int forward_delay_time;
     62   unsigned int arp_response_time;
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64   unsigned int flush_timeout;
     65   unsigned int path_switching_delay;
     66   unsigned int lane_version;
     67   int mtu;
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69   int is_proxy;
     70 };
     71 struct atmlec_msg {
     72   atmlec_msg_type type;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74   int sizeoftlvs;
     75   union {
     76     struct {
     77       unsigned char mac_addr[ETH_ALEN];
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79       unsigned char atm_addr[ATM_ESA_LEN];
     80       unsigned int flag;
     81       unsigned int targetless_le_arp;
     82       unsigned int no_source_le_narp;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84     } normal;
     85     struct atmlec_config_msg config;
     86     struct {
     87       __u16 lec_id;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89       __u32 tran_id;
     90       unsigned char mac_addr[ETH_ALEN];
     91       unsigned char atm_addr[ATM_ESA_LEN];
     92     } proxy;
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94   } content;
     95 } __ATM_API_ALIGN;
     96 struct atmlec_ioc {
     97   int dev_num;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99   unsigned char atm_addr[ATM_ESA_LEN];
    100   unsigned char receive;
    101 };
    102 #endif
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104