blob: 1e3484112ae0f3c090f4d2407ea63ec0509a88c2 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 Baod7db5942015-01-28 10:07:51 -080021#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 Cheng655a7c02013-10-16 16:09:24 -070022struct sonet_stats {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define __HANDLE_ITEM(i) int i
Tao Baod7db5942015-01-28 10:07:51 -080025 __SONET_ITEMS
Ben Cheng655a7c02013-10-16 16:09:24 -070026#undef __HANDLE_ITEM
Tao Baod7db5942015-01-28 10:07:51 -080027} __attribute__((packed));
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029#define SONET_GETSTAT _IOR('a', ATMIOC_PHYTYP, struct sonet_stats)
30#define SONET_GETSTATZ _IOR('a', ATMIOC_PHYTYP + 1, struct sonet_stats)
31#define SONET_SETDIAG _IOWR('a', ATMIOC_PHYTYP + 2, int)
32#define SONET_CLRDIAG _IOWR('a', ATMIOC_PHYTYP + 3, int)
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034#define SONET_GETDIAG _IOR('a', ATMIOC_PHYTYP + 4, int)
35#define SONET_SETFRAMING _IOW('a', ATMIOC_PHYTYP + 5, int)
36#define SONET_GETFRAMING _IOR('a', ATMIOC_PHYTYP + 6, int)
37#define SONET_GETFRSENSE _IOR('a', ATMIOC_PHYTYP + 7, unsigned char[SONET_FRSENSE_SIZE])
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define SONET_INS_SBIP 1
40#define SONET_INS_LBIP 2
41#define SONET_INS_PBIP 4
42#define SONET_INS_FRAME 8
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define SONET_INS_LOS 16
45#define SONET_INS_LAIS 32
46#define SONET_INS_PAIS 64
47#define SONET_INS_HCS 128
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define SONET_FRAME_SONET 0
50#define SONET_FRAME_SDH 1
51#define SONET_FRSENSE_SIZE 6
52#endif
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */