kernel: add a generic eject ioctl
authorAlan Cox <alan@linux.intel.com>
Fri, 19 Oct 2018 18:47:44 +0000 (19:47 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 19 Oct 2018 18:47:44 +0000 (19:47 +0100)
We'll need this later

Kernel/include/kernel.h

index 724b373..1bbae6e 100644 (file)
@@ -745,7 +745,13 @@ struct s_argblk {
 #define HDIO_GET_IDENTITY      0x0102  /* Not yet implemented anywhere */
 #define BLKFLSBUF              0x4103  /* Use the Linux name */
 #define HDIO_RAWCMD            0x4104  /* Issue a raw command, ioctl data
-                                          is device dependant ! */
+                                           is device dependent */
+#define HDIO_EJECT             0x0105  /* Request a media eject */
+
+/*
+ *     Floppy disk ioctl s0x01Fx (see fdc.h)
+ */
+
 /*
  *     Sound ioctls 02xx (see audio.h)
  */
@@ -771,6 +777,7 @@ struct s_argblk {
  *     Tape ioctls 0x06xx (see tape.h)
  */
 
+
 /*
  *     System info shared with user space
  */