mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
- Renamed "struct pmu_gk20a" to "struct nvgpu_pmu" then moved to file "pmu.h" under folder "drivers/gpu/nvgpu/include/nvgpu/" - Included header file "pmu.h" to dependent file & removed "pmu_gk20a.h" include if its usage is not present. - Replaced "struct pmu_gk20a" with "struct nvgpu_pmu" in dependent source & header files. JIRA NVGPU-56 Change-Id: Ia3c606616831027093d5c216959c6a40d7c2632e Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1479209 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*/
|
|
|
|
#ifndef __SEC2_H_
|
|
#define __SEC2_H_
|
|
|
|
int sec2_clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout);
|
|
int sec2_wait_for_halt(struct gk20a *g, unsigned int timeout);
|
|
void sec2_copy_to_dmem(struct nvgpu_pmu *pmu,
|
|
u32 dst, u8 *src, u32 size, u8 port);
|
|
void sec2_dump_falcon_stats(struct nvgpu_pmu *pmu);
|
|
int bl_bootstrap_sec2(struct nvgpu_pmu *pmu,
|
|
void *desc, u32 bl_sz);
|
|
void sec_enable_irq(struct nvgpu_pmu *pmu, bool enable);
|
|
void init_pmu_setup_hw1(struct gk20a *g);
|
|
int init_sec2_setup_hw1(struct gk20a *g,
|
|
void *desc, u32 bl_sz);
|
|
|
|
#endif /*__SEC2_H_*/
|