summaryrefslogtreecommitdiff
path: root/arch/mn10300/unit-asb2364/include/unit/irq.h
blob: 786148e46565adcdfe03bc9ef2b8bd71a5e9e640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* ASB2364 FPGA irq numbers
 *
 * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells (dhowells@redhat.com)
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public Licence
 * as published by the Free Software Foundation; either version
 * 2 of the Licence, or (at your option) any later version.
 */
#ifndef _UNIT_IRQ_H
#define _UNIT_IRQ_H

#ifndef __ASSEMBLY__

#ifdef CONFIG_SMP
#define NR_CPU_IRQS	GxICR_NUM_EXT_IRQS
#else
#define NR_CPU_IRQS	GxICR_NUM_IRQS
#endif

enum {
	FPGA_LAN_IRQ	= NR_CPU_IRQS,
	FPGA_UART_IRQ,
	FPGA_I2C_IRQ,
	FPGA_USB_IRQ,
	FPGA_RESERVED_IRQ,
	FPGA_FPGA_IRQ,
	NR_IRQS
};

extern void __init irq_fpga_init(void);

#endif /* !__ASSEMBLY__ */
#endif /* _UNIT_IRQ_H */