mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
This patch modifies HSP SMB functions to use hsp-id as an input. This is a prework to support multiple instances of DCE HSP. Jira TDS-15438 Change-Id: I046e456979b58c74bd39b91889b9cf12065646cb Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3225857 Reviewed-by: Vinod Gopalakrishnakurup <vinodg@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2019-2024, NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef DCE_HSP_H
|
|
#define DCE_HSP_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct tegra_dce;
|
|
|
|
/**
|
|
* DCE HSP Shared Semaphore Utility functions. Description
|
|
* can be found with function definitions.
|
|
*/
|
|
u32 dce_ss_get_state(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
void dce_ss_set(struct tegra_dce *d, u8 bpos, u8 hsp_id, u8 id);
|
|
void dce_ss_clear(struct tegra_dce *d, u8 bpos, u8 hsp_id, u8 id);
|
|
|
|
/**
|
|
* DCE HSP Shared Mailbox Utility functions. Description
|
|
* can be found with function definitions.
|
|
*/
|
|
void dce_smb_set(struct tegra_dce *d, u32 val, u8 hsp_id, u8 id);
|
|
void dce_smb_set_full_ie(struct tegra_dce *d, bool en, u8 hsp_id, u8 id);
|
|
u32 dce_smb_read_full_ie(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
void dce_smb_set_empty_ie(struct tegra_dce *d, bool en, u8 hsp_id, u8 id);
|
|
u32 dce_smb_read(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
u32 dce_hsp_ie_read(struct tegra_dce *d, u8 hsp_id, u8 id);
|
|
void dce_hsp_ie_write(struct tegra_dce *d, u32 val, u8 hsp_id, u8 id);
|
|
u32 dce_hsp_ir_read(struct tegra_dce *d, u8 hsp_id);
|
|
|
|
#endif
|