From: Alan Cox Date: Tue, 3 Jul 2018 15:47:53 +0000 (+0100) Subject: tape: initial tape ioctls X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=77cfb098b04bc5883f8bbb5d8b2234e35e3aa474;p=FUZIX.git tape: initial tape ioctls --- 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