platform.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /*
  2. * PS3 platform declarations.
  3. *
  4. * Copyright (C) 2006 Sony Computer Entertainment Inc.
  5. * Copyright 2006 Sony Corp.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; version 2 of the License.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #if !defined(_PS3_PLATFORM_H)
  21. #define _PS3_PLATFORM_H
  22. #include <linux/rtc.h>
  23. /* htab */
  24. void __init ps3_hpte_init(unsigned long htab_size);
  25. void __init ps3_map_htab(void);
  26. /* mm */
  27. void __init ps3_mm_init(void);
  28. void __init ps3_mm_vas_create(unsigned long* htab_size);
  29. void ps3_mm_vas_destroy(void);
  30. void ps3_mm_shutdown(void);
  31. /* irq */
  32. void ps3_init_IRQ(void);
  33. void __init ps3_register_ipi_debug_brk(unsigned int cpu, unsigned int virq);
  34. /* smp */
  35. void smp_init_ps3(void);
  36. void ps3_smp_cleanup_cpu(int cpu);
  37. /* time */
  38. void __init ps3_calibrate_decr(void);
  39. unsigned long __init ps3_get_boot_time(void);
  40. void ps3_get_rtc_time(struct rtc_time *time);
  41. int ps3_set_rtc_time(struct rtc_time *time);
  42. /* os area */
  43. int __init ps3_os_area_init(void);
  44. u64 ps3_os_area_rtc_diff(void);
  45. /* spu */
  46. #if defined(CONFIG_SPU_BASE)
  47. void ps3_spu_set_platform (void);
  48. #else
  49. static inline void ps3_spu_set_platform (void) {}
  50. #endif
  51. #endif