immap_5271.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /*
  2. * MCF5272 Internal Memory Map
  3. *
  4. * Copyright (c) 2003 Josef Baumgartner <josef.baumgartner@telex.de>
  5. * 2006 Zachary P. Landau <zachary.landau@labxtechnologies.com>
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #ifndef __IMMAP_5271__
  26. #define __IMMAP_5271__
  27. /* Interrupt module registers
  28. */
  29. typedef struct int_ctrl {
  30. uint int_icr1;
  31. uint int_icr2;
  32. uint int_icr3;
  33. uint int_icr4;
  34. uint int_isr;
  35. uint int_pitr;
  36. uint int_piwr;
  37. uchar res1[3];
  38. uchar int_pivr;
  39. } intctrl_t;
  40. /* Timer module registers
  41. */
  42. typedef struct timer_ctrl {
  43. ushort timer_tmr;
  44. ushort res1;
  45. ushort timer_trr;
  46. ushort res2;
  47. ushort timer_tcap;
  48. ushort res3;
  49. ushort timer_tcn;
  50. ushort res4;
  51. ushort timer_ter;
  52. uchar res5[14];
  53. } timer_t;
  54. /* Fast ethernet controller registers
  55. */
  56. typedef struct fec {
  57. uint res1;
  58. uint fec_ievent;
  59. uint fec_imask;
  60. uint res2;
  61. uint fec_r_des_active;
  62. uint fec_x_des_active;
  63. uint res3[3];
  64. uint fec_ecntrl;
  65. uint res4[6];
  66. uint fec_mii_data;
  67. uint fec_mii_speed;
  68. uint res5[7];
  69. uint fec_mibc;
  70. uint res6[7];
  71. uint fec_r_cntrl;
  72. uint res7[15];
  73. uint fec_x_cntrl;
  74. uint res8[7];
  75. uint fec_addr_low;
  76. uint fec_addr_high;
  77. uint fec_opd;
  78. uint res9[10];
  79. uint fec_ihash_table_high;
  80. uint fec_ihash_table_low;
  81. uint fec_ghash_table_high;
  82. uint fec_ghash_table_low;
  83. uint res10[7];
  84. uint fec_tfwr;
  85. uint res11;
  86. uint fec_r_bound;
  87. uint fec_r_fstart;
  88. uint res12[11];
  89. uint fec_r_des_start;
  90. uint fec_x_des_start;
  91. uint fec_r_buff_size;
  92. } fec_t;
  93. #endif /* __IMMAP_5271__ */