Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 
0003 /*
0004  * include/linux/platform_data/ams-delta-fiq.h
0005  *
0006  * Taken from the original Amstrad modifications to fiq.h
0007  *
0008  * Copyright (c) 2004 Amstrad Plc
0009  * Copyright (c) 2006 Matt Callow
0010  * Copyright (c) 2010 Janusz Krzysztofik
0011  *
0012  * This program is free software; you can redistribute it and/or modify
0013  * it under the terms of the GNU General Public License version 2 as
0014  * published by the Free Software Foundation.
0015  */
0016 #ifndef __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H
0017 #define __LINUX_PLATFORM_DATA_AMS_DELTA_FIQ_H
0018 
0019 /*
0020  * These are the offsets from the beginning of the fiq_buffer. They are put here
0021  * since the buffer and header need to be accessed by drivers servicing devices
0022  * which generate GPIO interrupts - e.g. keyboard, modem, hook switch.
0023  */
0024 #define FIQ_MASK         0
0025 #define FIQ_STATE        1
0026 #define FIQ_KEYS_CNT         2
0027 #define FIQ_TAIL_OFFSET      3
0028 #define FIQ_HEAD_OFFSET      4
0029 #define FIQ_BUF_LEN      5
0030 #define FIQ_KEY          6
0031 #define FIQ_MISSED_KEYS      7
0032 #define FIQ_BUFFER_START     8
0033 #define FIQ_GPIO_INT_MASK    9
0034 #define FIQ_KEYS_HICNT      10
0035 #define FIQ_IRQ_PEND        11
0036 #define FIQ_SIR_CODE_L1     12
0037 #define IRQ_SIR_CODE_L2     13
0038 
0039 #define FIQ_CNT_INT_00      14
0040 #define FIQ_CNT_INT_KEY     15
0041 #define FIQ_CNT_INT_MDM     16
0042 #define FIQ_CNT_INT_03      17
0043 #define FIQ_CNT_INT_HSW     18
0044 #define FIQ_CNT_INT_05      19
0045 #define FIQ_CNT_INT_06      20
0046 #define FIQ_CNT_INT_07      21
0047 #define FIQ_CNT_INT_08      22
0048 #define FIQ_CNT_INT_09      23
0049 #define FIQ_CNT_INT_10      24
0050 #define FIQ_CNT_INT_11      25
0051 #define FIQ_CNT_INT_12      26
0052 #define FIQ_CNT_INT_13      27
0053 #define FIQ_CNT_INT_14      28
0054 #define FIQ_CNT_INT_15      29
0055 
0056 #define FIQ_CIRC_BUFF       30      /*Start of circular buffer */
0057 
0058 #endif