drivers/gpu/drm/xe/xe_gt_sriov_pf_control_types.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/xe/xe_gt_sriov_pf_control_types.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/xe/xe_gt_sriov_pf_control_types.h
Extension
.h
Size
5920 bytes
Lines
140
Domain
Driver Families
Bucket
drivers/gpu
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 xe_gt_sriov_control_state {
	/** @state: VF state bits */
	DECLARE_BITMAP(state, XE_GT_SRIOV_NUM_STATES);

	/** @done: completion of async operations */
	struct completion done;

	/** @link: link into worker list */
	struct list_head link;
};

/**
 * struct xe_gt_sriov_pf_control - GT-level control data.
 *
 * Used by the PF driver to maintain its data.
 */
struct xe_gt_sriov_pf_control {
	/** @worker: worker that executes a VF operations */
	struct work_struct worker;

	/** @list: list of VF entries that have a pending work */
	struct list_head list;

	/** @lock: protects VF pending list */
	spinlock_t lock;
};

#endif

Annotation

Implementation Notes