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 _FTAPE_H
20#define _FTAPE_H
21#define FTAPE_VERSION "ftape v3.04d 25/11/97"
22#include <linux/types.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/mtio.h>
25#define FT_SECTOR(x) (x+1)
26#define FT_SECTOR_SIZE 1024
27#define FT_SECTORS_PER_SEGMENT 32
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define FT_ECC_SECTORS 3
30#define FT_SEGMENT_SIZE ((FT_SECTORS_PER_SEGMENT - FT_ECC_SECTORS) * FT_SECTOR_SIZE)
31#define FT_BUFF_SIZE (FT_SECTORS_PER_SEGMENT * FT_SECTOR_SIZE)
32#define FTAPE_SEL_A 0
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define FTAPE_SEL_B 1
35#define FTAPE_SEL_C 2
36#define FTAPE_SEL_D 3
37#define FTAPE_SEL_MASK 3
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define FTAPE_SEL(unit) ((unit) & FTAPE_SEL_MASK)
40#define FTAPE_NO_REWIND 4
41typedef union {
42 struct {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __u8 error;
45 __u8 command;
46 } error;
47 long space;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49} ft_drive_error;
50typedef union {
51 struct {
52 __u8 drive_status;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __u8 drive_config;
55 __u8 tape_status;
56 } status;
57 long space;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59} ft_drive_status;
60#endif
61