Commit f0fdaa4a authored by Randy Dunlap's avatar Randy Dunlap Committed by Greg Kroah-Hartman
Browse files

virt: acrn: split acrn_mmio_dev_res out of acrn_mmiodev



Add struct acrn_mmio_dev_res before struct acrn_mmio_dev.
The former is used in the latter and breaking them up provides
better kernel-doc documentation for the struct members.

Suggested-by: default avatarFei Li <fei1.li@intel.com>
Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Acked-by: default avatarFei Li <fei1.li@intel.com>
Link: https://patch.msgid.link/20251028040409.868254-1-rdunlap@infradead.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e6df0f64
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
@@ -418,26 +418,32 @@ struct acrn_pcidev {
};

/**
 * struct acrn_mmiodev - Info for assigning or de-assigning a MMIO device
 * @name:			Name of the MMIO device.
 * @res[].user_vm_pa:		Physical address of User VM of the MMIO region
 * struct acrn_mmio_dev_res - MMIO device resource description
 * @user_vm_pa:		Physical address of User VM of the MMIO region
 *			for the MMIO device.
 * @res[].service_vm_pa:	Physical address of Service VM of the MMIO
 * @service_vm_pa:	Physical address of Service VM of the MMIO
 *			region for the MMIO device.
 * @res[].size:			Size of the MMIO region for the MMIO device.
 * @res[].mem_type:		Memory type of the MMIO region for the MMIO
 * @size:		Size of the MMIO region for the MMIO device.
 * @mem_type:		Memory type of the MMIO region for the MMIO
 *			device.
 *
 * This structure will be passed to hypervisor directly.
 */
struct acrn_mmiodev {
	__u8	name[8];
	struct {
struct acrn_mmio_dev_res {
	__u64	user_vm_pa;
	__u64	service_vm_pa;
	__u64	size;
	__u64	mem_type;
	} res[ACRN_MMIODEV_RES_NUM];
};

/**
 * struct acrn_mmiodev - Info for assigning or de-assigning an MMIO device
 * @name:	Name of the MMIO device.
 * @res:	Array of MMIO device descriptions
 *
 * This structure will be passed to hypervisor directly.
 */
struct acrn_mmiodev {
	__u8	name[8];
	struct acrn_mmio_dev_res res[ACRN_MMIODEV_RES_NUM];
};

/**