~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/sonet.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

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

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php