1 /****************************************************************************
2 ****************************************************************************
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.
10 ****************************************************************************
11 ****************************************************************************/
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)
31 #define FTAPE_SEL_MASK 3
32 #define FTAPE_SEL(unit) ((unit) & FTAPE_SEL_MASK)
33 #define FTAPE_NO_REWIND 4