diff options
-rw-r--r-- | drivers/scsi/sg.c | 3 | ||||
-rw-r--r-- | include/scsi/sg.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index ea0edd1b2e76..2010fa039cfe 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -1026,6 +1026,9 @@ sg_ioctl(struct inode *inode, struct file *filp, | |||
1026 | case SG_SCSI_RESET_DEVICE: | 1026 | case SG_SCSI_RESET_DEVICE: |
1027 | val = SCSI_TRY_RESET_DEVICE; | 1027 | val = SCSI_TRY_RESET_DEVICE; |
1028 | break; | 1028 | break; |
1029 | case SG_SCSI_RESET_TARGET: | ||
1030 | val = SCSI_TRY_RESET_TARGET; | ||
1031 | break; | ||
1029 | case SG_SCSI_RESET_BUS: | 1032 | case SG_SCSI_RESET_BUS: |
1030 | val = SCSI_TRY_RESET_BUS; | 1033 | val = SCSI_TRY_RESET_BUS; |
1031 | break; | 1034 | break; |
diff --git a/include/scsi/sg.h b/include/scsi/sg.h index 519c49a0fc11..934ae389671d 100644 --- a/include/scsi/sg.h +++ b/include/scsi/sg.h | |||
@@ -206,6 +206,7 @@ typedef struct sg_req_info { /* used by SG_GET_REQUEST_TABLE ioctl() */ | |||
206 | #define SG_SCSI_RESET_DEVICE 1 | 206 | #define SG_SCSI_RESET_DEVICE 1 |
207 | #define SG_SCSI_RESET_BUS 2 | 207 | #define SG_SCSI_RESET_BUS 2 |
208 | #define SG_SCSI_RESET_HOST 3 | 208 | #define SG_SCSI_RESET_HOST 3 |
209 | #define SG_SCSI_RESET_TARGET 4 | ||
209 | 210 | ||
210 | /* synchronous SCSI command ioctl, (only in version 3 interface) */ | 211 | /* synchronous SCSI command ioctl, (only in version 3 interface) */ |
211 | #define SG_IO 0x2285 /* similar effect as write() followed by read() */ | 212 | #define SG_IO 0x2285 /* similar effect as write() followed by read() */ |