Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Fei Li <fei1.li@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Fei Li <fei1.li@intel.com>
Link: https://patch.msgid.link/20251028040409.868254-1-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Randy Dunlap and committed by
Greg Kroah-Hartman
f0fdaa4a e6df0f64

+21 -15
+21 -15
include/uapi/linux/acrn.h
··· 418 418 }; 419 419 420 420 /** 421 - * struct acrn_mmiodev - Info for assigning or de-assigning a MMIO device 422 - * @name: Name of the MMIO device. 423 - * @res[].user_vm_pa: Physical address of User VM of the MMIO region 424 - * for the MMIO device. 425 - * @res[].service_vm_pa: Physical address of Service VM of the MMIO 426 - * region for the MMIO device. 427 - * @res[].size: Size of the MMIO region for the MMIO device. 428 - * @res[].mem_type: Memory type of the MMIO region for the MMIO 429 - * device. 421 + * struct acrn_mmio_dev_res - MMIO device resource description 422 + * @user_vm_pa: Physical address of User VM of the MMIO region 423 + * for the MMIO device. 424 + * @service_vm_pa: Physical address of Service VM of the MMIO 425 + * region for the MMIO device. 426 + * @size: Size of the MMIO region for the MMIO device. 427 + * @mem_type: Memory type of the MMIO region for the MMIO 428 + * device. 429 + */ 430 + struct acrn_mmio_dev_res { 431 + __u64 user_vm_pa; 432 + __u64 service_vm_pa; 433 + __u64 size; 434 + __u64 mem_type; 435 + }; 436 + 437 + /** 438 + * struct acrn_mmiodev - Info for assigning or de-assigning an MMIO device 439 + * @name: Name of the MMIO device. 440 + * @res: Array of MMIO device descriptions 430 441 * 431 442 * This structure will be passed to hypervisor directly. 432 443 */ 433 444 struct acrn_mmiodev { 434 445 __u8 name[8]; 435 - struct { 436 - __u64 user_vm_pa; 437 - __u64 service_vm_pa; 438 - __u64 size; 439 - __u64 mem_type; 440 - } res[ACRN_MMIODEV_RES_NUM]; 446 + struct acrn_mmio_dev_res res[ACRN_MMIODEV_RES_NUM]; 441 447 }; 442 448 443 449 /**