gpu: nvgpu: Update doxygen format for pbdma.h

Added @brief, @return and @retval where applicable.
Added [in/out] for function parameters.

Jira NVGPU-3591

Change-Id: Ibc555c631817a8acd28bf5d4343acbb3d6d0d669
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2139607
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-06-19 14:51:59 -04:00
committed by mobile promotions
parent 893f28f775
commit 6d760dd075

View File

@@ -35,34 +35,43 @@
struct gk20a;
/**
* nvgpu_pbdma_setup_sw - initialize PBDMA software context
* @brief Initialize PBDMA software context
*
* @param g Current GPU
* @param g[in] The GPU driver struct for which to initialize
* PBDMA software context.
*
* Gets number of PBDMAs and builds a map of runlists that will be serviced
* by those PBDMAs. Returns non-zero value in case of failure.
* by those PBDMAs.
*
* @return 0 in case of success, < 0 in case of failure.
* @retval -ENOMEM in case there is not enough memory available.
*/
int nvgpu_pbdma_setup_sw(struct gk20a *g);
/**
* nvgpu_pbdma_cleanup_sw - clean up PBDMA software context
* @brief Clean up PBDMA software context
*
* @param g Current GPU
* @param g[in] The GPU driver struct using PBDMA software
* context.
*
* Cleans up PBDMA software context and related resources.
*/
void nvgpu_pbdma_cleanup_sw(struct gk20a *g);
/**
* nvgpu_pbdma_find_for_runlist - find PBDMA servicing the runlist
* @brief Find PBDMA servicing the runlist
*
* @param g Current GPU
* @param runlist_id Runlist identifier
* @param pbdma_id Pointer to PBDMA identifier
* @param g[in] The GPU driver struct owning the runlist.
* @param runlist_id[in] Runlist identifier.
* @param pbdma_id[out] Pointer to PBDMA identifier.
*
* Finds the PBDMA which is servicing #runlist_id.
* Sets #pbdma_id to valid value and returns true in case PBDMA could be found.
* Sets #pbdma_id to U32_MAX and returns false in case PBDMA could not be found.
*
* @return true if PBDMA was found, false otherwise.
* @retval Sets #pbdma_id to valid value and returns true in case PBDMA
* could be found.
* @retval Sets #pbdma_id to U32_MAX and returns false in case PBDMA could
* not be found.
*/
bool nvgpu_pbdma_find_for_runlist(struct gk20a *g,
u32 runlist_id, u32 *pbdma_id);