mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Fix for: Sparse defects Sparse stated that: -symbol 'tegra_vpr1_dev' was not declared. Should it be static? -symbol 'tegra_vpr_cma_dev' was not declared. Should it be static? -symbol 'tegra_generic_cma_dev' was not declared. Should it be static? -symbol 'tegra_vpr_dev' was not declared. Should it be static? -symbol 'tegra_generic_dev' was not declared. Should it be static? Making all the above functions static since it is being used in nvmap_init.c only. Bug 4513982 Change-Id: I4887d994d9ae852a4faa7da735c18d25b393187a Signed-off-by: Surbhi Singh <surbhis@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3295831 Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __MACH_TEGRA_COMMON_H
|
|
#define __MACH_TEGRA_COMMON_H
|
|
|
|
extern struct smp_operations tegra_smp_ops;
|
|
|
|
extern phys_addr_t tegra_tsec_start;
|
|
extern phys_addr_t tegra_tsec_size;
|
|
|
|
#ifdef CONFIG_CACHE_L2X0
|
|
void tegra_init_cache(bool init);
|
|
#else
|
|
static inline void tegra_init_cache(bool init) {}
|
|
#endif
|
|
|
|
extern void tegra_cpu_die(unsigned int cpu);
|
|
extern int tegra_cpu_kill(unsigned int cpu);
|
|
extern phys_addr_t tegra_avp_kernel_start;
|
|
extern phys_addr_t tegra_avp_kernel_size;
|
|
void ahb_gizmo_writel(unsigned long val, void __iomem *reg);
|
|
|
|
extern int tegra_with_secure_firmware;
|
|
|
|
|
|
u32 tegra_get_bct_strapping(void);
|
|
u32 tegra_get_fuse_opt_subrevision(void);
|
|
enum tegra_revision tegra_chip_get_revision(void);
|
|
void __init display_tegra_dt_info(void);
|
|
|
|
bool tegra_is_vpr_resize_enabled(void);
|
|
void tegra_register_idle_unidle(int (*do_idle)(void *),
|
|
int (*do_unidle)(void *),
|
|
void *data);
|
|
void tegra_unregister_idle_unidle(int (*do_idle)(void *));
|
|
|
|
static inline int tegra_cpu_is_secure(void)
|
|
{
|
|
return tegra_with_secure_firmware;
|
|
}
|
|
|
|
int tegra_state_idx_from_name(char *state_name);
|
|
#endif
|