aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cyapa
Commit message (Collapse)AuthorAgeFilesLines
* knotes: kqueue: handle copy for trivial filtersKonstantin Belousov2025-10-181-1/+2
| | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D52045
* cyapa(4): Add support for reporting data with sysmouse protocolVladimir Kondratyev2025-09-041-36/+59
| | | | Earlier only intellimouse protocol was supported.
* kern: Make fileops and filterops tables const where possibleMark Johnston2024-11-261-1/+1
| | | | | | No functional change intended. MFC after: 1 week
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* cyapa: Remove unused devclass argument to DRIVER_MODULE.John Baldwin2022-05-091-3/+1
|
* cyapa_raw_input: elimmminate write only k variableWarner Losh2022-04-051-2/+0
| | | | Sponsored by: Netflix
* cyapa(4): Adapt to recent evdev KPI changesVladimir Kondratyev2021-09-021-1/+1
| | | | MFC after: 2 weeks
* evdev: Remove useless "initial value" parameter from evdev_support_abs()Vladimir Kondratyev2021-01-071-7/+7
| | | | | It can not be used for setting of state of multitouch events. If necessary, use evdev_push_event() instead of it.
* cyapa(4): Add support for evdev protocolVladimir Kondratyev2020-12-231-0/+89
| | | | | Tested-by: Matthias Apitz <guru@unixarea.de> MFC-after: 2 weeks
* cyapa(4): Make button detection matching ChromeOS driverVladimir Kondratyev2020-12-231-4/+5
| | | | | Tested-by: Matthias Apitz <guru@unixarea.de> MFC-after: 2 weeks
* [cyapa] Postpone start of the polling thread until sleep is availableVladimir Kondratyev2019-11-031-5/+29
| | | | | | | | | After recent ig4 changes cyapa driver can be attached before timers initialization is completed. Start polling thread from config_intrhook to avoid busy loops in that case. Notes: svn path=/head/; revision=354304
* Fix typo in cyapa out of bounds check.Michael Gmelin2017-08-081-1/+1
| | | | | | | | | PR: 217783 Submitted by: razmyslov@viva64.com MFC after: 1 week Notes: svn path=/head/; revision=322253
* add iic interface to ig4 driver, move isl and cyapa to iicbusAndriy Gapon2016-10-301-51/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The hardware does not expose a classic SMBus interface. Instead it has a lower level interface that can express a far richer I2C protocol than what smbus offers. However, the interface does not provide a way to explicitly generate the I2C stop and start conditions. It's only possible to request that the stop condition is generated after transferring the next byte in either direction. So, at least one data byte must always be transferred. Thus, some I2C sequences are impossible to generate, e.g., an equivalent of smbus quick command (<start>-<slave addr>-<r/w bit>-<stop>). At the same time isl(4) and cyapa(4) are moved to iicbus and now they use iicbus_transfer for communication. Previously they used smbus_trans() interface that is not defined by the SMBus protocol and was implemented only by ig4(4). In fact, that interface was impossible to implement for the typical SMBus controllers like intpm(4) or ichsmb(4) where a type of the SMBus command must be programmed. The plan is to remove smbus_trans() and all its uses. As an aside, the smbus_trans() method deviates from the standard, but perhaps backwards, FreeBSD convention of using 8-bit slave addresses (shifted by 1 bit to the left). The method expects 7-bit addresses. There is a user facing consequence of this change. A user must now provide device hints for isl and cyapa that specify an iicbus to use and a slave address on it. On Chromebook hardware where isl and cyapa devices are commonly found it is also possible to use a new chromebook_platform(4) driver that automatically configures isl and cyapa devices. There is no need to provide the device hints in that case, Right now smbus(4) driver tries to discover all slaves on the bus. That is very dangerous. Fortunately, the probing code uses smbus_trans() to do its job, so it is really enabled for ig4 only. The plan is to remove that auto-probing code and smbus_trans(). Tested by: grembo, Matthias Apitz <guru@unixarea.de> (w/o chromebook_platform) Discussed with: grembo, imp Reviewed by: wblock (docs) MFC after: 1 month Relnotes: yes Differential Revision: https://reviews.freebsd.org/D8172 Notes: svn path=/head/; revision=308104
* Allow building a kernel with baked in ig4, isl and cyapa drivers.Michael Gmelin2015-08-191-6/+1
| | | | | | | | | | | | Also addresses jhb's remarks on D2811 and D3068. PR: 202059 Differential Revision: https://reviews.freebsd.org/D3351 Reviewed by: jhb Approved by: jhb Notes: svn path=/head/; revision=286918
* cyapa(4), driver for the Cypress APA I2C trackpadMichael Gmelin2015-07-252-0/+1831
Differential Revision: https://reviews.freebsd.org/D3068 Reviewed by: kib, wblock Approved by: kib Relnotes: yes Notes: svn path=/head/; revision=285876