1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/types.h>
3 #include <linux/device.h>
5 #define TCM_REMOTE_VERSION "v0.1"
6 #define TL_WWN_ADDR_LEN 256
7 #define TL_TPGS_PER_HBA 32
9 struct tcm_remote_tpg
{
10 unsigned short remote_tpgt
;
11 struct se_portal_group remote_se_tpg
;
12 struct tcm_remote_hba
*remote_hba
;
15 struct tcm_remote_hba
{
17 unsigned char remote_wwn_address
[TL_WWN_ADDR_LEN
];
18 struct tcm_remote_tpg remote_hba_tpgs
[TL_TPGS_PER_HBA
];
19 struct se_wwn remote_hba_wwn
;