/* * THC Port type * @THC_PORT_TYPE_SPI: This port is used for HIDSPI * @THC_PORT_TYPE_I2C: This port is used for HIDI2C
*/ enum thc_port_type {
THC_PORT_TYPE_SPI = 0,
THC_PORT_TYPE_I2C = 1,
};
/** * struct thc_device - THC private device struct * @thc_regmap: MMIO regmap structure for accessing THC registers * @mmio_addr: MMIO registers address * @thc_bus_lock: Mutex locker for THC config * @port_type: Port type of THC port instance * @pio_int_supported: PIO interrupt supported flag * @dma_ctx: DMA specific data * @wot: THC Wake-on-Touch data * @write_complete_wait: Signal event for DMA write complete * @swdma_complete_wait: Signal event for SWDMA sequence complete * @write_done: Bool value that indicates if DMA write is done * @swdma_done: Bool value that indicates if SWDMA sequence is done * @perf_limit: The delay between read operation and write operation * @i2c_subip_regs: The copy of THC I2C sub-system registers for resuming restore * @i2c_max_rx_size: I2C Rx transfer max input size * @i2c_int_delay_us: I2C input interrupt delay, unit is us * @i2c_max_rx_size_en: Bool value that indicates I2C max input size control enabled or not * @i2c_int_delay_en: Bool value that indicates I2C input interrupt delay enabled or not
*/ struct thc_device { struct device *dev; struct regmap *thc_regmap; void __iomem *mmio_addr; struct mutex thc_bus_lock; enum thc_port_type port_type; bool pio_int_supported;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.