Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / input / keyboard / applespi.h
blob7f5ab10c597a2e5dd5c0a2c2602237ca2b6b3dc5
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * MacBook (Pro) SPI keyboard and touchpad driver
5 * Copyright (c) 2015-2019 Federico Lorenzi
6 * Copyright (c) 2017-2019 Ronald Tschalär
7 */
9 #ifndef _APPLESPI_H_
10 #define _APPLESPI_H_
12 enum applespi_evt_type {
13 ET_CMD_TP_INI = BIT(0),
14 ET_CMD_BL = BIT(1),
15 ET_CMD_CL = BIT(2),
16 ET_RD_KEYB = BIT(8),
17 ET_RD_TPAD = BIT(9),
18 ET_RD_UNKN = BIT(10),
19 ET_RD_IRQ = BIT(11),
20 ET_RD_CRC = BIT(12),
23 enum applespi_pkt_type {
24 PT_READ,
25 PT_WRITE,
26 PT_STATUS,
29 #endif /* _APPLESPI_H_ */