From cc7bffd8cdaca2aad6cc142ce05afec91087f6ac Mon Sep 17 00:00:00 2001 From: Nicolas Benech Date: Mon, 6 Jan 2020 22:41:40 -0500 Subject: [PATCH] gpu: nvgpu: gops: name inner structures for doxygen When generating Doxygen XML, if an inner structure is anonymous, the generated XML will remove the inner structure and merge its members with the parent structure. This is not ideal for tooling, so this patch adds a name to a few anonymous structures. JIRA NVGPU-3510 Change-Id: I42556a6b2a2f9a156d9a74fa894197c845656adc Signed-off-by: Nicolas Benech Reviewed-on: https://git-master.nvidia.com/r/2274706 Reviewed-by: Thomas Fleury GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/include/nvgpu/gops_mm.h | 6 +++--- drivers/gpu/nvgpu/include/nvgpu/gops_sync.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/gops_mm.h b/drivers/gpu/nvgpu/include/nvgpu/gops_mm.h index 0e9b86737..7b9115531 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gops_mm.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gops_mm.h @@ -230,7 +230,7 @@ struct gops_mm { * This structure describes the HAL functions related to * GMMU fault handling. */ - struct { + struct gops_mm_mmu_fault { /** * @brief HAL to initialize the software setup of * GMMU fault buffer. @@ -288,7 +288,7 @@ struct gops_mm { * This structure describes the HAL functions related to * fb and L2 hardware operations. */ - struct { + struct gops_mm_cache { /** * @brief HAL to flush the frame buffer memory. * @@ -358,7 +358,7 @@ struct gops_mm { * This structure describes the HAL functions related to * GMMU operations. */ - struct { + struct gops_mm_gmmu { /** * @brief HAL to get the GMMU level mapping info structure. * diff --git a/drivers/gpu/nvgpu/include/nvgpu/gops_sync.h b/drivers/gpu/nvgpu/include/nvgpu/gops_sync.h index 35b309fa6..fbe919281 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/gops_sync.h +++ b/drivers/gpu/nvgpu/include/nvgpu/gops_sync.h @@ -45,7 +45,7 @@ struct nvgpu_semaphore; struct gops_sync { #ifdef CONFIG_TEGRA_GK20A_NVHOST - struct { + struct gops_sync_syncpt { /** * @brief Map syncpoint aperture as read-only. * @@ -93,7 +93,7 @@ struct gops_sync { #ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT /** @cond DOXYGEN_SHOULD_SKIP_THIS */ - struct { + struct gops_sync_sema { u32 (*get_wait_cmd_size)(void); u32 (*get_incr_cmd_size)(void); void (*add_cmd)(struct gk20a *g,