Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
30 lines
526 B
C
30 lines
526 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* MacBook (Pro) SPI keyboard and touchpad driver
|
|
*
|
|
* Copyright (c) 2015-2019 Federico Lorenzi
|
|
* Copyright (c) 2017-2019 Ronald Tschalär
|
|
*/
|
|
|
|
#ifndef _APPLESPI_H_
|
|
#define _APPLESPI_H_
|
|
|
|
enum applespi_evt_type {
|
|
ET_CMD_TP_INI = BIT(0),
|
|
ET_CMD_BL = BIT(1),
|
|
ET_CMD_CL = BIT(2),
|
|
ET_RD_KEYB = BIT(8),
|
|
ET_RD_TPAD = BIT(9),
|
|
ET_RD_UNKN = BIT(10),
|
|
ET_RD_IRQ = BIT(11),
|
|
ET_RD_CRC = BIT(12),
|
|
};
|
|
|
|
enum applespi_pkt_type {
|
|
PT_READ,
|
|
PT_WRITE,
|
|
PT_STATUS,
|
|
};
|
|
|
|
#endif /* _APPLESPI_H_ */
|