source: svn/trunk/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/linux/atm_tcp.h

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1/* atm_tcp.h - Driver-specific declarations of the ATMTCP driver (for use by
2               driver-specific utilities) */
3
4/* Written 1997-2000 by Werner Almesberger, EPFL LRC/ICA */
5
6
7#ifndef LINUX_ATM_TCP_H
8#define LINUX_ATM_TCP_H
9
10#include <linux/atmapi.h>
11#include <linux/types.h>
12#include <linux/atmioc.h>
13
14
15/*
16 * All values in struct atmtcp_hdr are in network byte order
17 */
18
19struct atmtcp_hdr {
20        uint16_t        vpi;
21        uint16_t        vci;
22        uint32_t        length;         /* ... of data part */
23};
24
25/*
26 * All values in struct atmtcp_command are in host byte order
27 */
28
29#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 */
32
33struct atmtcp_control {
34        struct atmtcp_hdr hdr;  /* must be first */
35        int type;               /* message type; both directions */
36        atm_kptr_t vcc;         /* both directions */
37        struct sockaddr_atmpvc addr; /* suggested value from kernel */
38        struct atm_qos  qos;    /* both directions */
39        int result;             /* to kernel only */
40} __ATM_API_ALIGN;
41
42/*
43 * Field usage:
44 * Messge type  dir.    hdr.v?i type    addr    qos     vcc     result
45 * -----------  ----    ------- ----    ----    ---     ---     ------
46 * OPEN         K->D    Y       Y       Y       Y       Y       0
47 * OPEN         D->K    -       Y       Y       Y       Y       Y
48 * CLOSE        K->D    -       -       Y       -       Y       0
49 * CLOSE        D->K    -       -       -       -       Y       Y
50 */
51
52#define SIOCSIFATMTCP   _IO('a',ATMIOC_ITF)     /* set ATMTCP mode */
53#define ATMTCP_CREATE   _IO('a',ATMIOC_ITF+14)  /* create persistent ATMTCP
54                                                   interface */
55#define ATMTCP_REMOVE   _IO('a',ATMIOC_ITF+15)  /* destroy persistent ATMTCP
56                                                   interface */
57
58
59#endif
Note: See TracBrowser for help on using the repository browser.