linux/drivers/target/target_core_xcopy.h

/* SPDX-License-Identifier: GPL-2.0 */
#include <target/target_core_base.h>

#define XCOPY_HDR_LEN
#define XCOPY_TARGET_DESC_LEN
#define XCOPY_SEGMENT_DESC_LEN
#define XCOPY_NAA_IEEE_REGEX_LEN
#define XCOPY_MAX_BYTES

/*
 * SPC4r37 6.4.6.1
 * Table 150 — CSCD descriptor ID values
 */
#define XCOPY_CSCD_DESC_ID_LIST_OFF_MAX

enum xcopy_origin_list {};

struct xcopy_op {};

/*
 * Receive Copy Results Sevice Actions
 */
#define RCR_SA_COPY_STATUS
#define RCR_SA_RECEIVE_DATA
#define RCR_SA_OPERATING_PARAMETERS
#define RCR_SA_FAILED_SEGMENT_DETAILS

/*
 * Receive Copy Results defs for Operating Parameters
 */
#define RCR_OP_MAX_TARGET_DESC_COUNT
#define RCR_OP_MAX_SG_DESC_COUNT
#define RCR_OP_MAX_DESC_LIST_LEN
#define RCR_OP_MAX_SEGMENT_LEN
#define RCR_OP_TOTAL_CONCURR_COPIES
#define RCR_OP_MAX_CONCURR_COPIES
#define RCR_OP_DATA_SEG_GRAN_LOG2
#define RCR_OP_INLINE_DATA_GRAN_LOG2
#define RCR_OP_HELD_DATA_GRAN_LOG2

extern int target_xcopy_setup_pt(void);
extern void target_xcopy_release_pt(void);
extern sense_reason_t target_do_xcopy(struct se_cmd *);
extern sense_reason_t target_do_receive_copy_results(struct se_cmd *);