Home | History | Annotate | Download | only in linux
      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 X25_KERNEL_H
     20 #define X25_KERNEL_H
     21 #include <linux/types.h>
     22 #include <linux/socket.h>
     23 #define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
     24 #define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
     25 #define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2)
     26 #define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3)
     27 #define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
     28 #define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
     29 #define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
     30 #define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7)
     31 #define SIOCX25CALLACCPTAPPRV (SIOCPROTOPRIVATE + 8)
     32 #define SIOCX25SENDCALLACCPT (SIOCPROTOPRIVATE + 9)
     33 #define SIOCX25GDTEFACILITIES (SIOCPROTOPRIVATE + 10)
     34 #define SIOCX25SDTEFACILITIES (SIOCPROTOPRIVATE + 11)
     35 #define SIOCX25SCAUSEDIAG (SIOCPROTOPRIVATE + 12)
     36 #define X25_QBITINCL 1
     37 #define X25_PS16 4
     38 #define X25_PS32 5
     39 #define X25_PS64 6
     40 #define X25_PS128 7
     41 #define X25_PS256 8
     42 #define X25_PS512 9
     43 #define X25_PS1024 10
     44 #define X25_PS2048 11
     45 #define X25_PS4096 12
     46 struct x25_address {
     47   char x25_addr[16];
     48 };
     49 struct sockaddr_x25 {
     50   __kernel_sa_family_t sx25_family;
     51   struct x25_address sx25_addr;
     52 };
     53 struct x25_subscrip_struct {
     54   char device[200 - sizeof(unsigned long)];
     55   unsigned long global_facil_mask;
     56   unsigned int extended;
     57 };
     58 #define X25_MASK_REVERSE 0x01
     59 #define X25_MASK_THROUGHPUT 0x02
     60 #define X25_MASK_PACKET_SIZE 0x04
     61 #define X25_MASK_WINDOW_SIZE 0x08
     62 #define X25_MASK_CALLING_AE 0x10
     63 #define X25_MASK_CALLED_AE 0x20
     64 struct x25_route_struct {
     65   struct x25_address address;
     66   unsigned int sigdigits;
     67   char device[200];
     68 };
     69 struct x25_facilities {
     70   unsigned int winsize_in, winsize_out;
     71   unsigned int pacsize_in, pacsize_out;
     72   unsigned int throughput;
     73   unsigned int reverse;
     74 };
     75 struct x25_dte_facilities {
     76   __u16 delay_cumul;
     77   __u16 delay_target;
     78   __u16 delay_max;
     79   __u8 min_throughput;
     80   __u8 expedited;
     81   __u8 calling_len;
     82   __u8 called_len;
     83   __u8 calling_ae[20];
     84   __u8 called_ae[20];
     85 };
     86 struct x25_calluserdata {
     87   unsigned int cudlength;
     88   unsigned char cuddata[128];
     89 };
     90 struct x25_causediag {
     91   unsigned char cause;
     92   unsigned char diagnostic;
     93 };
     94 struct x25_subaddr {
     95   unsigned int cudmatchlength;
     96 };
     97 #endif
     98