Path: blob/master/arch/arm/mach-omap1/include/mach/ams-delta-fiq.h
10820 views
/*1* arch/arm/mach-omap1/include/ams-delta-fiq.h2*3* Taken from the original Amstrad modifications to fiq.h4*5* Copyright (c) 2004 Amstrad Plc6* Copyright (c) 2006 Matt Callow7* Copyright (c) 2010 Janusz Krzysztofik8*9* This program is free software; you can redistribute it and/or modify10* it under the terms of the GNU General Public License version 2 as11* published by the Free Software Foundation.12*/13#ifndef __AMS_DELTA_FIQ_H14#define __AMS_DELTA_FIQ_H1516#include <plat/irqs.h>1718/*19* Interrupt number used for passing control from FIQ to IRQ.20* IRQ12, described as reserved, has been selected.21*/22#define INT_DEFERRED_FIQ INT_1510_RES1223/*24* Base address of an interrupt handler that the INT_DEFERRED_FIQ belongs to.25*/26#if (INT_DEFERRED_FIQ < IH2_BASE)27#define DEFERRED_FIQ_IH_BASE OMAP_IH1_BASE28#else29#define DEFERRED_FIQ_IH_BASE OMAP_IH2_BASE30#endif3132/*33* These are the offsets from the beginning of the fiq_buffer. They are put here34* since the buffer and header need to be accessed by drivers servicing devices35* which generate GPIO interrupts - e.g. keyboard, modem, hook switch.36*/37#define FIQ_MASK 038#define FIQ_STATE 139#define FIQ_KEYS_CNT 240#define FIQ_TAIL_OFFSET 341#define FIQ_HEAD_OFFSET 442#define FIQ_BUF_LEN 543#define FIQ_KEY 644#define FIQ_MISSED_KEYS 745#define FIQ_BUFFER_START 846#define FIQ_GPIO_INT_MASK 947#define FIQ_KEYS_HICNT 1048#define FIQ_IRQ_PEND 1149#define FIQ_SIR_CODE_L1 1250#define IRQ_SIR_CODE_L2 135152#define FIQ_CNT_INT_00 1453#define FIQ_CNT_INT_KEY 1554#define FIQ_CNT_INT_MDM 1655#define FIQ_CNT_INT_03 1756#define FIQ_CNT_INT_HSW 1857#define FIQ_CNT_INT_05 1958#define FIQ_CNT_INT_06 2059#define FIQ_CNT_INT_07 2160#define FIQ_CNT_INT_08 2261#define FIQ_CNT_INT_09 2362#define FIQ_CNT_INT_10 2463#define FIQ_CNT_INT_11 2564#define FIQ_CNT_INT_12 2665#define FIQ_CNT_INT_13 2766#define FIQ_CNT_INT_14 2867#define FIQ_CNT_INT_15 296869#define FIQ_CIRC_BUFF 30 /*Start of circular buffer */7071#ifndef __ASSEMBLER__72extern unsigned int fiq_buffer[];73extern unsigned char qwerty_fiqin_start, qwerty_fiqin_end;7475extern void __init ams_delta_init_fiq(void);76#endif7778#endif798081