drivers/scsi/elx/efct/efct_driver.h

Source file repositories/reference/linux-study-clean/drivers/scsi/elx/efct/efct_driver.h

File Facts

System
Linux kernel
Corpus path
drivers/scsi/elx/efct/efct_driver.h
Extension
.h
Size
2384 bytes
Lines
109
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 efct_intr_context {
	struct efct		*efct;
	u32			index;
};

struct efct {
	struct pci_dev			*pci;
	void __iomem			*reg[EFCT_PCI_MAX_REGS];

	u32				n_msix_vec;
	bool				attached;
	bool				soft_wwn_enable;
	u8				efct_req_fw_upgrade;
	struct efct_intr_context	intr_context[MAX_PCI_INTERRUPTS];
	u32				numa_node;

	char				name[EFC_NAME_LENGTH];
	u32				instance_index;
	struct list_head		list_entry;
	struct efct_scsi_tgt		tgt_efct;
	struct efct_xport		*xport;
	struct efc			*efcport;
	struct Scsi_Host		*shost;
	int				logmask;
	u32				max_isr_time_msec;

	const char			*desc;

	const char			*model;

	struct efct_hw			hw;

	u32				rq_selection_policy;
	char				*filter_def;
	int				topology;

	/* Look up for target node */
	struct xarray			lookup;

	/*
	 * Target IO timer value:
	 * Zero: target command timeout disabled.
	 * Non-zero: Timeout value, in seconds, for target commands
	 */
	u32				target_io_timer_sec;

	int				speed;
	struct dentry			*sess_debugfs_dir;
};

#define FW_WRITE_BUFSIZE		(64 * 1024)

struct efct_fw_write_result {
	struct completion done;
	int status;
	u32 actual_xfer;
	u32 change_status;
};

extern struct list_head			efct_devices;

#endif /* __EFCT_DRIVER_H__ */

Annotation

Implementation Notes