Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tcm_qla2xxx.h
Go to the documentation of this file.
2 #include <linux/btree.h>
3 
4 #define TCM_QLA2XXX_VERSION "v0.1"
5 /* length of ASCII WWPNs including pad */
6 #define TCM_QLA2XXX_NAMELEN 32
7 /* lenth of ASCII NPIV 'WWPN+WWNN' including pad */
8 #define TCM_QLA2XXX_NPIV_NAMELEN 66
9 
10 #include "qla_target.h"
11 
13  /* From libfc struct fc_rport->port_id */
15  /* Binary World Wide unique Node Name for remote FC Initiator Nport */
17  /* ASCII formatted WWPN for FC Initiator Nport */
19  /* Pointer to qla_tgt_sess */
21  /* Pointer to TCM FC nexus */
23  /* Returned by tcm_qla2xxx_make_nodeacl() */
25 };
26 
32 };
33 
35  /* FC lport target portal group tag for TCM */
37  /* Atomic bit to determine TPG active status */
39  /* Pointer back to tcm_qla2xxx_lport */
41  /* Used by tcm_qla2xxx_tpg_attrib_cit */
43  /* Returned by tcm_qla2xxx_make_tpg() */
45 };
46 
47 #define QLA_TPG_ATTRIB(tpg) (&(tpg)->tpg_attrib)
48 
51 };
52 
54  /* SCSI protocol the lport is providing */
56  /* Binary World Wide unique Port Name for FC Target Lport */
58  /* Binary World Wide unique Port Name for FC NPIV Target Lport */
60  /* Binary World Wide unique Node Name for FC NPIV Target Lport */
62  /* ASCII formatted WWPN for FC Target Lport */
64  /* ASCII formatted naa WWPN for VPD page 83 etc */
66  /* ASCII formatted WWPN+WWNN for NPIV FC Target Lport */
68  /* map for fc_port pointers in 24-bit FC Port ID space */
69  struct btree_head32 lport_fcport_map;
70  /* vmalloc-ed memory for fc_port pointers for 16-bit FC loop ID */
72  /* Pointer to struct scsi_qla_host from qla2xxx LLD */
74  /* Pointer to struct scsi_qla_host for NPIV VP from qla2xxx LLD */
76  /* Pointer to struct qla_tgt pointer */
78  /* Pointer to struct fc_vport for NPIV vport from libfc */
80  /* Pointer to TPG=1 for non NPIV mode */
82  /* Returned by tcm_qla2xxx_make_lport() */
83  struct se_wwn lport_wwn;
84 };