summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_fc_internal.h
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-09-01 02:02:27 +0900
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:46:58 -0400
commit7525236d0bc7ad17eb5e0733417896cab745d6c8 (patch)
tree677fd3adae67e7f100c366955832e266f1515632 /drivers/scsi/scsi_transport_fc_internal.h
parent5dc2b89e124251662f580f4ba3c9f6195d1eaff6 (diff)
downloadlinux-stable-7525236d0bc7ad17eb5e0733417896cab745d6c8.tar.gz
linux-stable-7525236d0bc7ad17eb5e0733417896cab745d6c8.tar.bz2
linux-stable-7525236d0bc7ad17eb5e0733417896cab745d6c8.zip
[SCSI] fc_transport: add target driver support
This adds minimum target driver support like the srp transport does: - fc_remote_port_{rolechg,delete} calls scsi_tgt_it_nexus_{create,destroy} for target drivers. - add callbacks to notify target drivers of the nexus and tmf operation results to fc_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 'drivers/scsi/scsi_transport_fc_internal.h')
-rw-r--r--drivers/scsi/scsi_transport_fc_internal.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_fc_internal.h b/drivers/scsi/scsi_transport_fc_internal.h
new file mode 100644
index 000000000000..e7bfbe751c1f
--- /dev/null
+++ b/drivers/scsi/scsi_transport_fc_internal.h
@@ -0,0 +1,26 @@
+#include <scsi/scsi_tgt.h>
+
+#ifdef CONFIG_SCSI_FC_TGT_ATTRS
+static inline int fc_tgt_it_nexus_create(struct Scsi_Host *shost, u64 itn_id,
+ char *initiator)
+{
+ return scsi_tgt_it_nexus_create(shost, itn_id, initiator);
+}
+
+static inline int fc_tgt_it_nexus_destroy(struct Scsi_Host *shost, u64 itn_id)
+{
+ return scsi_tgt_it_nexus_destroy(shost, itn_id);
+}
+#else
+static inline int fc_tgt_it_nexus_create(struct Scsi_Host *shost, u64 itn_id,
+ char *initiator)
+{
+ return 0;
+}
+
+static inline int fc_tgt_it_nexus_destroy(struct Scsi_Host *shost, u64 itn_id)
+{
+ return 0;
+}
+
+#endif