Skip to content

Commit f0fdaa4

Browse files
rddunlapgregkh
authored andcommitted
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>
1 parent e6df0f6 commit f0fdaa4

1 file changed

Lines changed: 21 additions & 15 deletions

File tree

include/uapi/linux/acrn.h

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -418,26 +418,32 @@ struct acrn_pcidev {
418418
};
419419

420420
/**
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
430441
*
431442
* This structure will be passed to hypervisor directly.
432443
*/
433444
struct acrn_mmiodev {
434445
__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];
441447
};
442448

443449
/**

0 commit comments

Comments
 (0)