1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/types.h>
3 #include <linux/device.h>
4 
5 #define TCM_REMOTE_VERSION		"v0.1"
6 #define TL_WWN_ADDR_LEN			256
7 #define TL_TPGS_PER_HBA			32
8 
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;
13 };
14 
15 struct tcm_remote_hba {
16 	u8 remote_proto_id;
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;
20 };
21