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 _UAPISDLA_H
     20 #define _UAPISDLA_H
     21 #define SDLA_TYPES
     22 #define SDLA_S502A 5020
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define SDLA_S502E 5021
     25 #define SDLA_S503 5030
     26 #define SDLA_S507 5070
     27 #define SDLA_S508 5080
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define SDLA_S509 5090
     30 #define SDLA_UNKNOWN -1
     31 #define SDLA_S508_PORT_V35 0x00
     32 #define SDLA_S508_PORT_RS232 0x02
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define SDLA_CPU_3M 0x00
     35 #define SDLA_CPU_5M 0x01
     36 #define SDLA_CPU_7M 0x02
     37 #define SDLA_CPU_8M 0x03
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define SDLA_CPU_10M 0x04
     40 #define SDLA_CPU_16M 0x05
     41 #define SDLA_CPU_12M 0x06
     42 #define SDLA_IDENTIFY (FRAD_LAST_IOCTL + 1)
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define SDLA_CPUSPEED (FRAD_LAST_IOCTL + 2)
     45 #define SDLA_PROTOCOL (FRAD_LAST_IOCTL + 3)
     46 #define SDLA_CLEARMEM (FRAD_LAST_IOCTL + 4)
     47 #define SDLA_WRITEMEM (FRAD_LAST_IOCTL + 5)
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define SDLA_READMEM (FRAD_LAST_IOCTL + 6)
     50 struct sdla_mem {
     51  int addr;
     52  int len;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54  void __user *data;
     55 };
     56 #define SDLA_START (FRAD_LAST_IOCTL + 7)
     57 #define SDLA_STOP (FRAD_LAST_IOCTL + 8)
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define SDLA_NMIADDR 0x0000
     60 #define SDLA_CONF_ADDR 0x0010
     61 #define SDLA_S502A_NMIADDR 0x0066
     62 #define SDLA_CODE_BASEADDR 0x0100
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define SDLA_WINDOW_SIZE 0x2000
     65 #define SDLA_ADDR_MASK 0x1FFF
     66 #define SDLA_MAX_DATA 4080
     67 #define SDLA_MAX_MTU 4072
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define SDLA_MAX_DLCI 24
     70 struct sdla_conf {
     71  short station;
     72  short config;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  short kbaud;
     75  short clocking;
     76  short max_frm;
     77  short T391;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  short T392;
     80  short N391;
     81  short N392;
     82  short N393;
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84  short CIR_fwd;
     85  short Bc_fwd;
     86  short Be_fwd;
     87  short CIR_bwd;
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89  short Bc_bwd;
     90  short Be_bwd;
     91 };
     92 struct sdla_dlci_conf {
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94  short config;
     95  short CIR_fwd;
     96  short Bc_fwd;
     97  short Be_fwd;
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99  short CIR_bwd;
    100  short Bc_bwd;
    101  short Be_bwd;
    102  short Tc_fwd;
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104  short Tc_bwd;
    105  short Tf_max;
    106  short Tb_max;
    107 };
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109 #endif
    110