• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * MacBook (Pro) SPI keyboard and touchpad driver
4  *
5  * Copyright (c) 2015-2019 Federico Lorenzi
6  * Copyright (c) 2017-2019 Ronald Tschalär
7  */
8 
9 #ifndef _APPLESPI_H_
10 #define _APPLESPI_H_
11 
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),
21 };
22 
23 enum applespi_pkt_type {
24 	PT_READ,
25 	PT_WRITE,
26 	PT_STATUS,
27 };
28 
29 #endif /* _APPLESPI_H_ */
30