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

Go to the source code of this file.

Data Structures

struct  zatm_vcc
 
struct  zatm_dev
 
struct  zatm_skb_prv
 

Macros

#define DEV_LABEL   "zatm"
 
#define MAX_AAL5_PDU   10240 /* allocate for AAL5 PDUs of this size */
 
#define MAX_RX_SIZE_LD   14 /* ceil(log2((MAX_AAL5_PDU+47)/48)) */
 
#define LOW_MARK   12 /* start adding new buffers if less than 12 */
 
#define HIGH_MARK   30 /* stop adding buffers after reaching 30 */
 
#define OFF_CNG_THRES   5 /* threshold for offset changes */
 
#define RX_SIZE   2 /* RX lookup entry size (in bytes) */
 
#define NR_POOLS   32 /* number of free buffer pointers */
 
#define POOL_SIZE   8 /* buffer entry size (in bytes) */
 
#define NR_SHAPERS   16 /* number of shapers */
 
#define SHAPER_SIZE   4 /* shaper entry size (in bytes) */
 
#define VC_SIZE   32 /* VC dsc (TX or RX) size (in bytes) */
 
#define RING_ENTRIES   32 /* ring entries (without back pointer) */
 
#define RING_WORDS   4 /* ring element size */
 
#define RING_SIZE   (sizeof(unsigned long)*(RING_ENTRIES+1)*RING_WORDS)
 
#define NR_MBX   4 /* four mailboxes */
 
#define MBX_RX_0   0 /* mailbox indices */
 
#define MBX_RX_1   1
 
#define MBX_TX_0   2
 
#define MBX_TX_1   3
 
#define ZATM_DEV(d)   ((struct zatm_dev *) (d)->dev_data)
 
#define ZATM_VCC(d)   ((struct zatm_vcc *) (d)->dev_data)
 
#define ZATM_PRV_DSC(skb)   (((struct zatm_skb_prv *) (skb)->cb)->dsc)
 

Macro Definition Documentation

#define DEV_LABEL   "zatm"

Definition at line 16 of file zatm.h.

#define HIGH_MARK   30 /* stop adding buffers after reaching 30 */

Definition at line 22 of file zatm.h.

#define LOW_MARK   12 /* start adding new buffers if less than 12 */

Definition at line 21 of file zatm.h.

#define MAX_AAL5_PDU   10240 /* allocate for AAL5 PDUs of this size */

Definition at line 18 of file zatm.h.

#define MAX_RX_SIZE_LD   14 /* ceil(log2((MAX_AAL5_PDU+47)/48)) */

Definition at line 19 of file zatm.h.

#define MBX_RX_0   0 /* mailbox indices */

Definition at line 37 of file zatm.h.

#define MBX_RX_1   1

Definition at line 38 of file zatm.h.

#define MBX_TX_0   2

Definition at line 39 of file zatm.h.

#define MBX_TX_1   3

Definition at line 40 of file zatm.h.

#define NR_MBX   4 /* four mailboxes */

Definition at line 36 of file zatm.h.

#define NR_POOLS   32 /* number of free buffer pointers */

Definition at line 26 of file zatm.h.

#define NR_SHAPERS   16 /* number of shapers */

Definition at line 28 of file zatm.h.

#define OFF_CNG_THRES   5 /* threshold for offset changes */

Definition at line 23 of file zatm.h.

#define POOL_SIZE   8 /* buffer entry size (in bytes) */

Definition at line 27 of file zatm.h.

#define RING_ENTRIES   32 /* ring entries (without back pointer) */

Definition at line 32 of file zatm.h.

#define RING_SIZE   (sizeof(unsigned long)*(RING_ENTRIES+1)*RING_WORDS)

Definition at line 34 of file zatm.h.

#define RING_WORDS   4 /* ring element size */

Definition at line 33 of file zatm.h.

#define RX_SIZE   2 /* RX lookup entry size (in bytes) */

Definition at line 25 of file zatm.h.

#define SHAPER_SIZE   4 /* shaper entry size (in bytes) */

Definition at line 29 of file zatm.h.

#define VC_SIZE   32 /* VC dsc (TX or RX) size (in bytes) */

Definition at line 30 of file zatm.h.

#define ZATM_DEV (   d)    ((struct zatm_dev *) (d)->dev_data)

Definition at line 92 of file zatm.h.

#define ZATM_PRV_DSC (   skb)    (((struct zatm_skb_prv *) (skb)->cb)->dsc)

Definition at line 101 of file zatm.h.

#define ZATM_VCC (   d)    ((struct zatm_vcc *) (d)->dev_data)

Definition at line 93 of file zatm.h.