2 * arch/arm/include/asm/fiq_debugger.h
4 * Copyright (C) 2010 Google, Inc.
5 * Author: Colin Cross <ccross@android.com>
7 * This software is licensed under the terms of the GNU General Public
8 * License version 2, as published by the Free Software Foundation, and
9 * may be copied, distributed, and modified under those terms.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
18 #ifndef _ARCH_ARM_MACH_TEGRA_FIQ_DEBUGGER_H_
19 #define _ARCH_ARM_MACH_TEGRA_FIQ_DEBUGGER_H_
21 #include <linux/serial_core.h>
23 #define FIQ_DEBUGGER_NO_CHAR NO_POLL_CHAR
24 #define FIQ_DEBUGGER_BREAK 0x00ff0100
26 #define FIQ_DEBUGGER_FIQ_IRQ_NAME "fiq"
27 #define FIQ_DEBUGGER_SIGNAL_IRQ_NAME "signal"
28 #define FIQ_DEBUGGER_WAKEUP_IRQ_NAME "wakeup"
30 struct fiq_debugger_pdata {
31 int (*uart_init)(struct platform_device *pdev);
32 void (*uart_free)(struct platform_device *pdev);
33 int (*uart_resume)(struct platform_device *pdev);
34 int (*uart_getc)(struct platform_device *pdev);
35 void (*uart_putc)(struct platform_device *pdev, unsigned int c);
36 void (*uart_flush)(struct platform_device *pdev);
38 void (*fiq_enable)(struct platform_device *pdev, unsigned int fiq,
40 void (*fiq_ack)(struct platform_device *pdev, unsigned int fiq);
42 void (*force_irq)(struct platform_device *pdev, unsigned int irq);
43 void (*force_irq_ack)(struct platform_device *pdev, unsigned int irq);