]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/scsi/scsi_transport_srp.h
md: linear: Fix a division by zero bug for very small arrays.
[linux-2.6-omap-h63xx.git] / include / scsi / scsi_transport_srp.h
index adbfca402a69748ac0da9795287a810c00dc7a1f..9c60ca1c08c5a12ac77ba84f3d046cbd21fc60df 100644 (file)
@@ -5,18 +5,25 @@
 #include <linux/types.h>
 #include <linux/mutex.h>
 
+#define SRP_RPORT_ROLE_INITIATOR 0
+#define SRP_RPORT_ROLE_TARGET 1
+
 struct srp_rport_identifiers {
        u8 port_id[16];
+       u8 roles;
 };
 
 struct srp_rport {
        struct device dev;
 
        u8 port_id[16];
+       u8 roles;
 };
 
 struct srp_function_template {
-       /* later */
+       /* for target drivers */
+       int (* tsk_mgmt_response)(struct Scsi_Host *, u64, u64, int);
+       int (* it_nexus_response)(struct Scsi_Host *, u64, int);
 };
 
 extern struct scsi_transport_template *