Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: sonet.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/* sonet.h - SONET/SHD physical layer control */
[1] Fix | Delete
[2] Fix | Delete
/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
#ifndef LINUX_SONET_H
[6] Fix | Delete
#define LINUX_SONET_H
[7] Fix | Delete
[8] Fix | Delete
#define __SONET_ITEMS \
[9] Fix | Delete
__HANDLE_ITEM(section_bip); /* section parity errors (B1) */ \
[10] Fix | Delete
__HANDLE_ITEM(line_bip); /* line parity errors (B2) */ \
[11] Fix | Delete
__HANDLE_ITEM(path_bip); /* path parity errors (B3) */ \
[12] Fix | Delete
__HANDLE_ITEM(line_febe); /* line parity errors at remote */ \
[13] Fix | Delete
__HANDLE_ITEM(path_febe); /* path parity errors at remote */ \
[14] Fix | Delete
__HANDLE_ITEM(corr_hcs); /* correctable header errors */ \
[15] Fix | Delete
__HANDLE_ITEM(uncorr_hcs); /* uncorrectable header errors */ \
[16] Fix | Delete
__HANDLE_ITEM(tx_cells); /* cells sent */ \
[17] Fix | Delete
__HANDLE_ITEM(rx_cells); /* cells received */
[18] Fix | Delete
[19] Fix | Delete
struct sonet_stats {
[20] Fix | Delete
#define __HANDLE_ITEM(i) int i
[21] Fix | Delete
__SONET_ITEMS
[22] Fix | Delete
#undef __HANDLE_ITEM
[23] Fix | Delete
} __attribute__ ((packed));
[24] Fix | Delete
[25] Fix | Delete
[26] Fix | Delete
#define SONET_GETSTAT _IOR('a',ATMIOC_PHYTYP,struct sonet_stats)
[27] Fix | Delete
/* get statistics */
[28] Fix | Delete
#define SONET_GETSTATZ _IOR('a',ATMIOC_PHYTYP+1,struct sonet_stats)
[29] Fix | Delete
/* ... and zero counters */
[30] Fix | Delete
#define SONET_SETDIAG _IOWR('a',ATMIOC_PHYTYP+2,int)
[31] Fix | Delete
/* set error insertion */
[32] Fix | Delete
#define SONET_CLRDIAG _IOWR('a',ATMIOC_PHYTYP+3,int)
[33] Fix | Delete
/* clear error insertion */
[34] Fix | Delete
#define SONET_GETDIAG _IOR('a',ATMIOC_PHYTYP+4,int)
[35] Fix | Delete
/* query error insertion */
[36] Fix | Delete
#define SONET_SETFRAMING _IOW('a',ATMIOC_PHYTYP+5,int)
[37] Fix | Delete
/* set framing mode (SONET/SDH) */
[38] Fix | Delete
#define SONET_GETFRAMING _IOR('a',ATMIOC_PHYTYP+6,int)
[39] Fix | Delete
/* get framing mode */
[40] Fix | Delete
#define SONET_GETFRSENSE _IOR('a',ATMIOC_PHYTYP+7, \
[41] Fix | Delete
unsigned char[SONET_FRSENSE_SIZE]) /* get framing sense information */
[42] Fix | Delete
[43] Fix | Delete
#define SONET_INS_SBIP 1 /* section BIP */
[44] Fix | Delete
#define SONET_INS_LBIP 2 /* line BIP */
[45] Fix | Delete
#define SONET_INS_PBIP 4 /* path BIP */
[46] Fix | Delete
#define SONET_INS_FRAME 8 /* out of frame */
[47] Fix | Delete
#define SONET_INS_LOS 16 /* set line to zero */
[48] Fix | Delete
#define SONET_INS_LAIS 32 /* line alarm indication signal */
[49] Fix | Delete
#define SONET_INS_PAIS 64 /* path alarm indication signal */
[50] Fix | Delete
#define SONET_INS_HCS 128 /* insert HCS error */
[51] Fix | Delete
[52] Fix | Delete
#define SONET_FRAME_SONET 0 /* SONET STS-3 framing */
[53] Fix | Delete
#define SONET_FRAME_SDH 1 /* SDH STM-1 framing */
[54] Fix | Delete
[55] Fix | Delete
#define SONET_FRSENSE_SIZE 6 /* C1[3],H1[3] (0xff for unknown) */
[56] Fix | Delete
[57] Fix | Delete
[58] Fix | Delete
[59] Fix | Delete
#endif /* LINUX_SONET_H */
[60] Fix | Delete
[61] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function