162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#include <linux/types.h> 362306a36Sopenharmony_ci#include <linux/device.h> 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#define TCM_REMOTE_VERSION "v0.1" 662306a36Sopenharmony_ci#define TL_WWN_ADDR_LEN 256 762306a36Sopenharmony_ci#define TL_TPGS_PER_HBA 32 862306a36Sopenharmony_ci 962306a36Sopenharmony_cistruct tcm_remote_tpg { 1062306a36Sopenharmony_ci unsigned short remote_tpgt; 1162306a36Sopenharmony_ci struct se_portal_group remote_se_tpg; 1262306a36Sopenharmony_ci struct tcm_remote_hba *remote_hba; 1362306a36Sopenharmony_ci}; 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_cistruct tcm_remote_hba { 1662306a36Sopenharmony_ci u8 remote_proto_id; 1762306a36Sopenharmony_ci unsigned char remote_wwn_address[TL_WWN_ADDR_LEN]; 1862306a36Sopenharmony_ci struct tcm_remote_tpg remote_hba_tpgs[TL_TPGS_PER_HBA]; 1962306a36Sopenharmony_ci struct se_wwn remote_hba_wwn; 2062306a36Sopenharmony_ci}; 21