Geoff Levand | f58a9d1 | 2006-11-23 00:46:51 +0100 | [diff] [blame] | 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 | |
Geoff Levand | de91a53 | 2006-11-23 00:46:59 +0100 | [diff] [blame^] | 60 | /* spu */ |
| 61 | |
| 62 | #if defined(CONFIG_SPU_BASE) |
| 63 | void ps3_spu_set_platform (void); |
| 64 | #else |
| 65 | static inline void ps3_spu_set_platform (void) {} |
| 66 | #endif |
| 67 | |
Geoff Levand | f58a9d1 | 2006-11-23 00:46:51 +0100 | [diff] [blame] | 68 | #endif |