122851890Sopenharmony_ci/**************************************************************************** 222851890Sopenharmony_ci **************************************************************************** 322851890Sopenharmony_ci *** 422851890Sopenharmony_ci *** This header was automatically generated from a Linux kernel header 522851890Sopenharmony_ci *** of the same name, to make information necessary for userspace to 622851890Sopenharmony_ci *** call into the kernel available to libc. It contains only constants, 722851890Sopenharmony_ci *** structures, and macros generated from the original header, and thus, 822851890Sopenharmony_ci *** contains no copyrightable information. 922851890Sopenharmony_ci *** 1022851890Sopenharmony_ci *** To edit the content of this header, modify the corresponding 1122851890Sopenharmony_ci *** source file (e.g. under external/kernel-headers/original/) then 1222851890Sopenharmony_ci *** run bionic/libc/kernel/tools/update_all.py 1322851890Sopenharmony_ci *** 1422851890Sopenharmony_ci *** Any manual change here will be lost the next time this script will 1522851890Sopenharmony_ci *** be run. You've been warned! 1622851890Sopenharmony_ci *** 1722851890Sopenharmony_ci **************************************************************************** 1822851890Sopenharmony_ci ****************************************************************************/ 1922851890Sopenharmony_ci#ifndef __HDLC_IOCTL_H__ 2022851890Sopenharmony_ci#define __HDLC_IOCTL_H__ 2122851890Sopenharmony_ci#define GENERIC_HDLC_VERSION 4 2222851890Sopenharmony_ci#define CLOCK_DEFAULT 0 2322851890Sopenharmony_ci#define CLOCK_EXT 1 2422851890Sopenharmony_ci#define CLOCK_INT 2 2522851890Sopenharmony_ci#define CLOCK_TXINT 3 2622851890Sopenharmony_ci#define CLOCK_TXFROMRX 4 2722851890Sopenharmony_ci#define ENCODING_DEFAULT 0 2822851890Sopenharmony_ci#define ENCODING_NRZ 1 2922851890Sopenharmony_ci#define ENCODING_NRZI 2 3022851890Sopenharmony_ci#define ENCODING_FM_MARK 3 3122851890Sopenharmony_ci#define ENCODING_FM_SPACE 4 3222851890Sopenharmony_ci#define ENCODING_MANCHESTER 5 3322851890Sopenharmony_ci#define PARITY_DEFAULT 0 3422851890Sopenharmony_ci#define PARITY_NONE 1 3522851890Sopenharmony_ci#define PARITY_CRC16_PR0 2 3622851890Sopenharmony_ci#define PARITY_CRC16_PR1 3 3722851890Sopenharmony_ci#define PARITY_CRC16_PR0_CCITT 4 3822851890Sopenharmony_ci#define PARITY_CRC16_PR1_CCITT 5 3922851890Sopenharmony_ci#define PARITY_CRC32_PR0_CCITT 6 4022851890Sopenharmony_ci#define PARITY_CRC32_PR1_CCITT 7 4122851890Sopenharmony_ci#define LMI_DEFAULT 0 4222851890Sopenharmony_ci#define LMI_NONE 1 4322851890Sopenharmony_ci#define LMI_ANSI 2 4422851890Sopenharmony_ci#define LMI_CCITT 3 4522851890Sopenharmony_ci#define LMI_CISCO 4 4622851890Sopenharmony_ci#ifndef __ASSEMBLY__ 4722851890Sopenharmony_citypedef struct { 4822851890Sopenharmony_ci unsigned int clock_rate; 4922851890Sopenharmony_ci unsigned int clock_type; 5022851890Sopenharmony_ci unsigned short loopback; 5122851890Sopenharmony_ci} sync_serial_settings; 5222851890Sopenharmony_citypedef struct { 5322851890Sopenharmony_ci unsigned int clock_rate; 5422851890Sopenharmony_ci unsigned int clock_type; 5522851890Sopenharmony_ci unsigned short loopback; 5622851890Sopenharmony_ci unsigned int slot_map; 5722851890Sopenharmony_ci} te1_settings; 5822851890Sopenharmony_citypedef struct { 5922851890Sopenharmony_ci unsigned short encoding; 6022851890Sopenharmony_ci unsigned short parity; 6122851890Sopenharmony_ci} raw_hdlc_proto; 6222851890Sopenharmony_citypedef struct { 6322851890Sopenharmony_ci unsigned int t391; 6422851890Sopenharmony_ci unsigned int t392; 6522851890Sopenharmony_ci unsigned int n391; 6622851890Sopenharmony_ci unsigned int n392; 6722851890Sopenharmony_ci unsigned int n393; 6822851890Sopenharmony_ci unsigned short lmi; 6922851890Sopenharmony_ci unsigned short dce; 7022851890Sopenharmony_ci} fr_proto; 7122851890Sopenharmony_citypedef struct { 7222851890Sopenharmony_ci unsigned int dlci; 7322851890Sopenharmony_ci} fr_proto_pvc; 7422851890Sopenharmony_citypedef struct { 7522851890Sopenharmony_ci unsigned int dlci; 7622851890Sopenharmony_ci char master[IFNAMSIZ]; 7722851890Sopenharmony_ci} fr_proto_pvc_info; 7822851890Sopenharmony_citypedef struct { 7922851890Sopenharmony_ci unsigned int interval; 8022851890Sopenharmony_ci unsigned int timeout; 8122851890Sopenharmony_ci} cisco_proto; 8222851890Sopenharmony_citypedef struct { 8322851890Sopenharmony_ci unsigned short dce; 8422851890Sopenharmony_ci unsigned int modulo; 8522851890Sopenharmony_ci unsigned int window; 8622851890Sopenharmony_ci unsigned int t1; 8722851890Sopenharmony_ci unsigned int t2; 8822851890Sopenharmony_ci unsigned int n2; 8922851890Sopenharmony_ci} x25_hdlc_proto; 9022851890Sopenharmony_ci#endif 9122851890Sopenharmony_ci#endif 92