applespi.h 526 B

1234567891011121314151617181920212223242526272829
  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. #ifndef _APPLESPI_H_
  9. #define _APPLESPI_H_
  10. enum applespi_evt_type {
  11. ET_CMD_TP_INI = BIT(0),
  12. ET_CMD_BL = BIT(1),
  13. ET_CMD_CL = BIT(2),
  14. ET_RD_KEYB = BIT(8),
  15. ET_RD_TPAD = BIT(9),
  16. ET_RD_UNKN = BIT(10),
  17. ET_RD_IRQ = BIT(11),
  18. ET_RD_CRC = BIT(12),
  19. };
  20. enum applespi_pkt_type {
  21. PT_READ,
  22. PT_WRITE,
  23. PT_STATUS,
  24. };
  25. #endif /* _APPLESPI_H_ */