aintc_defs.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Copyright (C) 2011
  3. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. */
  23. #ifndef _DV_AINTC_DEFS_H_
  24. #define _DV_AINTC_DEFS_H_
  25. struct dv_aintc_regs {
  26. unsigned int fiq0; /* 0x00 */
  27. unsigned int fiq1; /* 0x04 */
  28. unsigned int irq0; /* 0x08 */
  29. unsigned int irq1; /* 0x0c */
  30. unsigned int fiqentry; /* 0x10 */
  31. unsigned int irqentry; /* 0x14 */
  32. unsigned int eint0; /* 0x18 */
  33. unsigned int eint1; /* 0x1c */
  34. unsigned int intctl; /* 0x20 */
  35. unsigned int eabase; /* 0x24 */
  36. unsigned char rsvd0[8]; /* 0x28 */
  37. unsigned int intpri0; /* 0x30 */
  38. unsigned int intpri1; /* 0x34 */
  39. unsigned int intpri2; /* 0x38 */
  40. unsigned int intpri3; /* 0x3c */
  41. unsigned int intpri4; /* 0x40 */
  42. unsigned int intpri5; /* 0x44 */
  43. unsigned int intpri6; /* 0x48 */
  44. unsigned int intpri7; /* 0x4c */
  45. };
  46. #define dv_aintc_regs ((struct dv_aintc_regs *)DAVINCI_ARM_INTC_BASE)
  47. #define DV_AINTC_INTCTL_IDMODE (1 << 2)
  48. #endif /* _DV_AINTC_DEFS_H_ */