Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sonet.h File Reference

Go to the source code of this file.

Data Structures

struct  sonet_stats
 

Macros

#define __SONET_ITEMS
 
#define __HANDLE_ITEM(i)   int i
 
#define SONET_GETSTAT   _IOR('a',ATMIOC_PHYTYP,struct sonet_stats)
 
#define SONET_GETSTATZ   _IOR('a',ATMIOC_PHYTYP+1,struct sonet_stats)
 
#define SONET_SETDIAG   _IOWR('a',ATMIOC_PHYTYP+2,int)
 
#define SONET_CLRDIAG   _IOWR('a',ATMIOC_PHYTYP+3,int)
 
#define SONET_GETDIAG   _IOR('a',ATMIOC_PHYTYP+4,int)
 
#define SONET_SETFRAMING   _IOW('a',ATMIOC_PHYTYP+5,int)
 
#define SONET_GETFRAMING   _IOR('a',ATMIOC_PHYTYP+6,int)
 
#define SONET_GETFRSENSE
 
#define SONET_INS_SBIP   1 /* section BIP */
 
#define SONET_INS_LBIP   2 /* line BIP */
 
#define SONET_INS_PBIP   4 /* path BIP */
 
#define SONET_INS_FRAME   8 /* out of frame */
 
#define SONET_INS_LOS   16 /* set line to zero */
 
#define SONET_INS_LAIS   32 /* line alarm indication signal */
 
#define SONET_INS_PAIS   64 /* path alarm indication signal */
 
#define SONET_INS_HCS   128 /* insert HCS error */
 
#define SONET_FRAME_SONET   0 /* SONET STS-3 framing */
 
#define SONET_FRAME_SDH   1 /* SDH STM-1 framing */
 
#define SONET_FRSENSE_SIZE   6 /* C1[3],H1[3] (0xff for unknown) */
 

Functions

struct sonet_stats __attribute__ ((packed))
 

Macro Definition Documentation

#define __HANDLE_ITEM (   i)    int i

Definition at line 25 of file sonet.h.

#define __SONET_ITEMS
Value:
__HANDLE_ITEM(section_bip); /* section parity errors (B1) */ \
__HANDLE_ITEM(line_bip); /* line parity errors (B2) */ \
__HANDLE_ITEM(path_bip); /* path parity errors (B3) */ \
__HANDLE_ITEM(line_febe); /* line parity errors at remote */ \
__HANDLE_ITEM(path_febe); /* path parity errors at remote */ \
__HANDLE_ITEM(corr_hcs); /* correctable header errors */ \
__HANDLE_ITEM(uncorr_hcs); /* uncorrectable header errors */ \
__HANDLE_ITEM(tx_cells); /* cells sent */ \
__HANDLE_ITEM(rx_cells); /* cells received */

Definition at line 9 of file sonet.h.

#define SONET_CLRDIAG   _IOWR('a',ATMIOC_PHYTYP+3,int)

Definition at line 33 of file sonet.h.

#define SONET_FRAME_SDH   1 /* SDH STM-1 framing */

Definition at line 54 of file sonet.h.

#define SONET_FRAME_SONET   0 /* SONET STS-3 framing */

Definition at line 53 of file sonet.h.

#define SONET_FRSENSE_SIZE   6 /* C1[3],H1[3] (0xff for unknown) */

Definition at line 56 of file sonet.h.

#define SONET_GETDIAG   _IOR('a',ATMIOC_PHYTYP+4,int)

Definition at line 35 of file sonet.h.

#define SONET_GETFRAMING   _IOR('a',ATMIOC_PHYTYP+6,int)

Definition at line 39 of file sonet.h.

#define SONET_GETFRSENSE
Value:
unsigned char[SONET_FRSENSE_SIZE]) /* get framing sense information */

Definition at line 41 of file sonet.h.

#define SONET_GETSTAT   _IOR('a',ATMIOC_PHYTYP,struct sonet_stats)

Definition at line 27 of file sonet.h.

#define SONET_GETSTATZ   _IOR('a',ATMIOC_PHYTYP+1,struct sonet_stats)

Definition at line 29 of file sonet.h.

#define SONET_INS_FRAME   8 /* out of frame */

Definition at line 47 of file sonet.h.

#define SONET_INS_HCS   128 /* insert HCS error */

Definition at line 51 of file sonet.h.

#define SONET_INS_LAIS   32 /* line alarm indication signal */

Definition at line 49 of file sonet.h.

#define SONET_INS_LBIP   2 /* line BIP */

Definition at line 45 of file sonet.h.

#define SONET_INS_LOS   16 /* set line to zero */

Definition at line 48 of file sonet.h.

#define SONET_INS_PAIS   64 /* path alarm indication signal */

Definition at line 50 of file sonet.h.

#define SONET_INS_PBIP   4 /* path BIP */

Definition at line 46 of file sonet.h.

#define SONET_INS_SBIP   1 /* section BIP */

Definition at line 44 of file sonet.h.

#define SONET_SETDIAG   _IOWR('a',ATMIOC_PHYTYP+2,int)

Definition at line 31 of file sonet.h.

#define SONET_SETFRAMING   _IOW('a',ATMIOC_PHYTYP+5,int)

Definition at line 37 of file sonet.h.

Function Documentation

struct sonet_stats __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.