diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-07-16 08:52:16 +0200 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2007-07-16 08:52:47 +0200 |
commit | 15d10b611fa94b52f004a08a1d4cf7b39de3cba3 (patch) | |
tree | 39b1e114689b71d37677e9733428b355d52d4e44 /include/linux/bsg.h | |
parent | 2c9ecdf40af0554ee9a2b1cbbbbdbc77f90a40e1 (diff) | |
download | kernel-common-15d10b611fa94b52f004a08a1d4cf7b39de3cba3.tar.gz kernel-common-15d10b611fa94b52f004a08a1d4cf7b39de3cba3.tar.bz2 kernel-common-15d10b611fa94b52f004a08a1d4cf7b39de3cba3.zip |
bsg: add SCSI transport-level request support
This enables bsg to handle SCSI transport-level request like SAS
management protocol (SMP).
- add BSG_SUB_PROTOCOL_{SCSI_CMD, SCSI_TMF, SCSI_TRANSPORT} definitions.
- SCSI transport-level requests skip blk_verify_command().
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/bsg.h')
-rw-r--r-- | include/linux/bsg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h index 0dd01f90ba5e..bd998ca6cb2e 100644 --- a/include/linux/bsg.h +++ b/include/linux/bsg.h @@ -1,6 +1,12 @@ #ifndef BSG_H #define BSG_H +#define BSG_PROTOCOL_SCSI 0 + +#define BSG_SUB_PROTOCOL_SCSI_CMD 0 +#define BSG_SUB_PROTOCOL_SCSI_TMF 1 +#define BSG_SUB_PROTOCOL_SCSI_TRANSPORT 2 + struct sg_io_v4 { __s32 guard; /* [i] 'Q' to differentiate from v3 */ __u32 protocol; /* [i] 0 -> SCSI , .... */ |