/* atm_tcp.h - Driver-specific declarations of the ATMTCP driver (for use by1driver-specific utilities) */23/* Written 1997-2000 by Werner Almesberger, EPFL LRC/ICA */456#ifndef LINUX_ATM_TCP_H7#define LINUX_ATM_TCP_H89#include <linux/atmapi.h>10#include <linux/atm.h>11#include <linux/atmioc.h>12#include <linux/types.h>131415/*16* All values in struct atmtcp_hdr are in network byte order17*/1819struct atmtcp_hdr {20__u16 vpi;21__u16 vci;22__u32 length; /* ... of data part */23};2425/*26* All values in struct atmtcp_command are in host byte order27*/2829#define ATMTCP_HDR_MAGIC (~0) /* this length indicates a command */30#define ATMTCP_CTRL_OPEN 1 /* request/reply */31#define ATMTCP_CTRL_CLOSE 2 /* request/reply */3233struct atmtcp_control {34struct atmtcp_hdr hdr; /* must be first */35int type; /* message type; both directions */36atm_kptr_t vcc; /* both directions */37struct sockaddr_atmpvc addr; /* suggested value from kernel */38struct atm_qos qos; /* both directions */39int result; /* to kernel only */40} __ATM_API_ALIGN;4142/*43* Field usage:44* Messge type dir. hdr.v?i type addr qos vcc result45* ----------- ---- ------- ---- ---- --- --- ------46* OPEN K->D Y Y Y Y Y 047* OPEN D->K - Y Y Y Y Y48* CLOSE K->D - - Y - Y 049* CLOSE D->K - - - - Y Y50*/5152#define SIOCSIFATMTCP _IO('a',ATMIOC_ITF) /* set ATMTCP mode */53#define ATMTCP_CREATE _IO('a',ATMIOC_ITF+14) /* create persistent ATMTCP54interface */55#define ATMTCP_REMOVE _IO('a',ATMIOC_ITF+15) /* destroy persistent ATMTCP56interface */575859#ifdef __KERNEL__6061struct atm_tcp_ops {62int (*attach)(struct atm_vcc *vcc,int itf);63int (*create_persistent)(int itf);64int (*remove_persistent)(int itf);65struct module *owner;66};6768extern struct atm_tcp_ops atm_tcp_ops;6970#endif7172#endif737475