summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-07-11 15:08:19 +0900
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:37:53 -0400
commit62fe88261b9d865264d857777cf58a0335513151 (patch)
treedb111392d242cabfddebbee7eae6b6d971eec35e /include/scsi
parent2c47f9efbedbe5749b6bb16e59bc11d6e460855f (diff)
downloadblackbird-op-linux-62fe88261b9d865264d857777cf58a0335513151.tar.gz
blackbird-op-linux-62fe88261b9d865264d857777cf58a0335513151.zip
[SCSI] srp_transport: add target driver support
This adds minimum target driver support: - srp_rport_{add,del} calls scsi_tgt_it_nexus_{create,destroy} for target drivers. - add a callback to notify target drivers of the nexus operation results to srp_function_template. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_transport_srp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_transport_srp.h b/include/scsi/scsi_transport_srp.h
index 08b4a28a77b8..a705dbc016b3 100644
--- a/include/scsi/scsi_transport_srp.h
+++ b/include/scsi/scsi_transport_srp.h
@@ -21,7 +21,8 @@ struct srp_rport {
};
struct srp_function_template {
- /* later */
+ /* for target drivers */
+ int (* it_nexus_response)(struct Scsi_Host *, u64, int);
};
extern struct scsi_transport_template *
OpenPOWER on IntegriCloud