1 |
/* |
2 |
* PearPC |
3 |
* mem.h |
4 |
* |
5 |
* Copyright (C) 2003, 2004 Sebastian Biallas (sb@biallas.net) |
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 version 2 as |
9 |
* published by the Free Software Foundation. |
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., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 |
*/ |
20 |
|
21 |
#ifndef __MEM_H__ |
22 |
#define __MEM_H__ |
23 |
|
24 |
#include "system/types.h" |
25 |
|
26 |
bool ppc_init_physical_memory(uint size); |
27 |
|
28 |
uint32 ppc_get_memory_size(); |
29 |
|
30 |
bool ppc_dma_write(uint32 dest, const void *src, uint32 size); |
31 |
bool ppc_dma_read(void *dest, uint32 src, uint32 size); |
32 |
bool ppc_dma_set(uint32 dest, int c, uint32 size); |
33 |
|
34 |
void ppc_cpu_map_framebuffer(uint32 pa, uint32 ea); |
35 |
|
36 |
/* |
37 |
* These functions will be removed once we switch to openbios. |
38 |
*/ |
39 |
|
40 |
bool DEPRECATED ppc_prom_set_sdr1(uint32 newval, bool quiesce); |
41 |
bool DEPRECATED ppc_prom_effective_to_physical(uint32 &result, uint32 ea); |
42 |
bool DEPRECATED ppc_prom_page_create(uint32 ea, uint32 pa); |
43 |
|
44 |
#endif |