mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[SCSI] sg: Add target reset support
Adds support for target reset to SG_SCSI_RESET. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Acked-by: Douglas Gilbert <dougg@torque.net> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
f11f594edb
commit
39120e1170
2 changed files with 4 additions and 0 deletions
|
@ -1026,6 +1026,9 @@ sg_ioctl(struct inode *inode, struct file *filp,
|
||||||
case SG_SCSI_RESET_DEVICE:
|
case SG_SCSI_RESET_DEVICE:
|
||||||
val = SCSI_TRY_RESET_DEVICE;
|
val = SCSI_TRY_RESET_DEVICE;
|
||||||
break;
|
break;
|
||||||
|
case SG_SCSI_RESET_TARGET:
|
||||||
|
val = SCSI_TRY_RESET_TARGET;
|
||||||
|
break;
|
||||||
case SG_SCSI_RESET_BUS:
|
case SG_SCSI_RESET_BUS:
|
||||||
val = SCSI_TRY_RESET_BUS;
|
val = SCSI_TRY_RESET_BUS;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -206,6 +206,7 @@ typedef struct sg_req_info { /* used by SG_GET_REQUEST_TABLE ioctl() */
|
||||||
#define SG_SCSI_RESET_DEVICE 1
|
#define SG_SCSI_RESET_DEVICE 1
|
||||||
#define SG_SCSI_RESET_BUS 2
|
#define SG_SCSI_RESET_BUS 2
|
||||||
#define SG_SCSI_RESET_HOST 3
|
#define SG_SCSI_RESET_HOST 3
|
||||||
|
#define SG_SCSI_RESET_TARGET 4
|
||||||
|
|
||||||
/* synchronous SCSI command ioctl, (only in version 3 interface) */
|
/* synchronous SCSI command ioctl, (only in version 3 interface) */
|
||||||
#define SG_IO 0x2285 /* similar effect as write() followed by read() */
|
#define SG_IO 0x2285 /* similar effect as write() followed by read() */
|
||||||
|
|
Loading…
Reference in a new issue