summaryrefslogtreecommitdiffstats
path: root/arch/mips64/kernel/ioctl32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips64/kernel/ioctl32.c')
-rw-r--r--arch/mips64/kernel/ioctl32.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/mips64/kernel/ioctl32.c b/arch/mips64/kernel/ioctl32.c
index 81bb6d5df..9402aaaff 100644
--- a/arch/mips64/kernel/ioctl32.c
+++ b/arch/mips64/kernel/ioctl32.c
@@ -26,6 +26,7 @@
#include <linux/elevator.h>
#include <linux/auto_fs.h>
#include <linux/ext2_fs.h>
+#include <linux/raid/md_u.h>
#include <asm/types.h>
#include <asm/uaccess.h>
@@ -770,6 +771,34 @@ static struct ioctl32_list ioctl32_handler_table[] = {
IOCTL32_DEFAULT(BLKELVGET),
IOCTL32_DEFAULT(BLKELVSET),
+#ifdef CONFIG_MD
+ /* status */
+ IOCTL32_DEFAULT(RAID_VERSION),
+ IOCTL32_DEFAULT(GET_ARRAY_INFO),
+ IOCTL32_DEFAULT(GET_DISK_INFO),
+ IOCTL32_DEFAULT(PRINT_RAID_DEBUG),
+ IOCTL32_DEFAULT(RAID_AUTORUN),
+
+ /* configuration */
+ IOCTL32_DEFAULT(CLEAR_ARRAY),
+ IOCTL32_DEFAULT(ADD_NEW_DISK),
+ IOCTL32_DEFAULT(HOT_REMOVE_DISK),
+ IOCTL32_DEFAULT(SET_ARRAY_INFO),
+ IOCTL32_DEFAULT(SET_DISK_INFO),
+ IOCTL32_DEFAULT(WRITE_RAID_INFO),
+ IOCTL32_DEFAULT(UNPROTECT_ARRAY),
+ IOCTL32_DEFAULT(PROTECT_ARRAY),
+ IOCTL32_DEFAULT(HOT_ADD_DISK),
+ IOCTL32_DEFAULT(SET_DISK_FAULTY),
+
+ /* usage */
+ IOCTL32_DEFAULT(RUN_ARRAY),
+ IOCTL32_DEFAULT(START_ARRAY),
+ IOCTL32_DEFAULT(STOP_ARRAY),
+ IOCTL32_DEFAULT(STOP_ARRAY_RO),
+ IOCTL32_DEFAULT(RESTART_ARRAY_RW),
+#endif /* CONFIG_MD */
+
IOCTL32_DEFAULT(MTIOCTOP), /* mtio.h ioctls */
IOCTL32_HANDLER(MTIOCGET32, mt_ioctl_trans),
IOCTL32_HANDLER(MTIOCPOS32, mt_ioctl_trans),