Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * MacBook (Pro) SPI keyboard and touchpad driver
0004  *
0005  * Copyright (c) 2015-2019 Federico Lorenzi
0006  * Copyright (c) 2017-2019 Ronald Tschalär
0007  */
0008 
0009 #ifndef _APPLESPI_H_
0010 #define _APPLESPI_H_
0011 
0012 enum applespi_evt_type {
0013     ET_CMD_TP_INI = BIT(0),
0014     ET_CMD_BL = BIT(1),
0015     ET_CMD_CL = BIT(2),
0016     ET_RD_KEYB = BIT(8),
0017     ET_RD_TPAD = BIT(9),
0018     ET_RD_UNKN = BIT(10),
0019     ET_RD_IRQ = BIT(11),
0020     ET_RD_CRC = BIT(12),
0021 };
0022 
0023 enum applespi_pkt_type {
0024     PT_READ,
0025     PT_WRITE,
0026     PT_STATUS,
0027 };
0028 
0029 #endif /* _APPLESPI_H_ */