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