2 * PS3 platform declarations.
4 * Copyright (C) 2006 Sony Computer Entertainment Inc.
5 * Copyright 2006 Sony Corp.
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.
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.
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
21 #if !defined(_PS3_PLATFORM_H)
22 #define _PS3_PLATFORM_H
24 #include <linux/rtc.h>
28 void __init ps3_hpte_init(unsigned long htab_size);
29 void __init ps3_map_htab(void);
33 void __init ps3_mm_init(void);
34 void __init ps3_mm_vas_create(unsigned long* htab_size);
35 void ps3_mm_vas_destroy(void);
36 void ps3_mm_shutdown(void);
40 void ps3_init_IRQ(void);
41 void __init ps3_register_ipi_debug_brk(unsigned int cpu, unsigned int virq);
45 void smp_init_ps3(void);
46 void ps3_smp_cleanup_cpu(int cpu);
50 void __init ps3_calibrate_decr(void);
51 unsigned long __init ps3_get_boot_time(void);
52 void ps3_get_rtc_time(struct rtc_time *time);
53 int ps3_set_rtc_time(struct rtc_time *time);
57 int __init ps3_os_area_init(void);
58 u64 ps3_os_area_rtc_diff(void);
62 #if defined(CONFIG_SPU_BASE)
63 void ps3_spu_set_platform (void);
65 static inline void ps3_spu_set_platform (void) {}