Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. static int plat_real_irq(int irq)
  2. {
  3. #if 0
  4.     /* THIS COULD BE REMOVED as gpio irqs are handled in gpio.c */
  5.     if ((irq >= IRQ_GPIO5) && (irq <= IRQ_GPIO0)) {
  6.         int group = IRQ_GPIO0 - irq;
  7.         irq = __gpio_group_irq(group);
  8.         if (irq >= 0)
  9.             irq += IRQ_GPIO_0 + 32 * group;
  10.     } else {
  11. #endif
  12.         switch (irq) {
  13.         case IRQ_DMAC0:
  14.         case IRQ_DMAC1:
  15.             irq = __dmac_get_irq();
  16.             if (irq < 0) {
  17.                 printk("REG_DMAC_DMAIPR(0) = 0x%08x\n",
  18.                         REG_DMAC_DMAIPR(0));
  19.                 printk("REG_DMAC_DMAIPR(1) = 0x%08x\n",
  20.                         REG_DMAC_DMAIPR(1));
  21.                 return irq;
  22.             }
  23.             irq += IRQ_DMA_0;
  24.             break;
  25.         }
  26. #if 0 // remove this as well
  27.     }
  28. #endif
  29.  
  30.     return irq;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement