~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/dma/qcom-gpi-dma.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * Copyright (c) 2020, Linaro Limited
  4  */
  5 
  6 #ifndef QCOM_GPI_DMA_H
  7 #define QCOM_GPI_DMA_H
  8 
  9 /**
 10  * enum spi_transfer_cmd - spi transfer commands
 11  */
 12 enum spi_transfer_cmd {
 13         SPI_TX = 1,
 14         SPI_RX,
 15         SPI_DUPLEX,
 16 };
 17 
 18 /**
 19  * struct gpi_spi_config - spi config for peripheral
 20  *
 21  * @loopback_en: spi loopback enable when set
 22  * @clock_pol_high: clock polarity
 23  * @data_pol_high: data polarity
 24  * @pack_en: process tx/rx buffers as packed
 25  * @word_len: spi word length
 26  * @clk_div: source clock divider
 27  * @clk_src: serial clock
 28  * @cmd: spi cmd
 29  * @fragmentation: keep CS asserted at end of sequence
 30  * @cs: chip select toggle
 31  * @set_config: set peripheral config
 32  * @rx_len: receive length for buffer
 33  */
 34 struct gpi_spi_config {
 35         u8 set_config;
 36         u8 loopback_en;
 37         u8 clock_pol_high;
 38         u8 data_pol_high;
 39         u8 pack_en;
 40         u8 word_len;
 41         u8 fragmentation;
 42         u8 cs;
 43         u32 clk_div;
 44         u32 clk_src;
 45         enum spi_transfer_cmd cmd;
 46         u32 rx_len;
 47 };
 48 
 49 enum i2c_op {
 50         I2C_WRITE = 1,
 51         I2C_READ,
 52 };
 53 
 54 /**
 55  * struct gpi_i2c_config - i2c config for peripheral
 56  *
 57  * @pack_enable: process tx/rx buffers as packed
 58  * @cycle_count: clock cycles to be sent
 59  * @high_count: high period of clock
 60  * @low_count: low period of clock
 61  * @clk_div: source clock divider
 62  * @addr: i2c bus address
 63  * @stretch: stretch the clock at eot
 64  * @set_config: set peripheral config
 65  * @rx_len: receive length for buffer
 66  * @op: i2c cmd
 67  * @muli-msg: is part of multi i2c r-w msgs
 68  */
 69 struct gpi_i2c_config {
 70         u8 set_config;
 71         u8 pack_enable;
 72         u8 cycle_count;
 73         u8 high_count;
 74         u8 low_count;
 75         u8 addr;
 76         u8 stretch;
 77         u16 clk_div;
 78         u32 rx_len;
 79         enum i2c_op op;
 80         bool multi_msg;
 81 };
 82 
 83 #endif /* QCOM_GPI_DMA_H */
 84 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php