![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 0002 /* atm_tcp.h - Driver-specific declarations of the ATMTCP driver (for use by 0003 driver-specific utilities) */ 0004 0005 /* Written 1997-2000 by Werner Almesberger, EPFL LRC/ICA */ 0006 0007 0008 #ifndef _UAPILINUX_ATM_TCP_H 0009 #define _UAPILINUX_ATM_TCP_H 0010 0011 #include <linux/atmapi.h> 0012 #include <linux/atm.h> 0013 #include <linux/atmioc.h> 0014 #include <linux/types.h> 0015 0016 0017 /* 0018 * All values in struct atmtcp_hdr are in network byte order 0019 */ 0020 0021 struct atmtcp_hdr { 0022 __u16 vpi; 0023 __u16 vci; 0024 __u32 length; /* ... of data part */ 0025 }; 0026 0027 /* 0028 * All values in struct atmtcp_command are in host byte order 0029 */ 0030 0031 #define ATMTCP_HDR_MAGIC (~0) /* this length indicates a command */ 0032 #define ATMTCP_CTRL_OPEN 1 /* request/reply */ 0033 #define ATMTCP_CTRL_CLOSE 2 /* request/reply */ 0034 0035 struct atmtcp_control { 0036 struct atmtcp_hdr hdr; /* must be first */ 0037 int type; /* message type; both directions */ 0038 atm_kptr_t vcc; /* both directions */ 0039 struct sockaddr_atmpvc addr; /* suggested value from kernel */ 0040 struct atm_qos qos; /* both directions */ 0041 int result; /* to kernel only */ 0042 } __ATM_API_ALIGN; 0043 0044 /* 0045 * Field usage: 0046 * Messge type dir. hdr.v?i type addr qos vcc result 0047 * ----------- ---- ------- ---- ---- --- --- ------ 0048 * OPEN K->D Y Y Y Y Y 0 0049 * OPEN D->K - Y Y Y Y Y 0050 * CLOSE K->D - - Y - Y 0 0051 * CLOSE D->K - - - - Y Y 0052 */ 0053 0054 #define SIOCSIFATMTCP _IO('a',ATMIOC_ITF) /* set ATMTCP mode */ 0055 #define ATMTCP_CREATE _IO('a',ATMIOC_ITF+14) /* create persistent ATMTCP 0056 interface */ 0057 #define ATMTCP_REMOVE _IO('a',ATMIOC_ITF+15) /* destroy persistent ATMTCP 0058 interface */ 0059 0060 0061 0062 #endif /* _UAPILINUX_ATM_TCP_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |