Blame view
include/scsi/scsi_transport_srp.h
902 Bytes
09345f650 [SCSI] add srp tr... |
1 2 3 4 5 6 |
#ifndef SCSI_TRANSPORT_SRP_H #define SCSI_TRANSPORT_SRP_H #include <linux/transport_class.h> #include <linux/types.h> #include <linux/mutex.h> |
aebd5e476 [SCSI] transport_... |
7 8 |
#define SRP_RPORT_ROLE_INITIATOR 0 #define SRP_RPORT_ROLE_TARGET 1 |
09345f650 [SCSI] add srp tr... |
9 10 |
struct srp_rport_identifiers { u8 port_id[16]; |
aebd5e476 [SCSI] transport_... |
11 |
u8 roles; |
09345f650 [SCSI] add srp tr... |
12 13 14 15 16 17 |
}; struct srp_rport { struct device dev; u8 port_id[16]; |
aebd5e476 [SCSI] transport_... |
18 |
u8 roles; |
09345f650 [SCSI] add srp tr... |
19 20 21 |
}; struct srp_function_template { |
62fe88261 [SCSI] srp_transp... |
22 |
/* for target drivers */ |
bfb743740 [SCSI] tgt: move ... |
23 |
int (* tsk_mgmt_response)(struct Scsi_Host *, u64, u64, int); |
62fe88261 [SCSI] srp_transp... |
24 |
int (* it_nexus_response)(struct Scsi_Host *, u64, int); |
09345f650 [SCSI] add srp tr... |
25 26 27 28 29 30 31 32 33 34 35 36 37 |
}; extern struct scsi_transport_template * srp_attach_transport(struct srp_function_template *); extern void srp_release_transport(struct scsi_transport_template *); extern struct srp_rport *srp_rport_add(struct Scsi_Host *, struct srp_rport_identifiers *); extern void srp_rport_del(struct srp_rport *); extern void srp_remove_host(struct Scsi_Host *); #endif |