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 X25_KERNEL_H 2022851890Sopenharmony_ci#define X25_KERNEL_H 2122851890Sopenharmony_ci#include <linux/types.h> 2222851890Sopenharmony_ci#include <linux/socket.h> 2322851890Sopenharmony_ci#define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0) 2422851890Sopenharmony_ci#define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1) 2522851890Sopenharmony_ci#define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2) 2622851890Sopenharmony_ci#define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3) 2722851890Sopenharmony_ci#define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4) 2822851890Sopenharmony_ci#define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5) 2922851890Sopenharmony_ci#define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6) 3022851890Sopenharmony_ci#define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7) 3122851890Sopenharmony_ci#define SIOCX25CALLACCPTAPPRV (SIOCPROTOPRIVATE + 8) 3222851890Sopenharmony_ci#define SIOCX25SENDCALLACCPT (SIOCPROTOPRIVATE + 9) 3322851890Sopenharmony_ci#define SIOCX25GDTEFACILITIES (SIOCPROTOPRIVATE + 10) 3422851890Sopenharmony_ci#define SIOCX25SDTEFACILITIES (SIOCPROTOPRIVATE + 11) 3522851890Sopenharmony_ci#define SIOCX25SCAUSEDIAG (SIOCPROTOPRIVATE + 12) 3622851890Sopenharmony_ci#define X25_QBITINCL 1 3722851890Sopenharmony_ci#define X25_PS16 4 3822851890Sopenharmony_ci#define X25_PS32 5 3922851890Sopenharmony_ci#define X25_PS64 6 4022851890Sopenharmony_ci#define X25_PS128 7 4122851890Sopenharmony_ci#define X25_PS256 8 4222851890Sopenharmony_ci#define X25_PS512 9 4322851890Sopenharmony_ci#define X25_PS1024 10 4422851890Sopenharmony_ci#define X25_PS2048 11 4522851890Sopenharmony_ci#define X25_PS4096 12 4622851890Sopenharmony_cistruct x25_address { 4722851890Sopenharmony_ci char x25_addr[16]; 4822851890Sopenharmony_ci}; 4922851890Sopenharmony_cistruct sockaddr_x25 { 5022851890Sopenharmony_ci __kernel_sa_family_t sx25_family; 5122851890Sopenharmony_ci struct x25_address sx25_addr; 5222851890Sopenharmony_ci}; 5322851890Sopenharmony_cistruct x25_subscrip_struct { 5422851890Sopenharmony_ci char device[200 - sizeof(unsigned long)]; 5522851890Sopenharmony_ci unsigned long global_facil_mask; 5622851890Sopenharmony_ci unsigned int extended; 5722851890Sopenharmony_ci}; 5822851890Sopenharmony_ci#define X25_MASK_REVERSE 0x01 5922851890Sopenharmony_ci#define X25_MASK_THROUGHPUT 0x02 6022851890Sopenharmony_ci#define X25_MASK_PACKET_SIZE 0x04 6122851890Sopenharmony_ci#define X25_MASK_WINDOW_SIZE 0x08 6222851890Sopenharmony_ci#define X25_MASK_CALLING_AE 0x10 6322851890Sopenharmony_ci#define X25_MASK_CALLED_AE 0x20 6422851890Sopenharmony_cistruct x25_route_struct { 6522851890Sopenharmony_ci struct x25_address address; 6622851890Sopenharmony_ci unsigned int sigdigits; 6722851890Sopenharmony_ci char device[200]; 6822851890Sopenharmony_ci}; 6922851890Sopenharmony_cistruct x25_facilities { 7022851890Sopenharmony_ci unsigned int winsize_in, winsize_out; 7122851890Sopenharmony_ci unsigned int pacsize_in, pacsize_out; 7222851890Sopenharmony_ci unsigned int throughput; 7322851890Sopenharmony_ci unsigned int reverse; 7422851890Sopenharmony_ci}; 7522851890Sopenharmony_cistruct x25_dte_facilities { 7622851890Sopenharmony_ci __u16 delay_cumul; 7722851890Sopenharmony_ci __u16 delay_target; 7822851890Sopenharmony_ci __u16 delay_max; 7922851890Sopenharmony_ci __u8 min_throughput; 8022851890Sopenharmony_ci __u8 expedited; 8122851890Sopenharmony_ci __u8 calling_len; 8222851890Sopenharmony_ci __u8 called_len; 8322851890Sopenharmony_ci __u8 calling_ae[20]; 8422851890Sopenharmony_ci __u8 called_ae[20]; 8522851890Sopenharmony_ci}; 8622851890Sopenharmony_cistruct x25_calluserdata { 8722851890Sopenharmony_ci unsigned int cudlength; 8822851890Sopenharmony_ci unsigned char cuddata[128]; 8922851890Sopenharmony_ci}; 9022851890Sopenharmony_cistruct x25_causediag { 9122851890Sopenharmony_ci unsigned char cause; 9222851890Sopenharmony_ci unsigned char diagnostic; 9322851890Sopenharmony_ci}; 9422851890Sopenharmony_cistruct x25_subaddr { 9522851890Sopenharmony_ci unsigned int cudmatchlength; 9622851890Sopenharmony_ci}; 9722851890Sopenharmony_ci#endif 98