linux/include/uapi/scsi/fc/fc_fs.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * Copyright(c) 2007 Intel Corporation. All rights reserved.
 *
 * Maintained at www.Open-FCoE.org
 */

#ifndef _FC_FS_H_
#define _FC_FS_H_

#include <linux/types.h>

/*
 * Fibre Channel Framing and Signalling definitions.
 * From T11 FC-FS-2 Rev 0.90 - 9 August 2005.
 */

/*
 * Frame header
 */
struct fc_frame_header {};

#define FC_FRAME_HEADER_LEN

#define FC_MAX_PAYLOAD
#define FC_MIN_MAX_PAYLOAD

#define FC_MAX_FRAME
#define FC_MIN_MAX_FRAME

/*
 * fh_r_ctl - Routing control definitions.
 */
    /*
     * FC-4 device_data.
     */
enum fc_rctl {};
				    /* incomplete list of definitions */

/*
 * R_CTL names initializer.
 * Please keep this matching the above definitions.
 */
#define FC_RCTL_NAMES_INIT

/*
 * Well-known fabric addresses.
 */
enum fc_well_known_fid {};

#define FC_FID_WELL_KNOWN_MAX
#define FC_FID_WELL_KNOWN_BASE

/*
 * Other well-known addresses, outside the above contiguous range.
 */
#define FC_FID_DOM_MGR

/*
 * Fabric ID bytes.
 */
#define FC_FID_DOMAIN
#define FC_FID_PORT
#define FC_FID_LINK

/*
 * fh_type codes
 */
enum fc_fh_type {};

/*
 * FC_TYPE names initializer.
 * Please keep this matching the above definitions.
 */
#define FC_TYPE_NAMES_INIT

/*
 * Exchange IDs.
 */
#define FC_XID_UNKNOWN
#define FC_XID_MIN
#define FC_XID_MAX

/*
 * fh_f_ctl - Frame control flags.
 */
#define FC_FC_EX_CTX
#define FC_FC_SEQ_CTX
#define FC_FC_FIRST_SEQ
#define FC_FC_LAST_SEQ
#define FC_FC_END_SEQ
#define FC_FC_END_CONN
#define FC_FC_RES_B17
#define FC_FC_SEQ_INIT
#define FC_FC_X_ID_REASS
#define FC_FC_X_ID_INVAL

#define FC_FC_ACK_1
#define FC_FC_ACK_N
#define FC_FC_ACK_0

#define FC_FC_RES_B11
#define FC_FC_RES_B10
#define FC_FC_RETX_SEQ
#define FC_FC_UNI_TX
#define FC_FC_CONT_SEQ(i)
#define FC_FC_ABT_SEQ(i)
#define FC_FC_REL_OFF
#define FC_FC_RES2
#define FC_FC_FILL(i)

/*
 * BA_ACC payload.
 */
struct fc_ba_acc {};

/*
 * BA_RJT: Basic Reject payload.
 */
struct fc_ba_rjt {};

/*
 * BA_RJT reason codes.
 * From FS-2.
 */
enum fc_ba_rjt_reason {};

/*
 * BA_RJT reason code explanations.
 */
enum fc_ba_rjt_explan {};

/*
 * P_RJT or F_RJT: Port Reject or Fabric Reject parameter field.
 */
struct fc_pf_rjt {};

/*
 * P_RJT and F_RJT reject reason codes.
 */
enum fc_pf_rjt_reason {};

/* default timeout values */

#define FC_DEF_E_D_TOV
#define FC_DEF_R_A_TOV

#endif /* _FC_FS_H_ */