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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [arch-trio/] [irq.h] - Blame information for rev 1777

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * include/asm-arm/arch-trio/irq.h
3
 *
4
 * Copyright (C) 1996 Russell King
5
 * Copyright (C) 1999 APLIO SA
6
 *
7
 * Changelog:
8
 *   04-11-1999 VL      Created
9
 */
10
 
11
#define BUILD_IRQ(s,n,m)
12
 
13
struct pt_regs;
14
 
15
extern int IRQ_interrupt(int irq, struct pt_regs *regs);
16
extern int timer_IRQ_interrupt(int irq, struct pt_regs *regs);
17
extern int fast_IRQ_interrupt(int irq, struct pt_regs *regs);
18
extern int bad_IRQ_interrupt(int irq, struct pt_regs *regs);
19
extern int probe_IRQ_interrupt(int irq, struct pt_regs *regs);
20
 
21
#define IRQ_interrupt0 IRQ_interrupt
22
#define IRQ_interrupt1 IRQ_interrupt
23
#define IRQ_interrupt2 IRQ_interrupt
24
#define IRQ_interrupt3 IRQ_interrupt
25
#define IRQ_interrupt4 IRQ_interrupt
26
#define IRQ_interrupt5 timer_IRQ_interrupt
27
#define IRQ_interrupt4 IRQ_interrupt
28
#define IRQ_interrupt6 IRQ_interrupt
29
#define IRQ_interrupt7 IRQ_interrupt
30
#define IRQ_interrupt8 IRQ_interrupt
31
#define IRQ_interrupt9 IRQ_interrupt
32
#define IRQ_interrupt10 IRQ_interrupt
33
#define IRQ_interrupt11 IRQ_interrupt
34
#define IRQ_interrupt12 IRQ_interrupt
35
#define IRQ_interrupt13 IRQ_interrupt
36
#define IRQ_interrupt14 IRQ_interrupt
37
#define IRQ_interrupt15 IRQ_interrupt
38
#define IRQ_interrupt16 IRQ_interrupt
39
#define IRQ_interrupt17 IRQ_interrupt
40
#define IRQ_interrupt18 IRQ_interrupt
41
#define IRQ_interrupt19 IRQ_interrupt
42
#define IRQ_interrupt20 IRQ_interrupt
43
#define IRQ_interrupt21 IRQ_interrupt
44
#define IRQ_interrupt22 IRQ_interrupt
45
#define IRQ_interrupt23 IRQ_interrupt
46
 
47
#define IRQ_INTERRUPT(n)        (void (*)(void))IRQ_interrupt##n
48
#define FAST_INTERRUPT(n)       (void (*)(void))fast_IRQ_interrupt
49
#define BAD_INTERRUPT(n)        (void (*)(void))bad_IRQ_interrupt
50
#define PROBE_INTERRUPT(n)      (void (*)(void))probe_IRQ_interrupt
51
 
52
 
53
 
54
static __inline__ void mask_irq(unsigned int irq)
55
{
56
        unsigned long mask = 1 << (irq & 0xf);
57
 
58
        outl(mask, AIC_IDCR);
59
}
60
 
61
 
62
static __inline__ void unmask_irq(unsigned int irq)
63
{
64
        unsigned long mask = 1 << (irq & 0xf);
65
 
66
        outl(mask, AIC_IECR);
67
 
68
}
69
 
70
static __inline__ unsigned long get_enabled_irqs(void)
71
{
72
        return inl(AIC_IMR);
73
}
74
 
75
 
76
static __inline__ void irq_init_irq(void)
77
{
78
        extern void trio_init_aic();
79
 
80
        trio_init_aic();
81
}

powered by: WebSVN 2.1.0

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