tcm_remote.h 506 B

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