pervasive.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Cell Pervasive Monitor and Debug interface and HW structures
  3. *
  4. * (C) Copyright IBM Corporation 2005
  5. *
  6. * Authors: Maximino Aguilar (maguilar@us.ibm.com)
  7. * David J. Erb (djerb@us.ibm.com)
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2, or (at your option)
  12. * any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. */
  23. #ifndef PERVASIVE_H
  24. #define PERVASIVE_H
  25. struct pmd_regs {
  26. u8 pad_0x0000_0x0800[0x0800 - 0x0000]; /* 0x0000 */
  27. /* Thermal Sensor Registers */
  28. u64 ts_ctsr1; /* 0x0800 */
  29. u64 ts_ctsr2; /* 0x0808 */
  30. u64 ts_mtsr1; /* 0x0810 */
  31. u64 ts_mtsr2; /* 0x0818 */
  32. u64 ts_itr1; /* 0x0820 */
  33. u64 ts_itr2; /* 0x0828 */
  34. u64 ts_gitr; /* 0x0830 */
  35. u64 ts_isr; /* 0x0838 */
  36. u64 ts_imr; /* 0x0840 */
  37. u64 tm_cr1; /* 0x0848 */
  38. u64 tm_cr2; /* 0x0850 */
  39. u64 tm_simr; /* 0x0858 */
  40. u64 tm_tpr; /* 0x0860 */
  41. u64 tm_str1; /* 0x0868 */
  42. u64 tm_str2; /* 0x0870 */
  43. u64 tm_tsr; /* 0x0878 */
  44. /* Power Management */
  45. u64 pm_control; /* 0x0880 */
  46. #define PMD_PAUSE_ZERO_CONTROL 0x10000
  47. u64 pm_status; /* 0x0888 */
  48. /* Time Base Register */
  49. u64 tbr; /* 0x0890 */
  50. u8 pad_0x0898_0x1000 [0x1000 - 0x0898]; /* 0x0898 */
  51. };
  52. void __init cell_pervasive_init(void);
  53. #endif