| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 1 | /**************************************************************************** | 
|  | 2 | **************************************************************************** | 
|  | 3 | *** | 
|  | 4 | ***   This header was automatically generated from a Linux kernel header | 
|  | 5 | ***   of the same name, to make information necessary for userspace to | 
|  | 6 | ***   call into the kernel available to libc.  It contains only constants, | 
|  | 7 | ***   structures, and macros generated from the original header, and thus, | 
|  | 8 | ***   contains no copyrightable information. | 
|  | 9 | *** | 
|  | 10 | ***   To edit the content of this header, modify the corresponding | 
|  | 11 | ***   source file (e.g. under external/kernel-headers/original/) then | 
|  | 12 | ***   run bionic/libc/kernel/tools/update_all.py | 
|  | 13 | *** | 
|  | 14 | ***   Any manual change here will be lost the next time this script will | 
|  | 15 | ***   be run. You've been warned! | 
|  | 16 | *** | 
|  | 17 | **************************************************************************** | 
|  | 18 | ****************************************************************************/ | 
|  | 19 | #ifndef _UAPILINUX_SONET_H | 
|  | 20 | #define _UAPILINUX_SONET_H | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 21 | #define __SONET_ITEMS __HANDLE_ITEM(section_bip); __HANDLE_ITEM(line_bip); __HANDLE_ITEM(path_bip); __HANDLE_ITEM(line_febe); __HANDLE_ITEM(path_febe); __HANDLE_ITEM(corr_hcs); __HANDLE_ITEM(uncorr_hcs); __HANDLE_ITEM(tx_cells); __HANDLE_ITEM(rx_cells); | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 22 | struct sonet_stats { | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define __HANDLE_ITEM(i) int i | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 24 | __SONET_ITEMS | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 25 | #undef __HANDLE_ITEM | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 26 | } __attribute__((packed)); | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | #define SONET_GETSTAT _IOR('a', ATMIOC_PHYTYP, struct sonet_stats) | 
|  | 28 | #define SONET_GETSTATZ _IOR('a', ATMIOC_PHYTYP + 1, struct sonet_stats) | 
|  | 29 | #define SONET_SETDIAG _IOWR('a', ATMIOC_PHYTYP + 2, int) | 
|  | 30 | #define SONET_CLRDIAG _IOWR('a', ATMIOC_PHYTYP + 3, int) | 
| Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 31 | #define SONET_GETDIAG _IOR('a', ATMIOC_PHYTYP + 4, int) | 
|  | 32 | #define SONET_SETFRAMING _IOW('a', ATMIOC_PHYTYP + 5, int) | 
|  | 33 | #define SONET_GETFRAMING _IOR('a', ATMIOC_PHYTYP + 6, int) | 
|  | 34 | #define SONET_GETFRSENSE _IOR('a', ATMIOC_PHYTYP + 7, unsigned char[SONET_FRSENSE_SIZE]) | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define SONET_INS_SBIP 1 | 
|  | 36 | #define SONET_INS_LBIP 2 | 
|  | 37 | #define SONET_INS_PBIP 4 | 
|  | 38 | #define SONET_INS_FRAME 8 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define SONET_INS_LOS 16 | 
|  | 40 | #define SONET_INS_LAIS 32 | 
|  | 41 | #define SONET_INS_PAIS 64 | 
|  | 42 | #define SONET_INS_HCS 128 | 
| Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define SONET_FRAME_SONET 0 | 
|  | 44 | #define SONET_FRAME_SDH 1 | 
|  | 45 | #define SONET_FRSENSE_SIZE 6 | 
|  | 46 | #endif |