aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bsg.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2007-07-16 02:52:16 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 02:52:47 -0400
commit15d10b611fa94b52f004a08a1d4cf7b39de3cba3 (patch)
tree39b1e114689b71d37677e9733428b355d52d4e44 /include/linux/bsg.h
parent2c9ecdf40af0554ee9a2b1cbbbbdbc77f90a40e1 (diff)
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/bsg.h b/include/linux/bsg.h
index 0dd01f90ba5..bd998ca6cb2 100644
--- a/include/linux/bsg.h
+++ b/include/linux/bsg.h
@@ -1,6 +1,12 @@
1#ifndef BSG_H 1#ifndef BSG_H
2#define BSG_H 2#define BSG_H
3 3
4#define BSG_PROTOCOL_SCSI 0
5
6#define BSG_SUB_PROTOCOL_SCSI_CMD 0
7#define BSG_SUB_PROTOCOL_SCSI_TMF 1
8#define BSG_SUB_PROTOCOL_SCSI_TRANSPORT 2
9
4struct sg_io_v4 { 10struct sg_io_v4 {
5 __s32 guard; /* [i] 'Q' to differentiate from v3 */ 11 __s32 guard; /* [i] 'Q' to differentiate from v3 */
6 __u32 protocol; /* [i] 0 -> SCSI , .... */ 12 __u32 protocol; /* [i] 0 -> SCSI , .... */