hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Techpoint Dev Driver
 *
 * Copyright (C) 2023 Rockchip Electronics Co., Ltd.
 */
 
#ifndef _TECHPOINT_DEV_H
#define _TECHPOINT_DEV_H
 
#include "techpoint_common.h"
 
struct regval {
   u8 addr;
   u8 val;
};
 
int techpoint_write_reg(struct i2c_client *client, u8 reg, u8 val);
int techpoint_read_reg(struct i2c_client *client, u8 reg, u8 *val);
int techpoint_write_array(struct i2c_client *client,
             const struct regval *regs, int size);
 
void __techpoint_get_vc_fmt_inf(struct techpoint *techpoint,
               struct rkmodule_vc_fmt_info *inf);
void techpoint_get_vc_fmt_inf(struct techpoint *techpoint,
                 struct rkmodule_vc_fmt_info *inf);
void techpoint_get_vc_hotplug_inf(struct techpoint *techpoint,
                 struct rkmodule_vc_hotplug_info *inf);
void techpoint_set_quick_stream(struct techpoint *techpoint, u32 stream);
 
int techpoint_initialize_devices(struct techpoint *techpoint);
int techpoint_start_video_stream(struct techpoint *techpoint);
int techpoint_stop_video_stream(struct techpoint *techpoint);
 
#endif // _TECHPOINT_DEV_H