drivers/scsi/fnic/vnic_scsi.h

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

File Facts

System
Linux kernel
Corpus path
drivers/scsi/fnic/vnic_scsi.h
Extension
.h
Size
2968 bytes
Lines
98
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 vnic_fc_config {
	u64 node_wwn;
	u64 port_wwn;
	u32 flags;
	u32 wq_enet_desc_count;
	u32 wq_copy_desc_count;
	u32 rq_desc_count;
	u32 flogi_retries;
	u32 flogi_timeout;
	u32 plogi_retries;
	u32 plogi_timeout;
	u32 io_throttle_count;
	u32 link_down_timeout;
	u32 port_down_timeout;
	u32 port_down_io_retries;
	u32 luns_per_tgt;
	u16 maxdatafieldsize;
	u16 ed_tov;
	u16 ra_tov;
	u16 intr_timer;
	u8 intr_timer_type;
	u8 intr_mode;
	u8 lun_queue_depth;
	u8 io_timeout_retry;
	u16 wq_copy_count;
};

#define VFCF_FCP_SEQ_LVL_ERR	0x1	/* Enable FCP-2 Error Recovery */
#define VFCF_PERBI		0x2	/* persistent binding info available */
#define VFCF_FIP_CAPABLE	0x4	/* firmware can handle FIP */

#define VFCF_FC_INITIATOR         0x20    /* FC Initiator Mode */
#define VFCF_FC_TARGET            0x40    /* FC Target Mode */
#define VFCF_FC_NVME_INITIATOR    0x80    /* FC-NVMe Initiator Mode */
#define VFCF_FC_NVME_TARGET       0x100   /* FC-NVMe Target Mode */

#endif /* _VNIC_SCSI_H_ */

Annotation

Implementation Notes