Go to the documentation of this file.
6 #ifndef _UAPILINUX_SONET_H
7 #define _UAPILINUX_SONET_H
9 #define __SONET_ITEMS \
10 __HANDLE_ITEM(section_bip); \
11 __HANDLE_ITEM(line_bip); \
12 __HANDLE_ITEM(path_bip); \
13 __HANDLE_ITEM(line_febe); \
14 __HANDLE_ITEM(path_febe); \
15 __HANDLE_ITEM(corr_hcs); \
16 __HANDLE_ITEM(uncorr_hcs); \
17 __HANDLE_ITEM(tx_cells); \
18 __HANDLE_ITEM(rx_cells);
21 #define __HANDLE_ITEM(i) int i
27 #define SONET_GETSTAT _IOR('a',ATMIOC_PHYTYP,struct sonet_stats)
29 #define SONET_GETSTATZ _IOR('a',ATMIOC_PHYTYP+1,struct sonet_stats)
31 #define SONET_SETDIAG _IOWR('a',ATMIOC_PHYTYP+2,int)
33 #define SONET_CLRDIAG _IOWR('a',ATMIOC_PHYTYP+3,int)
35 #define SONET_GETDIAG _IOR('a',ATMIOC_PHYTYP+4,int)
37 #define SONET_SETFRAMING _IOW('a',ATMIOC_PHYTYP+5,int)
39 #define SONET_GETFRAMING _IOR('a',ATMIOC_PHYTYP+6,int)
41 #define SONET_GETFRSENSE _IOR('a',ATMIOC_PHYTYP+7, \
42 unsigned char[SONET_FRSENSE_SIZE])
44 #define SONET_INS_SBIP 1
45 #define SONET_INS_LBIP 2
46 #define SONET_INS_PBIP 4
47 #define SONET_INS_FRAME 8
48 #define SONET_INS_LOS 16
49 #define SONET_INS_LAIS 32
50 #define SONET_INS_PAIS 64
51 #define SONET_INS_HCS 128
53 #define SONET_FRAME_SONET 0
54 #define SONET_FRAME_SDH 1
56 #define SONET_FRSENSE_SIZE 6