public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82c95c1
)
tape: initial tape ioctls
author
Alan Cox
<alan@linux.intel.com>
Tue, 3 Jul 2018 15:47:53 +0000
(16:47 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 3 Jul 2018 15:47:53 +0000
(16:47 +0100)
Kernel/include/tape.h
[new file with mode: 0644]
patch
|
blob
diff --git a/Kernel/include/tape.h
b/Kernel/include/tape.h
new file mode 100644
(file)
index 0000000..
9afc719
--- /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