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