msm_vidc_variant.h 719 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2022, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef _MSM_VIDC_VARIANT_H_
  7. #define _MSM_VIDC_VARIANT_H_
  8. #include <linux/types.h>
  9. struct msm_vidc_core;
  10. int __write_register_masked(struct msm_vidc_core *core, u32 reg, u32 value,
  11. u32 mask);
  12. int __write_register(struct msm_vidc_core *core, u32 reg, u32 value);
  13. int __read_register(struct msm_vidc_core *core, u32 reg, u32 *value);
  14. int __read_register_with_poll_timeout(struct msm_vidc_core *core, u32 reg,
  15. u32 mask, u32 exp_val, u32 sleep_us, u32 timeout_us);
  16. int __set_registers(struct msm_vidc_core *core);
  17. #endif