Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
atmdev.h File Reference
#include <linux/atmapi.h>
#include <linux/atm.h>
#include <linux/atmioc.h>

Go to the source code of this file.

Data Structures

struct  atm_aal_stats
 
struct  atm_dev_stats
 
struct  atm_iobuf
 
struct  atm_cirange
 

Macros

#define ESI_LEN   6
 
#define ATM_OC3_PCR   (155520000/270*260/8/53)
 
#define ATM_25_PCR   ((25600000/8-8000)/54)
 
#define ATM_OC12_PCR   (622080000/1080*1040/8/53)
 
#define ATM_DS3_PCR   (8000*12)
 
#define __AAL_STAT_ITEMS
 
#define __HANDLE_ITEM(i)   int i
 
#define ATM_GETLINKRATE   _IOW('a',ATMIOC_ITF+1,struct atmif_sioc)
 
#define ATM_GETNAMES   _IOW('a',ATMIOC_ITF+3,struct atm_iobuf)
 
#define ATM_GETTYPE   _IOW('a',ATMIOC_ITF+4,struct atmif_sioc)
 
#define ATM_GETESI   _IOW('a',ATMIOC_ITF+5,struct atmif_sioc)
 
#define ATM_GETADDR   _IOW('a',ATMIOC_ITF+6,struct atmif_sioc)
 
#define ATM_RSTADDR   _IOW('a',ATMIOC_ITF+7,struct atmif_sioc)
 
#define ATM_ADDADDR   _IOW('a',ATMIOC_ITF+8,struct atmif_sioc)
 
#define ATM_DELADDR   _IOW('a',ATMIOC_ITF+9,struct atmif_sioc)
 
#define ATM_GETCIRANGE   _IOW('a',ATMIOC_ITF+10,struct atmif_sioc)
 
#define ATM_SETCIRANGE   _IOW('a',ATMIOC_ITF+11,struct atmif_sioc)
 
#define ATM_SETESI   _IOW('a',ATMIOC_ITF+12,struct atmif_sioc)
 
#define ATM_SETESIF   _IOW('a',ATMIOC_ITF+13,struct atmif_sioc)
 
#define ATM_ADDLECSADDR   _IOW('a', ATMIOC_ITF+14, struct atmif_sioc)
 
#define ATM_DELLECSADDR   _IOW('a', ATMIOC_ITF+15, struct atmif_sioc)
 
#define ATM_GETLECSADDR   _IOW('a', ATMIOC_ITF+16, struct atmif_sioc)
 
#define ATM_GETSTAT   _IOW('a',ATMIOC_SARCOM+0,struct atmif_sioc)
 
#define ATM_GETSTATZ   _IOW('a',ATMIOC_SARCOM+1,struct atmif_sioc)
 
#define ATM_GETLOOP   _IOW('a',ATMIOC_SARCOM+2,struct atmif_sioc)
 
#define ATM_SETLOOP   _IOW('a',ATMIOC_SARCOM+3,struct atmif_sioc)
 
#define ATM_QUERYLOOP   _IOW('a',ATMIOC_SARCOM+4,struct atmif_sioc)
 
#define ATM_SETSC   _IOW('a',ATMIOC_SPECIAL+1,int)
 
#define ATM_SETBACKEND   _IOW('a',ATMIOC_SPECIAL+2,atm_backend_t)
 
#define ATM_NEWBACKENDIF   _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)
 
#define ATM_ADDPARTY   _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf)
 
#define ATM_DROPPARTY   _IOW('a', ATMIOC_SPECIAL+5,int)
 
#define ATM_BACKEND_RAW   0
 
#define ATM_BACKEND_PPP   1 /* PPPoATM - RFC2364 */
 
#define ATM_BACKEND_BR2684   2 /* Bridged RFC1483/2684 */
 
#define ATM_ITFTYP_LEN   8 /* maximum length of interface type name */
 
#define __ATM_LM_NONE   0 /* no loop back ^ ^ ^ ^ */
 
#define __ATM_LM_AAL   1 /* loop back PDUs --' | | | */
 
#define __ATM_LM_ATM   2 /* loop back ATM cells ---' | | */
 
#define __ATM_LM_PHY   8 /* loop back bits (digital) ----' | */
 
#define __ATM_LM_ANALOG   16 /* loop back the analog signal --------' */
 
#define __ATM_LM_MKLOC(n)   ((n)) /* Local (i.e. loop TX to RX) */
 
#define __ATM_LM_MKRMT(n)   ((n) << 8) /* Remote (i.e. loop RX to TX) */
 
#define __ATM_LM_XTLOC(n)   ((n) & 0xff)
 
#define __ATM_LM_XTRMT(n)   (((n) >> 8) & 0xff)
 
#define ATM_LM_NONE   0 /* no loopback */
 
#define ATM_LM_LOC_AAL   __ATM_LM_MKLOC(__ATM_LM_AAL)
 
#define ATM_LM_LOC_ATM   __ATM_LM_MKLOC(__ATM_LM_ATM)
 
#define ATM_LM_LOC_PHY   __ATM_LM_MKLOC(__ATM_LM_PHY)
 
#define ATM_LM_LOC_ANALOG   __ATM_LM_MKLOC(__ATM_LM_ANALOG)
 
#define ATM_LM_RMT_AAL   __ATM_LM_MKRMT(__ATM_LM_AAL)
 
#define ATM_LM_RMT_ATM   __ATM_LM_MKRMT(__ATM_LM_ATM)
 
#define ATM_LM_RMT_PHY   __ATM_LM_MKRMT(__ATM_LM_PHY)
 
#define ATM_LM_RMT_ANALOG   __ATM_LM_MKRMT(__ATM_LM_ANALOG)
 
#define ATM_CI_MAX   -1 /* use maximum range of VPI/VCI */
 
#define ATM_SC_RX   1024 /* enable RX single-copy */
 
#define ATM_SC_TX   2048 /* enable TX single-copy */
 
#define ATM_BACKLOG_DEFAULT
 
#define ATM_MF_IMMED   1 /* Block until change is effective */
 
#define ATM_MF_INC_RSV   2 /* Change reservation on increase */
 
#define ATM_MF_INC_SHP   4 /* Change shaping on increase */
 
#define ATM_MF_DEC_RSV   8 /* Change reservation on decrease */
 
#define ATM_MF_DEC_SHP   16 /* Change shaping on decrease */
 
#define ATM_MF_BWD   32 /* Set the backward direction parameters */
 
#define ATM_MF_SET
 
#define ATM_VS_IDLE   0 /* VC is not used */
 
#define ATM_VS_CONNECTED   1 /* VC is connected */
 
#define ATM_VS_CLOSING   2 /* VC is closing */
 
#define ATM_VS_LISTEN   3 /* VC is listening for incoming setups */
 
#define ATM_VS_INUSE   4 /* VC is in use (registered with atmsigd) */
 
#define ATM_VS_BOUND   5 /* VC is bound */
 
#define ATM_VS2TXT_MAP   "IDLE", "CONNECTED", "CLOSING", "LISTEN", "INUSE", "BOUND"
 
#define ATM_VF2TXT_MAP
 

Variables

struct atm_dev_stats __ATM_API_ALIGN
 

Macro Definition Documentation

#define __AAL_STAT_ITEMS
Value:
__HANDLE_ITEM(tx); /* TX okay */ \
__HANDLE_ITEM(tx_err); /* TX errors */ \
__HANDLE_ITEM(rx); /* RX okay */ \
__HANDLE_ITEM(rx_err); /* RX errors */ \
__HANDLE_ITEM(rx_drop); /* RX out of memory */

Definition at line 33 of file atmdev.h.

#define __ATM_LM_AAL   1 /* loop back PDUs --' | | | */

Definition at line 128 of file atmdev.h.

#define __ATM_LM_ANALOG   16 /* loop back the analog signal --------' */

Definition at line 132 of file atmdev.h.

#define __ATM_LM_ATM   2 /* loop back ATM cells ---' | | */

Definition at line 129 of file atmdev.h.

#define __ATM_LM_MKLOC (   n)    ((n)) /* Local (i.e. loop TX to RX) */

Definition at line 135 of file atmdev.h.

#define __ATM_LM_MKRMT (   n)    ((n) << 8) /* Remote (i.e. loop RX to TX) */

Definition at line 136 of file atmdev.h.

#define __ATM_LM_NONE   0 /* no loop back ^ ^ ^ ^ */

Definition at line 127 of file atmdev.h.

#define __ATM_LM_PHY   8 /* loop back bits (digital) ----' | */

Definition at line 131 of file atmdev.h.

#define __ATM_LM_XTLOC (   n)    ((n) & 0xff)

Definition at line 138 of file atmdev.h.

#define __ATM_LM_XTRMT (   n)    (((n) >> 8) & 0xff)

Definition at line 139 of file atmdev.h.

#define __HANDLE_ITEM (   i)    int i

Definition at line 41 of file atmdev.h.

#define ATM_25_PCR   ((25600000/8-8000)/54)

Definition at line 22 of file atmdev.h.

#define ATM_ADDADDR   _IOW('a',ATMIOC_ITF+8,struct atmif_sioc)

Definition at line 66 of file atmdev.h.

#define ATM_ADDLECSADDR   _IOW('a', ATMIOC_ITF+14, struct atmif_sioc)

Definition at line 78 of file atmdev.h.

#define ATM_ADDPARTY   _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf)

Definition at line 101 of file atmdev.h.

#define ATM_BACKEND_BR2684   2 /* Bridged RFC1483/2684 */

Definition at line 117 of file atmdev.h.

#define ATM_BACKEND_PPP   1 /* PPPoATM - RFC2364 */

Definition at line 116 of file atmdev.h.

#define ATM_BACKEND_RAW   0

Definition at line 115 of file atmdev.h.

#define ATM_BACKLOG_DEFAULT
Value:
32 /* if we get more, we're likely to time out
anyway */

Definition at line 178 of file atmdev.h.

#define ATM_CI_MAX   -1 /* use maximum range of VPI/VCI */

Definition at line 166 of file atmdev.h.

#define ATM_DELADDR   _IOW('a',ATMIOC_ITF+9,struct atmif_sioc)

Definition at line 68 of file atmdev.h.

#define ATM_DELLECSADDR   _IOW('a', ATMIOC_ITF+15, struct atmif_sioc)

Definition at line 80 of file atmdev.h.

#define ATM_DROPPARTY   _IOW('a', ATMIOC_SPECIAL+5,int)

Definition at line 107 of file atmdev.h.

#define ATM_DS3_PCR   (8000*12)

Definition at line 29 of file atmdev.h.

#define ATM_GETADDR   _IOW('a',ATMIOC_ITF+6,struct atmif_sioc)

Definition at line 62 of file atmdev.h.

#define ATM_GETCIRANGE   _IOW('a',ATMIOC_ITF+10,struct atmif_sioc)

Definition at line 70 of file atmdev.h.

#define ATM_GETESI   _IOW('a',ATMIOC_ITF+5,struct atmif_sioc)

Definition at line 60 of file atmdev.h.

#define ATM_GETLECSADDR   _IOW('a', ATMIOC_ITF+16, struct atmif_sioc)

Definition at line 82 of file atmdev.h.

#define ATM_GETLINKRATE   _IOW('a',ATMIOC_ITF+1,struct atmif_sioc)

Definition at line 54 of file atmdev.h.

#define ATM_GETLOOP   _IOW('a',ATMIOC_SARCOM+2,struct atmif_sioc)

Definition at line 89 of file atmdev.h.

#define ATM_GETNAMES   _IOW('a',ATMIOC_ITF+3,struct atm_iobuf)

Definition at line 56 of file atmdev.h.

#define ATM_GETSTAT   _IOW('a',ATMIOC_SARCOM+0,struct atmif_sioc)

Definition at line 85 of file atmdev.h.

#define ATM_GETSTATZ   _IOW('a',ATMIOC_SARCOM+1,struct atmif_sioc)

Definition at line 87 of file atmdev.h.

#define ATM_GETTYPE   _IOW('a',ATMIOC_ITF+4,struct atmif_sioc)

Definition at line 58 of file atmdev.h.

#define ATM_ITFTYP_LEN   8 /* maximum length of interface type name */

Definition at line 120 of file atmdev.h.

#define ATM_LM_LOC_AAL   __ATM_LM_MKLOC(__ATM_LM_AAL)

Definition at line 143 of file atmdev.h.

#define ATM_LM_LOC_ANALOG   __ATM_LM_MKLOC(__ATM_LM_ANALOG)

Definition at line 146 of file atmdev.h.

#define ATM_LM_LOC_ATM   __ATM_LM_MKLOC(__ATM_LM_ATM)

Definition at line 144 of file atmdev.h.

#define ATM_LM_LOC_PHY   __ATM_LM_MKLOC(__ATM_LM_PHY)

Definition at line 145 of file atmdev.h.

#define ATM_LM_NONE   0 /* no loopback */

Definition at line 141 of file atmdev.h.

#define ATM_LM_RMT_AAL   __ATM_LM_MKRMT(__ATM_LM_AAL)

Definition at line 148 of file atmdev.h.

#define ATM_LM_RMT_ANALOG   __ATM_LM_MKRMT(__ATM_LM_ANALOG)

Definition at line 151 of file atmdev.h.

#define ATM_LM_RMT_ATM   __ATM_LM_MKRMT(__ATM_LM_ATM)

Definition at line 149 of file atmdev.h.

#define ATM_LM_RMT_PHY   __ATM_LM_MKRMT(__ATM_LM_PHY)

Definition at line 150 of file atmdev.h.

#define ATM_MF_BWD   32 /* Set the backward direction parameters */

Definition at line 187 of file atmdev.h.

#define ATM_MF_DEC_RSV   8 /* Change reservation on decrease */

Definition at line 185 of file atmdev.h.

#define ATM_MF_DEC_SHP   16 /* Change shaping on decrease */

Definition at line 186 of file atmdev.h.

#define ATM_MF_IMMED   1 /* Block until change is effective */

Definition at line 182 of file atmdev.h.

#define ATM_MF_INC_RSV   2 /* Change reservation on increase */

Definition at line 183 of file atmdev.h.

#define ATM_MF_INC_SHP   4 /* Change shaping on increase */

Definition at line 184 of file atmdev.h.

#define ATM_MF_SET
Value:

Definition at line 189 of file atmdev.h.

#define ATM_NEWBACKENDIF   _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)

Definition at line 99 of file atmdev.h.

#define ATM_OC12_PCR   (622080000/1080*1040/8/53)

Definition at line 24 of file atmdev.h.

#define ATM_OC3_PCR   (155520000/270*260/8/53)

Definition at line 17 of file atmdev.h.

#define ATM_QUERYLOOP   _IOW('a',ATMIOC_SARCOM+4,struct atmif_sioc)

Definition at line 93 of file atmdev.h.

#define ATM_RSTADDR   _IOW('a',ATMIOC_ITF+7,struct atmif_sioc)

Definition at line 64 of file atmdev.h.

#define ATM_SC_RX   1024 /* enable RX single-copy */

Definition at line 175 of file atmdev.h.

#define ATM_SC_TX   2048 /* enable TX single-copy */

Definition at line 176 of file atmdev.h.

#define ATM_SETBACKEND   _IOW('a',ATMIOC_SPECIAL+2,atm_backend_t)

Definition at line 97 of file atmdev.h.

#define ATM_SETCIRANGE   _IOW('a',ATMIOC_ITF+11,struct atmif_sioc)

Definition at line 72 of file atmdev.h.

#define ATM_SETESI   _IOW('a',ATMIOC_ITF+12,struct atmif_sioc)

Definition at line 74 of file atmdev.h.

#define ATM_SETESIF   _IOW('a',ATMIOC_ITF+13,struct atmif_sioc)

Definition at line 76 of file atmdev.h.

#define ATM_SETLOOP   _IOW('a',ATMIOC_SARCOM+3,struct atmif_sioc)

Definition at line 91 of file atmdev.h.

#define ATM_SETSC   _IOW('a',ATMIOC_SPECIAL+1,int)

Definition at line 95 of file atmdev.h.

#define ATM_VF2TXT_MAP
Value:
"ADDR", "READY", "PARTIAL", "REGIS", \
"RELEASED", "HASQOS", "LISTEN", "META", \
"256", "512", "1024", "2048", \
"SESSION", "HASSAP", "BOUND", "CLOSE"

Definition at line 206 of file atmdev.h.

#define ATM_VS2TXT_MAP   "IDLE", "CONNECTED", "CLOSING", "LISTEN", "INUSE", "BOUND"

Definition at line 203 of file atmdev.h.

#define ATM_VS_BOUND   5 /* VC is bound */

Definition at line 201 of file atmdev.h.

#define ATM_VS_CLOSING   2 /* VC is closing */

Definition at line 198 of file atmdev.h.

#define ATM_VS_CONNECTED   1 /* VC is connected */

Definition at line 197 of file atmdev.h.

#define ATM_VS_IDLE   0 /* VC is not used */

Definition at line 196 of file atmdev.h.

#define ATM_VS_INUSE   4 /* VC is in use (registered with atmsigd) */

Definition at line 200 of file atmdev.h.

#define ATM_VS_LISTEN   3 /* VC is listening for incoming setups */

Definition at line 199 of file atmdev.h.

#define ESI_LEN   6

Definition at line 15 of file atmdev.h.

Variable Documentation