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

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

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/sonet.h (Version linux-6.12-rc7) and /include/linux/sonet.h (Version linux-2.6.32.71)


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

~ [ 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