From 77cfb098b04bc5883f8bbb5d8b2234e35e3aa474 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 3 Jul 2018 16:47:53 +0100 Subject: [PATCH] tape: initial tape ioctls --- Kernel/include/tape.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Kernel/include/tape.h diff --git a/Kernel/include/tape.h b/Kernel/include/tape.h new file mode 100644 index 00000000..9afc7199 --- /dev/null +++ b/Kernel/include/tape.h @@ -0,0 +1,21 @@ +#ifndef __TAPE_DOT_H +#define __TAPE_DOT_H + +struct mtstatus { + uint16_t mt_type; + uint16_t mt_file; + uint32_t mt_blkno; +}; + +#define MT_TYPE_UNKNOWN 0 +#define MT_TYPE_CASSETTE 1 +#define MT_TYPE_EXATRON 2 + +/* Add to this subset as needed for tape drive capabilities */ +#define MTSTATUS 0x0600 +#define MTREWIND 0x0601 +#define MTSEEKF 0x0602 +#define MTSEEKB 0x0603 +#define MTERASE 0x0604 + +#endif \ No newline at end of file -- 2.34.1