Import 2.3.15pre3
[davej-history.git] / include / linux / atm_tcp.h
blobcf418e7389c892ee6d80741bac1bb9b3e8a0b931
1 /* atm_tcp.h - Driver-specific declarations of the ATMTCP driver (for use by
2 driver-specific utilities) */
4 /* Written 1997,1998 by Werner Almesberger, EPFL LRC/ICA */
7 #ifndef LINUX_ATM_TCP_H
8 #define LINUX_ATM_TCP_H
10 #ifdef __KERNEL__
11 #include <linux/types.h>
12 #endif
13 #include <linux/atmioc.h>
17 * All values are in network byte order
20 struct atmtcp_hdr {
21 uint16_t vpi;
22 uint16_t vci;
23 uint32_t length;/* ... of data part */
27 #define SIOCSIFATMTCP _IO('a',ATMIOC_ITF)/* set ATMTCP mode */
28 #define ATMTCP_CREATE _IO('a',ATMIOC_ITF+14)/* create persistent ATMTCP
29 interface */
30 #define ATMTCP_REMOVE _IO('a',ATMIOC_ITF+15)/* destroy persistent ATMTCP
31 interface*/
34 #ifdef __KERNEL__
36 struct atm_tcp_ops {
37 int(*attach)(struct atm_vcc *vcc,int itf);
38 int(*create_persistent)(int itf);
39 int(*remove_persistent)(int itf);
42 externstruct atm_tcp_ops atm_tcp_ops;
44 #endif
46 #endif
close