MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-moxart / irq.h-bak-11212005
blob7586cb1b7cbeae47203265d528613bad93c52f4d
1 /* asm/arch-cpe/irq.h */
3 #ifndef __ASM_ARCH_IRQ_H__
4 #define __ASM_ARCH_IRQ_H__
5 //#include <asm/hardware.h>
6 //#include <asm/io.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)
20 //{
21 //      unsigned long flags;
22 //      int irq;
24 //      save_flags_cli(flags);
25 //      cpe_int_init();
26 //      restore_flags(flags);
28 //      for (irq = 0; irq < NR_IRQS; irq++) 
29 //      {
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;
35 //      }
36 //}
38 //static inline int fixup_irq(int irq)
39 //{
40 //#ifdef CONFIG_A320C_PLATFORM
41 //    unsigned int status;
42 //    unsigned int i;
43 //    if(irq==IRQ_EXT_A321)
44 //    {
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
47 //        {
48 //#ifdef CONFIG_PCI
49 //            switch(ftpci_get_irq())
50 //            {
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;
55 //            }
56 //#endif            
57 //        }
58 //        for(i=0;i<32;i++)
59 //            if (status&(1<<i))
60 //                return (i+CPE_A321_IRQ_START);
61 //        
62 //    }
63 //#endif
65 //#ifdef CONFIG_FIE7100_PLATFORM
66 //#ifdef CONFIG_PCI
67 //    if(irq==IRQ_PCI)
68 //    {
69 //        switch(ftpci_get_irq())
70 //        {
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;
75 //        }
76 //    }
77 //#endif
78 //#endif
79 //    return irq;
80 //}
82 #endif /* __ASM_ARCH_IRQ_H__ */