diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2006-11-22 18:46:51 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:40:42 -0500 |
commit | f58a9d171a346afb1b09190427e6c28c6118703e (patch) | |
tree | c58029f610ba1e7a8680d09a8cdbdb737dbc166b /arch/powerpc/platforms/ps3/platform.h | |
parent | a985239bdf017e00e985c3a31149d6ae128fdc5f (diff) |
[POWERPC] ps3: add support for ps3 platform
Adds the core platform support for the PS3 game console and other devices
using the PS3 hypervisor.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Diffstat (limited to 'arch/powerpc/platforms/ps3/platform.h')
-rw-r--r-- | arch/powerpc/platforms/ps3/platform.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/ps3/platform.h b/arch/powerpc/platforms/ps3/platform.h new file mode 100644 index 000000000000..d9948df6ccd4 --- /dev/null +++ b/arch/powerpc/platforms/ps3/platform.h | |||
@@ -0,0 +1,60 @@ | |||
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 | |||
21 | #if !defined(_PS3_PLATFORM_H) | ||
22 | #define _PS3_PLATFORM_H | ||
23 | |||
24 | #include <linux/rtc.h> | ||
25 | |||
26 | /* htab */ | ||
27 | |||
28 | void __init ps3_hpte_init(unsigned long htab_size); | ||
29 | void __init ps3_map_htab(void); | ||
30 | |||
31 | /* mm */ | ||
32 | |||
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); | ||
37 | |||
38 | /* irq */ | ||
39 | |||
40 | void ps3_init_IRQ(void); | ||
41 | void __init ps3_register_ipi_debug_brk(unsigned int cpu, unsigned int virq); | ||
42 | |||
43 | /* smp */ | ||
44 | |||
45 | void smp_init_ps3(void); | ||
46 | void ps3_smp_cleanup_cpu(int cpu); | ||
47 | |||
48 | /* time */ | ||
49 | |||
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); | ||
54 | |||
55 | /* os area */ | ||
56 | |||
57 | int __init ps3_os_area_init(void); | ||
58 | u64 ps3_os_area_rtc_diff(void); | ||
59 | |||
60 | #endif | ||