mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 05:29:04 -04:00
[SCSI] transport_srp: add rport roles attribute
This adds a 'roles' attribute to rport like transport_fc. The role can be initiator or target. That is, the initiator driver creates target remote ports and the target driver creates initiator remote ports. 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>
This commit is contained in:
parent
3236822b1c
commit
aebd5e476e
4 changed files with 35 additions and 1 deletions
|
|
@ -5,14 +5,19 @@
|
|||
#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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue