/* PTL Max packet size detection capability is 255 Bytes */ #define MAX_RX_DETECT_SIZE_PTL 255
/* Default interrupt delay is 1ms, suitable for most devices */ #define DEFAULT_INTERRUPT_DELAY_US (1 * USEC_PER_MSEC)
/* * THC uses runtime auto suspend to dynamically switch between THC active LTR * and low power LTR to save CPU power. * Default value is 5000ms, that means if no touch event in this time, THC will * change to low power LTR mode.
*/ #define DEFAULT_AUTO_SUSPEND_DELAY_MS 5000
/** * struct quicki2c_subip_acpi_parameter - QuickI2C ACPI DSD parameters * @device_address: I2C device slave address * @connection_speed: I2C device expected connection speed * @addressing_mode: I2C device slave address mode, 7bit or 10bit * * Those properties get from QUICKI2C_ACPI_METHOD_NAME_ICRS method, used for * Bus parameter.
*/ struct quicki2c_subip_acpi_parameter {
u16 device_address;
u64 connection_speed;
u8 addressing_mode;
u8 reserved;
} __packed;
/** * struct quicki2c_subip_acpi_config - QuickI2C ACPI DSD parameters * @SMHX: Standard Mode (100 kbit/s) Serial Clock Line HIGH Period * @SMLX: Standard Mode (100 kbit/s) Serial Clock Line LOW Period * @SMTD: Standard Mode (100 kbit/s) Serial Data Line Transmit Hold Period * @SMRD: Standard Mode (100 kbit/s) Serial Data Receive Hold Period * @FMHX: Fast Mode (400 kbit/s) Serial Clock Line HIGH Period * @FMLX: Fast Mode (400 kbit/s) Serial Clock Line LOW Period * @FMTD: Fast Mode (400 kbit/s) Serial Data Line Transmit Hold Period * @FMRD: Fast Mode (400 kbit/s) Serial Data Line Receive Hold Period * @FMSL: Maximum length (in ic_clk_cycles) of suppressed spikes * in Standard Mode, Fast Mode and Fast Mode Plus * @FPHX: Fast Mode Plus (1Mbit/sec) Serial Clock Line HIGH Period * @FPLX: Fast Mode Plus (1Mbit/sec) Serial Clock Line LOW Period * @FPTD: Fast Mode Plus (1Mbit/sec) Serial Data Line Transmit HOLD Period * @FPRD: Fast Mode Plus (1Mbit/sec) Serial Data Line Receive HOLD Period * @HMHX: High Speed Mode Plus (3.4Mbits/sec) Serial Clock Line HIGH Period * @HMLX: High Speed Mode Plus (3.4Mbits/sec) Serial Clock Line LOW Period * @HMTD: High Speed Mode Plus (3.4Mbits/sec) Serial Data Line Transmit HOLD Period * @HMRD: High Speed Mode Plus (3.4Mbits/sec) Serial Data Line Receive HOLD Period * @HMSL: Maximum length (in ic_clk_cycles) of suppressed spikes in High Speed Mode * * Those properties get from QUICKI2C_ACPI_METHOD_NAME_ISUB method, used for * I2C timing configure.
*/ struct quicki2c_subip_acpi_config {
u64 SMHX;
u64 SMLX;
u64 SMTD;
u64 SMRD;
/** * struct quicki2c_device - THC QuickI2C device struct * @dev: Point to kernel device * @pdev: Point to PCI device * @thc_hw: Point to THC device * @hid_dev: Point to HID device * @acpi_dev: Point to ACPI device * @ddata: Point to QuickI2C platform specific driver data * @state: THC I2C device state * @mem_addr: MMIO memory address * @dev_desc: Device descriptor for HIDI2C protocol * @i2c_slave_addr: HIDI2C device slave address * @hid_desc_addr: Register address for retrieve HID device descriptor * @active_ltr_val: THC active LTR value * @low_power_ltr_val: THC low power LTR value * @i2c_speed_mode: 0 - standard mode, 1 - fast mode, 2 - fast mode plus * @i2c_clock_hcnt: I2C CLK high period time (unit in cycle count) * @i2c_clock_lcnt: I2C CLK low period time (unit in cycle count) * @report_descriptor: Store a copy of device report descriptor * @input_buf: Store a copy of latest input report data * @report_buf: Store a copy of latest input/output report packet from set/get feature * @report_len: The length of input/output report packet * @reset_ack_wq: Workqueue for waiting reset response from device * @reset_ack: Indicate reset response received or not
*/ struct quicki2c_device { struct device *dev; struct pci_dev *pdev; struct thc_device *thc_hw; struct hid_device *hid_dev; struct acpi_device *acpi_dev; conststruct quicki2c_ddata *ddata; enum quicki2c_dev_state state;
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.