summaryrefslogtreecommitdiffstats
path: root/include/linux/umsdos_fs.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
committer <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
commitbeb116954b9b7f3bb56412b2494b562f02b864b1 (patch)
tree120e997879884e1b9d93b265221b939d2ef1ade1 /include/linux/umsdos_fs.h
parent908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff)
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'include/linux/umsdos_fs.h')
-rw-r--r--include/linux/umsdos_fs.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/include/linux/umsdos_fs.h b/include/linux/umsdos_fs.h
index 170761a5e..b25f0c31e 100644
--- a/include/linux/umsdos_fs.h
+++ b/include/linux/umsdos_fs.h
@@ -16,6 +16,9 @@
#ifndef _LINUX_DIRENT_H
#include <linux/dirent.h>
#endif
+#ifndef _LINUX_IOCTL_H
+#include <linux/ioctl.h>
+#endif
struct umsdos_fake_info {
char fname[13];
@@ -70,19 +73,19 @@ struct umsdos_info{
/* The next ioctl commands operate only on the DOS directory */
/* The file umsdos_progs/umsdosio.c contain a string table */
/* based on the order of those definition. Keep it in sync */
-#define UMSDOS_READDIR_DOS 1234 /* Do a readdir of the DOS directory */
-#define UMSDOS_UNLINK_DOS 1235 /* Erase in the DOS directory only */
-#define UMSDOS_RMDIR_DOS 1236 /* rmdir in the DOS directory only */
-#define UMSDOS_STAT_DOS 1237 /* Get info about a file */
+#define UMSDOS_READDIR_DOS _IO(0x04,210) /* Do a readdir of the DOS directory */
+#define UMSDOS_UNLINK_DOS _IO(0x04,211) /* Erase in the DOS directory only */
+#define UMSDOS_RMDIR_DOS _IO(0x04,212) /* rmdir in the DOS directory only */
+#define UMSDOS_STAT_DOS _IO(0x04,213) /* Get info about a file */
/* The next ioctl commands operate only on the EMD file */
-#define UMSDOS_CREAT_EMD 1238 /* Create a file */
-#define UMSDOS_UNLINK_EMD 1239 /* unlink (rmdir) a file */
-#define UMSDOS_READDIR_EMD 1240 /* read the EMD file only. */
-#define UMSDOS_GETVERSION 1241 /* Get the release number of UMSDOS */
-#define UMSDOS_INIT_EMD 1242 /* Create the EMD file if not there */
-#define UMSDOS_DOS_SETUP 1243 /* Set the defaults of the MsDOS driver */
-
-#define UMSDOS_RENAME_DOS 1244 /* rename a file/directory in the DOS */
+#define UMSDOS_CREAT_EMD _IO(0x04,214) /* Create a file */
+#define UMSDOS_UNLINK_EMD _IO(0x04,215) /* unlink (rmdir) a file */
+#define UMSDOS_READDIR_EMD _IO(0x04,216) /* read the EMD file only. */
+#define UMSDOS_GETVERSION _IO(0x04,217) /* Get the release number of UMSDOS */
+#define UMSDOS_INIT_EMD _IO(0x04,218) /* Create the EMD file if not there */
+#define UMSDOS_DOS_SETUP _IO(0x04,219) /* Set the defaults of the MsDOS driver */
+
+#define UMSDOS_RENAME_DOS _IO(0x04,220) /* rename a file/directory in the DOS */
/* directory only */
struct umsdos_ioctl{
struct dirent dos_dirent;
@@ -133,6 +136,7 @@ extern struct file_operations umsdos_file_operations;
extern struct inode_operations umsdos_file_inode_operations;
extern struct inode_operations umsdos_file_inode_operations_no_bmap;
extern struct inode_operations umsdos_symlink_inode_operations;
+extern int init_umsdos_fs(void);
#include <linux/umsdos_fs.p>