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 _LINUX_MTIO_H
     20 #define _LINUX_MTIO_H
     21 #include <linux/types.h>
     22 #include <linux/ioctl.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 struct mtop {
     25  short mt_op;
     26  int mt_count;
     27 };
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define MTRESET 0
     30 #define MTFSF 1
     31 #define MTBSF 2
     32 #define MTFSR 3
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 #define MTBSR 4
     35 #define MTWEOF 5
     36 #define MTREW 6
     37 #define MTOFFL 7
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 #define MTNOP 8
     40 #define MTRETEN 9
     41 #define MTBSFM 10
     42 #define MTFSFM 11
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44 #define MTEOM 12
     45 #define MTERASE 13
     46 #define MTRAS1 14
     47 #define MTRAS2 15
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49 #define MTRAS3 16
     50 #define MTSETBLK 20
     51 #define MTSETDENSITY 21
     52 #define MTSEEK 22
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54 #define MTTELL 23
     55 #define MTSETDRVBUFFER 24
     56 #define MTFSS 25
     57 #define MTBSS 26
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 #define MTWSM 27
     60 #define MTLOCK 28
     61 #define MTUNLOCK 29
     62 #define MTLOAD 30
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define MTUNLOAD 31
     65 #define MTCOMPRESSION 32
     66 #define MTSETPART 33
     67 #define MTMKPART 34
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69 #define MTWEOFI 35
     70 struct mtget {
     71  long mt_type;
     72  long mt_resid;
     73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     74  long mt_dsreg;
     75  long mt_gstat;
     76  long mt_erreg;
     77  __kernel_daddr_t mt_fileno;
     78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     79  __kernel_daddr_t mt_blkno;
     80 };
     81 #define MT_ISUNKNOWN 0x01
     82 #define MT_ISQIC02 0x02
     83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     84 #define MT_ISWT5150 0x03
     85 #define MT_ISARCHIVE_5945L2 0x04
     86 #define MT_ISCMSJ500 0x05
     87 #define MT_ISTDC3610 0x06
     88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     89 #define MT_ISARCHIVE_VP60I 0x07
     90 #define MT_ISARCHIVE_2150L 0x08
     91 #define MT_ISARCHIVE_2060L 0x09
     92 #define MT_ISARCHIVESC499 0x0A
     93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     94 #define MT_ISQIC02_ALL_FEATURES 0x0F
     95 #define MT_ISWT5099EEN24 0x11
     96 #define MT_ISTEAC_MT2ST 0x12
     97 #define MT_ISEVEREX_FT40A 0x32
     98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     99 #define MT_ISDDS1 0x51
    100 #define MT_ISDDS2 0x52
    101 #define MT_ISONSTREAM_SC 0x61
    102 #define MT_ISSCSI1 0x71
    103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    104 #define MT_ISSCSI2 0x72
    105 #define MT_ISFTAPE_UNKNOWN 0x800000
    106 #define MT_ISFTAPE_FLAG 0x800000
    107 struct mtpos {
    108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    109  long mt_blkno;
    110 };
    111 #define MTIOCTOP _IOW('m', 1, struct mtop)
    112 #define MTIOCGET _IOR('m', 2, struct mtget)
    113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    114 #define MTIOCPOS _IOR('m', 3, struct mtpos)
    115 #define GMT_EOF(x) ((x) & 0x80000000)
    116 #define GMT_BOT(x) ((x) & 0x40000000)
    117 #define GMT_EOT(x) ((x) & 0x20000000)
    118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    119 #define GMT_SM(x) ((x) & 0x10000000)
    120 #define GMT_EOD(x) ((x) & 0x08000000)
    121 #define GMT_WR_PROT(x) ((x) & 0x04000000)
    122 #define GMT_ONLINE(x) ((x) & 0x01000000)
    123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    124 #define GMT_D_6250(x) ((x) & 0x00800000)
    125 #define GMT_D_1600(x) ((x) & 0x00400000)
    126 #define GMT_D_800(x) ((x) & 0x00200000)
    127 #define GMT_DR_OPEN(x) ((x) & 0x00040000)
    128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    129 #define GMT_IM_REP_EN(x) ((x) & 0x00010000)
    130 #define GMT_CLN(x) ((x) & 0x00008000)
    131 #define MT_ST_BLKSIZE_SHIFT 0
    132 #define MT_ST_BLKSIZE_MASK 0xffffff
    133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    134 #define MT_ST_DENSITY_SHIFT 24
    135 #define MT_ST_DENSITY_MASK 0xff000000
    136 #define MT_ST_SOFTERR_SHIFT 0
    137 #define MT_ST_SOFTERR_MASK 0xffff
    138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    139 #define MT_ST_OPTIONS 0xf0000000
    140 #define MT_ST_BOOLEANS 0x10000000
    141 #define MT_ST_SETBOOLEANS 0x30000000
    142 #define MT_ST_CLEARBOOLEANS 0x40000000
    143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    144 #define MT_ST_WRITE_THRESHOLD 0x20000000
    145 #define MT_ST_DEF_BLKSIZE 0x50000000
    146 #define MT_ST_DEF_OPTIONS 0x60000000
    147 #define MT_ST_TIMEOUTS 0x70000000
    148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    149 #define MT_ST_SET_TIMEOUT (MT_ST_TIMEOUTS | 0x000000)
    150 #define MT_ST_SET_LONG_TIMEOUT (MT_ST_TIMEOUTS | 0x100000)
    151 #define MT_ST_SET_CLN 0x80000000
    152 #define MT_ST_BUFFER_WRITES 0x1
    153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    154 #define MT_ST_ASYNC_WRITES 0x2
    155 #define MT_ST_READ_AHEAD 0x4
    156 #define MT_ST_DEBUGGING 0x8
    157 #define MT_ST_TWO_FM 0x10
    158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    159 #define MT_ST_FAST_MTEOM 0x20
    160 #define MT_ST_AUTO_LOCK 0x40
    161 #define MT_ST_DEF_WRITES 0x80
    162 #define MT_ST_CAN_BSR 0x100
    163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    164 #define MT_ST_NO_BLKLIMS 0x200
    165 #define MT_ST_CAN_PARTITIONS 0x400
    166 #define MT_ST_SCSI2LOGICAL 0x800
    167 #define MT_ST_SYSV 0x1000
    168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    169 #define MT_ST_NOWAIT 0x2000
    170 #define MT_ST_SILI 0x4000
    171 #define MT_ST_NOWAIT_EOF 0x8000
    172 #define MT_ST_CLEAR_DEFAULT 0xfffff
    173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    174 #define MT_ST_DEF_DENSITY (MT_ST_DEF_OPTIONS | 0x100000)
    175 #define MT_ST_DEF_COMPRESSION (MT_ST_DEF_OPTIONS | 0x200000)
    176 #define MT_ST_DEF_DRVBUFFER (MT_ST_DEF_OPTIONS | 0x300000)
    177 #define MT_ST_HPLOADER_OFFSET 10000
    178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
    179 #endif
    180