1 #ifndef SCSI_TRANSPORT_SRP_H
2 #define SCSI_TRANSPORT_SRP_H
4 #include <linux/transport_class.h>
5 #include <linux/types.h>
6 #include <linux/mutex.h>
8 #define SRP_RPORT_ROLE_INITIATOR 0
9 #define SRP_RPORT_ROLE_TARGET 1
11 struct srp_rport_identifiers {
23 struct srp_function_template {
27 extern struct scsi_transport_template *
28 srp_attach_transport(struct srp_function_template *);
29 extern void srp_release_transport(struct scsi_transport_template *);
31 extern struct srp_rport *srp_rport_add(struct Scsi_Host *,
32 struct srp_rport_identifiers *);
33 extern void srp_rport_del(struct srp_rport *);
35 extern void srp_remove_host(struct Scsi_Host *);