1 /* SPDX-License-Identifier: GPL-2.0 */
4 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5 * register I/O interface definitions
7 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
13 #include "cxd2880_common.h"
20 struct cxd2880_reg_value
{
26 int (*read_regs
)(struct cxd2880_io
*io
,
27 enum cxd2880_io_tgt tgt
, u8 sub_address
,
29 int (*write_regs
)(struct cxd2880_io
*io
,
30 enum cxd2880_io_tgt tgt
, u8 sub_address
,
31 const u8
*data
, u32 size
);
32 int (*write_reg
)(struct cxd2880_io
*io
,
33 enum cxd2880_io_tgt tgt
, u8 sub_address
,
42 int cxd2880_io_common_write_one_reg(struct cxd2880_io
*io
,
43 enum cxd2880_io_tgt tgt
,
44 u8 sub_address
, u8 data
);
46 int cxd2880_io_set_reg_bits(struct cxd2880_io
*io
,
47 enum cxd2880_io_tgt tgt
,
48 u8 sub_address
, u8 data
, u8 mask
);
50 int cxd2880_io_write_multi_regs(struct cxd2880_io
*io
,
51 enum cxd2880_io_tgt tgt
,
52 const struct cxd2880_reg_value reg_value
[],