1 /* asm/arch-cpe/irq.h */
3 #ifndef __ASM_ARCH_IRQ_H__
4 #define __ASM_ARCH_IRQ_H__
5 //#include <asm/hardware.h>
7 //#include <asm/mach/irq.h>
8 //#include <asm/arch/irqs.h>
9 //#include <asm/arch/ftpci.h>
10 //#include <asm/arch/cpe/cpe.h>
13 extern void moxa_mask_irq(unsigned int irq);
14 extern void moxa_unmask_irq(unsigned int irq);
15 extern void moxa_mask_ack_irq(unsigned int irq);
16 extern void moxa_clear_irq(unsigned int intNum);
19 //static inline void irq_init_irq(void)
21 // unsigned long flags;
24 // save_flags_cli(flags);
26 // restore_flags(flags);
28 // for (irq = 0; irq < NR_IRQS; irq++)
30 // irq_desc[irq].valid = 1;
31 // irq_desc[irq].probe_ok = 1;
32 // irq_desc[irq].mask_ack = cpe_mask_ack_irq;
33 // irq_desc[irq].mask = cpe_mask_irq;
34 // irq_desc[irq].unmask = cpe_unmask_irq;
38 //static inline int fixup_irq(int irq)
40 //#ifdef CONFIG_A320C_PLATFORM
41 // unsigned int status;
43 // if(irq==IRQ_EXT_A321)
45 // status=*(volatile unsigned int *)(CPE_A321_IC_VA_BASE+IRQ_STATUS_REG);
46 // if(status&(1<<(IRQ_A321_PCI-CPE_A321_IRQ_START))) //pci irq
49 // switch(ftpci_get_irq())
51 // case 0: return VIRQ_PCI_A;
52 // case 1: return VIRQ_PCI_B;
53 // case 2: return VIRQ_PCI_C;
54 // case 3: return VIRQ_PCI_D;
60 // return (i+CPE_A321_IRQ_START);
65 //#ifdef CONFIG_FIE7100_PLATFORM
69 // switch(ftpci_get_irq())
71 // case 0: return VIRQ_PCI_A;
72 // case 1: return VIRQ_PCI_B;
73 // case 2: return VIRQ_PCI_C;
74 // case 3: return VIRQ_PCI_D;
82 #endif /* __ASM_ARCH_IRQ_H__ */