Revert "Roll NDK to r11c and extract it into its own repository."
[android_tools.git] / ndk / platforms / android-16 / arch-arm / usr / include / linux / ftape.h
blobbb1527ca5abba4d232c5320b78f6e5a6a5549943
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 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _FTAPE_H
13 #define _FTAPE_H
15 #define FTAPE_VERSION "ftape v3.04d 25/11/97"
17 #include <linux/types.h>
18 #include <linux/mtio.h>
20 #define FT_SECTOR(x) (x+1)
21 #define FT_SECTOR_SIZE 1024
22 #define FT_SECTORS_PER_SEGMENT 32
23 #define FT_ECC_SECTORS 3
24 #define FT_SEGMENT_SIZE ((FT_SECTORS_PER_SEGMENT - FT_ECC_SECTORS) * FT_SECTOR_SIZE)
25 #define FT_BUFF_SIZE (FT_SECTORS_PER_SEGMENT * FT_SECTOR_SIZE)
27 #define FTAPE_SEL_A 0
28 #define FTAPE_SEL_B 1
29 #define FTAPE_SEL_C 2
30 #define FTAPE_SEL_D 3
31 #define FTAPE_SEL_MASK 3
32 #define FTAPE_SEL(unit) ((unit) & FTAPE_SEL_MASK)
33 #define FTAPE_NO_REWIND 4
35 typedef union {
36 struct {
37 __u8 error;
38 __u8 command;
39 } error;
40 long space;
41 } ft_drive_error;
42 typedef union {
43 struct {
44 __u8 drive_status;
45 __u8 drive_config;
46 __u8 tape_status;
47 } status;
48 long space;
49 } ft_drive_status;
51 #endif