OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-alpha/] [irq.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1632 jcastillo
#ifndef _ALPHA_IRQ_H
2
#define _ALPHA_IRQ_H
3
 
4
/*
5
 *      linux/include/alpha/irq.h
6
 *
7
 *      (C) 1994 Linus Torvalds
8
 */
9
 
10
#include <linux/linkage.h>
11
#include <linux/config.h>
12
 
13
#if   defined(CONFIG_ALPHA_CABRIOLET) || \
14
      defined(CONFIG_ALPHA_EB66P)     || \
15
      defined(CONFIG_ALPHA_EB164)     || \
16
      defined(CONFIG_ALPHA_PC164)     || \
17
      defined(CONFIG_ALPHA_LX164)
18
 
19
# define NR_IRQS        35
20
 
21
#elif defined(CONFIG_ALPHA_EB66)      || \
22
      defined(CONFIG_ALPHA_EB64P)     || \
23
      defined(CONFIG_ALPHA_MIKASA)
24
 
25
# define NR_IRQS        32
26
 
27
#elif defined(CONFIG_ALPHA_ALCOR)     || \
28
      defined(CONFIG_ALPHA_XLT)       || \
29
      defined(CONFIG_ALPHA_MIATA)     || \
30
      defined(CONFIG_ALPHA_RUFFIAN)   || \
31
      defined(CONFIG_ALPHA_NORITAKE)
32
 
33
# define NR_IRQS        48
34
 
35
#elif defined(CONFIG_ALPHA_SABLE)     || \
36
      defined(CONFIG_ALPHA_SX164)
37
 
38
# define NR_IRQS        40
39
 
40
#elif defined(CONFIG_ALPHA_TAKARA)
41
 
42
# define NR_IRQS        20
43
 
44
#else /* everyone else */
45
 
46
# define NR_IRQS        16
47
 
48
#endif
49
 
50
 
51
extern void disable_irq(unsigned int);
52
extern void enable_irq(unsigned int);
53
 
54
#define __STR(x) #x
55
#define STR(x) __STR(x)
56
 
57
#define SAVE_ALL "xx"
58
 
59
/*
60
 * SAVE_MOST/RESTORE_MOST is used for the faster version of IRQ handlers,
61
 * installed by using the SA_INTERRUPT flag. These kinds of IRQ's don't
62
 * call the routines that do signal handling etc on return, and can have
63
 * more relaxed register-saving etc. They are also atomic, and are thus
64
 * suited for small, fast interrupts like the serial lines or the harddisk
65
 * drivers, which don't actually need signal handling etc.
66
 *
67
 * Also note that we actually save only those registers that are used in
68
 * C subroutines, so if you do something weird, you're on your own.
69
 */
70
#define SAVE_MOST "yy"
71
 
72
#define RESTORE_MOST "zz"
73
 
74
#define ACK_FIRST(mask) "aa"
75
 
76
#define ACK_SECOND(mask) "dummy"
77
 
78
#define UNBLK_FIRST(mask) "dummy"
79
 
80
#define UNBLK_SECOND(mask) "dummy"
81
 
82
#define IRQ_NAME2(nr) nr##_interrupt(void)
83
#define IRQ_NAME(nr) IRQ_NAME2(IRQ##nr)
84
#define FAST_IRQ_NAME(nr) IRQ_NAME2(fast_IRQ##nr)
85
#define BAD_IRQ_NAME(nr) IRQ_NAME2(bad_IRQ##nr)
86
 
87
#define BUILD_IRQ(chip,nr,mask) \
88
asmlinkage void IRQ_NAME(nr); \
89
asmlinkage void FAST_IRQ_NAME(nr); \
90
asmlinkage void BAD_IRQ_NAME(nr); \
91
asm code comes here
92
 
93
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.