lh7a404.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * See file CREDITS for list of people who contributed to this
  3. * project.
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. /*
  21. * lh7a404 SoC interface
  22. */
  23. #ifndef __LH7A404_H__
  24. #define __LH7A404_H__
  25. #include "lh7a40x.h"
  26. /* Interrupt Controller (userguide 8.2.1) */
  27. typedef struct {
  28. volatile u32 irqstatus;
  29. volatile u32 fiqstatus;
  30. volatile u32 rawintr;
  31. volatile u32 intsel;
  32. volatile u32 inten;
  33. volatile u32 intenclr;
  34. volatile u32 softint;
  35. volatile u32 softintclr;
  36. volatile u32 protect;
  37. volatile u32 unused1;
  38. volatile u32 unused2;
  39. volatile u32 vectaddr;
  40. volatile u32 nvaddr;
  41. volatile u32 unused3[32];
  42. volatile u32 vad[16];
  43. volatile u32 unused4[44];
  44. volatile u32 vectcntl[16];
  45. volatile u32 unused5[44];
  46. volatile u32 itcr;
  47. volatile u32 itip1;
  48. volatile u32 itip2;
  49. volatile u32 itop1;
  50. volatile u32 itop2;
  51. volatile u32 unused6[333];
  52. volatile u32 periphid[4];
  53. volatile u32 pcellid[4];
  54. } /*__attribute__((__packed__))*/ lh7a404_vic_t;
  55. #define LH7A404_VIC_BASE (0x80008000)
  56. #define LH7A400_VIC_PTR(x) ((lh7a404_vic_t*)(LH7A400_VIC_BASE + (x*0x2000)))
  57. typedef struct {
  58. lh7a40x_dmachan_t m2p0_tx;
  59. lh7a40x_dmachan_t m2p1_rx;
  60. lh7a40x_dmachan_t m2p2_tx;
  61. lh7a40x_dmachan_t m2p3_rx;
  62. lh7a40x_dmachan_t m2m0;
  63. lh7a40x_dmachan_t m2m1;
  64. lh7a40x_dmachan_t unused1;
  65. lh7a40x_dmachan_t unused2;
  66. lh7a40x_dmachan_t m2p5_rx;
  67. lh7a40x_dmachan_t m2p4_tx;
  68. lh7a40x_dmachan_t m2p7_rx;
  69. lh7a40x_dmachan_t m2p6_tx;
  70. lh7a40x_dmachan_t m2p9_rx;
  71. lh7a40x_dmachan_t m2p8_tx;
  72. volatile u32 chanarb;
  73. volatile u32 glblint;
  74. } /*__attribute__((__packed__))*/ lh7a400_dma_t;
  75. #endif /* __LH7A404_H__ */