summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/irq.h
blob: 1a5cf7727f806c53173b41347e1e03fecd246ba5 (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
#ifndef __ASM_SH_IRQ_H
#define __ASM_SH_IRQ_H

/*
 *
 * linux/include/asm-sh/irq.h
 *
 * Copyright (C) 1999  Niibe Yutaka
 *
 */

#define TIMER_IRQ		16	/* Hard-wired */
#define TIMER_IRP_OFFSET	12
#define TIMER_PRIORITY		 1

/*
 * 40 = 24+16
 *
 * 24 for on chip support modules.
 * 16 for external interrupts.
 *
 */
#define NR_IRQS	40

extern void disable_irq(unsigned int);
extern void disable_irq_nosync(unsigned int);
extern void enable_irq(unsigned int);

/*
 * Function for "on chip support modules".
 */
extern void set_ipr_data(unsigned int irq, int offset, int priority);
extern void make_onChip_irq(unsigned int irq);

#endif /* __ASM_SH_IRQ_H */