drivers/scsi/fnic/fnic_fdls.h

Source file repositories/reference/linux-study-clean/drivers/scsi/fnic/fnic_fdls.h

File Facts

System
Linux kernel
Corpus path
drivers/scsi/fnic/fnic_fdls.h
Extension
.h
Size
12797 bytes
Lines
436
Domain
Driver Families
Bucket
drivers/scsi
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

struct fnic_fip_fcf_s {
	uint16_t vlan_id;
	uint8_t fcf_mac[6];
	uint8_t fcf_priority;
	uint32_t fka_adv_period;
	uint8_t ka_disabled;
};

enum fnic_fdls_state_e {
	FDLS_STATE_INIT = 0,
	FDLS_STATE_LINKDOWN,
	FDLS_STATE_FABRIC_LOGO,
	FDLS_STATE_FLOGO_DONE,
	FDLS_STATE_FABRIC_FLOGI,
	FDLS_STATE_FABRIC_PLOGI,
	FDLS_STATE_RPN_ID,
	FDLS_STATE_REGISTER_FC4_TYPES,
	FDLS_STATE_REGISTER_FC4_FEATURES,
	FDLS_STATE_SCR,
	FDLS_STATE_GPN_FT,
	FDLS_STATE_TGT_DISCOVERY,
	FDLS_STATE_RSCN_GPN_FT,
	FDLS_STATE_SEND_GPNFT
};

struct fnic_fdls_fabric_s {
	enum fnic_fdls_state_e state;
	uint32_t flags;
	struct list_head tport_list; /* List of discovered tports */
	struct timer_list retry_timer;
	int del_timer_inprogress;
	int del_fdmi_timer_inprogress;
	int retry_counter;
	int timer_pending;
	int fdmi_retry;
	struct timer_list fdmi_timer;
	int fdmi_pending;
};

struct fnic_fdls_fip_s {
	uint32_t state;
	uint32_t flogi_retry;
};

/* Message to tport_event_handler */
enum fnic_tgt_msg_id {
	TGT_EV_NONE = 0,
	TGT_EV_RPORT_ADD,
	TGT_EV_RPORT_DEL,
	TGT_EV_TPORT_DELETE,
	TGT_EV_REMOVE
};

struct fnic_tport_event_s {
	struct list_head links;
	enum fnic_tgt_msg_id event;
	void *arg1;
};

enum fdls_tgt_state_e {
	FDLS_TGT_STATE_INIT = 0,
	FDLS_TGT_STATE_PLOGI,
	FDLS_TGT_STATE_PRLI,
	FDLS_TGT_STATE_READY,
	FDLS_TGT_STATE_LOGO_RECEIVED,
	FDLS_TGT_STATE_ADISC,
	FDL_TGT_STATE_PLOGO,
	FDLS_TGT_STATE_OFFLINING,
	FDLS_TGT_STATE_OFFLINE
};

struct fnic_tport_s {
	struct list_head links; /* To link the tports */
	enum fdls_tgt_state_e state;
	uint32_t flags;
	uint32_t fcid;
	uint64_t wwpn;
	uint64_t wwnn;
	uint16_t active_oxid;
	uint16_t tgt_flags;
	atomic_t in_flight; /* io counter */
	uint16_t max_payload_size;
	uint16_t r_a_tov;
	uint16_t e_d_tov;
	uint16_t lun0_delay;
	int max_concur_seqs;
	uint32_t fcp_csp;
	struct timer_list retry_timer;
	int del_timer_inprogress;
	int retry_counter;

Annotation

Implementation Notes