1 #ifndef _SCSI_IOCTL_H 2 #define _SCSI_IOCTL_H 3 4 #ifndef _CONFIG_H 5 #include <linux/config.h> 6 #endif 7 8 #define SCSI_IOCTL_PROBE_HOST 0 9 #define SCSI_IOCTL_SEND_COMMAND 1 10 #define SCSI_IOCTL_TEST_UNIT_READY 2 11 /* The door lock/unlock constants are compatible with Sun constants for 12 the cdrom */ 13 #define SCSI_IOCTL_DOORLOCK 0x5380 /* lock the eject mechanism */ 14 #define SCSI_IOCTL_DOORUNLOCK 0x5381 /* unlock the mechanism */ 15 16 #define SCSI_REMOVAL_PREVENT 1 17 #define SCSI_REMOVAL_ALLOW 0 18 19 #ifdef CONFIG_BLK_DEV_SD 20 /* Should start at 128 */ 21 #endif 22 23 #ifdef CONFIG_BLK_DEV_SD 24 /* Should start at 256 */ 25 #endif 26 27 #endif 28 29