mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: init: move is_nvgpu_gpu_state_valid out of gk20a.h
Move the declaration of is_nvgpu_gpu_state_valid() from gk20a.h to nvgpu_init.h and add doxygen for it. JIRA NVGPU-2532 Change-Id: I79dcb145c9a3ea70a8d5b7cd639f799b7320e04b Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2214420 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
07e5dfc577
commit
5efefe169c
@@ -1376,8 +1376,6 @@ static inline u32 nvgpu_get_poll_timeout(struct gk20a *g)
|
||||
#define GK20A_NONSTALL_OPS_WAKEUP_SEMAPHORE BIT32(0)
|
||||
#define GK20A_NONSTALL_OPS_POST_EVENTS BIT32(1)
|
||||
|
||||
bool is_nvgpu_gpu_state_valid(struct gk20a *g);
|
||||
|
||||
/** IO Resource in the device tree for BAR0 */
|
||||
#define GK20A_BAR0_IORESOURCE_MEM 0U
|
||||
/** IO Resource in the device tree for BAR1 */
|
||||
|
||||
@@ -313,4 +313,14 @@ int gk20a_busy(struct gk20a *g);
|
||||
*/
|
||||
void gk20a_idle(struct gk20a *g);
|
||||
|
||||
/**
|
||||
* @brief Check if the GPU HW is in a valid state by making sure the boot_0
|
||||
* register returns a valid value.
|
||||
*
|
||||
* @param g [in] The GPU
|
||||
*
|
||||
* @return True if the HW state is determined to be valid. False, otherwise.
|
||||
*/
|
||||
bool is_nvgpu_gpu_state_valid(struct gk20a *g);
|
||||
|
||||
#endif /* NVGPU_INIT_H */
|
||||
|
||||
Reference in New Issue
Block a user