drivers/gpu/drm/xe/xe_sriov_pf_types.h

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

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/xe/xe_sriov_pf_types.h
Extension
.h
Size
1773 bytes
Lines
71
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_sriov_metadata {
	/** @kobj: kobject representing VF in PF's SR-IOV sysfs tree. */
	struct kobject *kobj;

	/** @version: negotiated VF/PF ABI version */
	struct xe_sriov_pf_service_version version;
	/** @migration: migration state */
	struct xe_sriov_migration_state migration;
};

/**
 * struct xe_device_pf - Xe PF related data
 *
 * The data in this structure is valid only if driver is running in the
 * @XE_SRIOV_MODE_PF mode.
 */
struct xe_device_pf {
	/** @device_total_vfs: Maximum number of VFs supported by the device. */
	u16 device_total_vfs;

	/** @driver_max_vfs: Maximum number of VFs supported by the driver. */
	u16 driver_max_vfs;

	/** @guard_vfs_enabling: guards VFs enabling */
	struct xe_guard guard_vfs_enabling;

	/** @master_lock: protects all VFs configurations across GTs */
	struct mutex master_lock;

	/** @provision: device level provisioning data. */
	struct xe_sriov_pf_provision provision;

	/** @migration: device level migration data. */
	struct xe_sriov_pf_migration migration;

	/** @service: device level service data. */
	struct xe_sriov_pf_service service;

	/** @sysfs: device level sysfs data. */
	struct {
		/** @sysfs.root: the root kobject for all SR-IOV entries in sysfs. */
		struct kobject *root;
	} sysfs;

	/** @vfs: metadata for all VFs. */
	struct xe_sriov_metadata *vfs;
};

#endif

Annotation

Implementation Notes