aboutsummaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2007-06-27 03:32:39 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:37:35 -0400
commit09345f65058bb927f3b3f4c33421f83ba8eeb5f8 (patch)
treec67ce859ca67b95fd99ecc5384f0e959ae4057c9 /include/scsi
parent604cd794de3094ccf8a9c149f299237a642ba9b5 (diff)
[SCSI] add srp transport class
This adds srp transport class that works with ib_srp and ibmvscsi. It creates only /sys/class/{srp_host,srp_remote_ports} and srp_remote_ports has only "port_id" attribute. viola:/sys/class/srp_remote_ports/port-0:1# ls device port_id subsystem uevent viola:/sys/class/srp_remote_ports/port-0:1# cat port_id 4c:49:4e:55:58:20:56:49:4f:00:00:00:00:00:00:00 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_transport_srp.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/scsi/scsi_transport_srp.h b/include/scsi/scsi_transport_srp.h
new file mode 100644
index 000000000000..adbfca402a69
--- /dev/null
+++ b/include/scsi/scsi_transport_srp.h
@@ -0,0 +1,32 @@
1#ifndef SCSI_TRANSPORT_SRP_H
2#define SCSI_TRANSPORT_SRP_H
3
4#include <linux/transport_class.h>
5#include <linux/types.h>
6#include <linux/mutex.h>
7
8struct srp_rport_identifiers {
9 u8 port_id[16];
10};
11
12struct srp_rport {
13 struct device dev;
14
15 u8 port_id[16];
16};
17
18struct srp_function_template {
19 /* later */
20};
21
22extern struct scsi_transport_template *
23srp_attach_transport(struct srp_function_template *);
24extern void srp_release_transport(struct scsi_transport_template *);
25
26extern struct srp_rport *srp_rport_add(struct Scsi_Host *,
27 struct srp_rport_identifiers *);
28extern void srp_rport_del(struct srp_rport *);
29
30extern void srp_remove_host(struct Scsi_Host *);
31
32#endif