diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/uapi/linux/sonet.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/uapi/linux/sonet.h')
| -rw-r--r-- | include/uapi/linux/sonet.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/include/uapi/linux/sonet.h b/include/uapi/linux/sonet.h new file mode 100644 index 000000000000..cc54acee81ba --- /dev/null +++ b/include/uapi/linux/sonet.h | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | /* sonet.h - SONET/SHD physical layer control */ | ||
| 2 | |||
| 3 | /* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ | ||
| 4 | |||
| 5 | |||
| 6 | #ifndef _UAPILINUX_SONET_H | ||
| 7 | #define _UAPILINUX_SONET_H | ||
| 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 */ | ||
| 43 | |||
| 44 | #define SONET_INS_SBIP 1 /* section BIP */ | ||
| 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 | |||
| 60 | #endif /* _UAPILINUX_SONET_H */ | ||
