linux/drivers/nvme/host/fc.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) 2016, Avago Technologies
 */

#ifndef _NVME_FC_TRANSPORT_H
#define _NVME_FC_TRANSPORT_H


/*
 * Common definitions between the nvme_fc (host) transport and
 * nvmet_fc (target) transport implementation.
 */

/*
 * ******************  FC-NVME LS HANDLING ******************
 */

nvmefc_ls_requests __aligned();	/* alignment for other things alloc'd with */

nvmefc_ls_responses __aligned();	/* alignment for other things alloc'd with */

static inline void
nvme_fc_format_rsp_hdr(void *buf, u8 ls_cmd, __be32 desc_len, u8 rqst_ls_cmd)
{}

static inline int
nvme_fc_format_rjt(void *buf, u16 buflen, u8 ls_cmd,
			u8 reason, u8 explanation, u8 vendor)
{}

/* Validation Error indexes into the string table below */
enum {};

static char *validation_errors[] =;

#define NVME_FC_LAST_LS_CMD_VALUE

static char *nvmefc_ls_names[] =;

static inline void
nvmefc_fmt_lsreq_discon_assoc(struct nvmefc_ls_req *lsreq,
	struct fcnvme_ls_disconnect_assoc_rqst *discon_rqst,
	struct fcnvme_ls_disconnect_assoc_acc *discon_acc,
	u64 association_id)
{}

static inline int
nvmefc_vldt_lsreq_discon_assoc(u32 rqstlen,
	struct fcnvme_ls_disconnect_assoc_rqst *rqst)
{}

#endif /* _NVME_FC_TRANSPORT_H */