ams-delta-fiq.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * include/linux/platform_data/ams-delta-fiq.h
  4. *
  5. * Taken from the original Amstrad modifications to fiq.h
  6. *
  7. * Copyright (c) 2004 Amstrad Plc
  8. * Copyright (c) 2006 Matt Callow
  9. * Copyright (c) 2010 Janusz Krzysztofik
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License version 2 as
  13. * published by the Free Software Foundation.
  14. */
  15. #ifndef __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H
  16. #define __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H
  17. /*
  18. * These are the offsets from the beginning of the fiq_buffer. They are put here
  19. * since the buffer and header need to be accessed by drivers servicing devices
  20. * which generate GPIO interrupts - e.g. keyboard, modem, hook switch.
  21. */
  22. #define FIQ_MASK 0
  23. #define FIQ_STATE 1
  24. #define FIQ_KEYS_CNT 2
  25. #define FIQ_TAIL_OFFSET 3
  26. #define FIQ_HEAD_OFFSET 4
  27. #define FIQ_BUF_LEN 5
  28. #define FIQ_KEY 6
  29. #define FIQ_MISSED_KEYS 7
  30. #define FIQ_BUFFER_START 8
  31. #define FIQ_GPIO_INT_MASK 9
  32. #define FIQ_KEYS_HICNT 10
  33. #define FIQ_IRQ_PEND 11
  34. #define FIQ_SIR_CODE_L1 12
  35. #define IRQ_SIR_CODE_L2 13
  36. #define FIQ_CNT_INT_00 14
  37. #define FIQ_CNT_INT_KEY 15
  38. #define FIQ_CNT_INT_MDM 16
  39. #define FIQ_CNT_INT_03 17
  40. #define FIQ_CNT_INT_HSW 18
  41. #define FIQ_CNT_INT_05 19
  42. #define FIQ_CNT_INT_06 20
  43. #define FIQ_CNT_INT_07 21
  44. #define FIQ_CNT_INT_08 22
  45. #define FIQ_CNT_INT_09 23
  46. #define FIQ_CNT_INT_10 24
  47. #define FIQ_CNT_INT_11 25
  48. #define FIQ_CNT_INT_12 26
  49. #define FIQ_CNT_INT_13 27
  50. #define FIQ_CNT_INT_14 28
  51. #define FIQ_CNT_INT_15 29
  52. #define FIQ_CIRC_BUFF 30 /*Start of circular buffer */
  53. #endif