video-driver: Move register manipulation functions
Move register manipulation functions in a common variant file (msm_vidc_variant). Change-Id: Ic92a264b47b4d90efcfb4389e30d2749a23f792b Signed-off-by: Stanimir Varbanov <quic_c_svarba@quicinc.com>
This commit is contained in:

gecommit door
Gerrit - the friendly Code Review server

bovenliggende
cf7b4f85c9
commit
21974f4a60
22
driver/variant/common/inc/msm_vidc_variant.h
Normal file
22
driver/variant/common/inc/msm_vidc_variant.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2022, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _MSM_VIDC_VARIANT_H_
|
||||
#define _MSM_VIDC_VARIANT_H_
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
struct msm_vidc_core;
|
||||
|
||||
int __write_register_masked(struct msm_vidc_core *core, u32 reg, u32 value,
|
||||
u32 mask);
|
||||
int __write_register(struct msm_vidc_core *core, u32 reg, u32 value);
|
||||
int __read_register(struct msm_vidc_core *core, u32 reg, u32 *value);
|
||||
int __read_register_with_poll_timeout(struct msm_vidc_core *core, u32 reg,
|
||||
u32 mask, u32 exp_val, u32 sleep_us,
|
||||
u32 timeout_us);
|
||||
int __set_registers(struct msm_vidc_core *core);
|
||||
|
||||
#endif
|
Verwijs in nieuw issue
Block a user