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 _UAPILINUX_ATM_TCP_H 7 #define _UAPILINUX_ATM_TCP_H 8 #include <linux/atmapi.h> 9 #include <linux/atm.h> 10 #include <linux/atmioc.h> 11 #include <linux/types.h> 12 struct atmtcp_hdr { 13 __u16 vpi; 14 __u16 vci; 15 __u32 length; 16 }; 17 #define ATMTCP_HDR_MAGIC (~0) 18 #define ATMTCP_CTRL_OPEN 1 19 #define ATMTCP_CTRL_CLOSE 2 20 struct atmtcp_control { 21 struct atmtcp_hdr hdr; 22 int type; 23 atm_kptr_t vcc; 24 struct sockaddr_atmpvc addr; 25 struct atm_qos qos; 26 int result; 27 } __ATM_API_ALIGN; 28 #define SIOCSIFATMTCP _IO('a',ATMIOC_ITF) 29 #define ATMTCP_CREATE _IO('a',ATMIOC_ITF+14) 30 #define ATMTCP_REMOVE _IO('a',ATMIOC_ITF+15) 31 #endif 32