WIP FPC-III support
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cxd2880 / cxd2880_spi.h
blob2be20746184758b1c07ee2ac69d60fb85cbabade
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * cxd2880_spi.h
4 * Sony CXD2880 DVB-T2/T tuner + demodulator driver
5 * SPI access definitions
7 * Copyright (C) 2016, 2017, 2018 Sony Semiconductor Solutions Corporation
8 */
10 #ifndef CXD2880_SPI_H
11 #define CXD2880_SPI_H
13 #include "cxd2880_common.h"
15 enum cxd2880_spi_mode {
16 CXD2880_SPI_MODE_0,
17 CXD2880_SPI_MODE_1,
18 CXD2880_SPI_MODE_2,
19 CXD2880_SPI_MODE_3
22 struct cxd2880_spi {
23 int (*read)(struct cxd2880_spi *spi, u8 *data,
24 u32 size);
25 int (*write)(struct cxd2880_spi *spi, const u8 *data,
26 u32 size);
27 int (*write_read)(struct cxd2880_spi *spi,
28 const u8 *tx_data, u32 tx_size,
29 u8 *rx_data, u32 rx_size);
30 u32 flags;
31 void *user;
34 #endif