Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
OSMemory.h
Go to the documentation of this file.
1#ifndef _REVOLUTION_OSMEMORY_H_
2#define _REVOLUTION_OSMEMORY_H_
3
4#include <revolution/types.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define OS_PROTECT_CHAN0 0
11#define OS_PROTECT_CHAN1 1
12#define OS_PROTECT_CHAN2 2
13#define OS_PROTECT_CHAN3 3
14
15#define OS_PROTECT_CONTROL_NONE 0x00
16#define OS_PROTECT_CONTROL_READ 0x01
17#define OS_PROTECT_CONTROL_WRITE 0x02
18#define OS_PROTECT_CONTROL_RDWR (OS_PROTECT_CONTROL_READ | OS_PROTECT_CONTROL_WRITE)
19
20void OSProtectRange(u32 chan, void* addr, u32 nBytes, u32 control);
25
26#ifdef __cplusplus
27}
28#endif
29
30#endif
unsigned long u32
Definition types.h:12
u32 OSGetPhysicalMem2Size(void)
Definition OSMemory.c:24
u32 OSGetConsoleSimulatedMem1Size(void)
Definition OSMemory.c:29
u32 OSGetConsoleSimulatedMem2Size(void)
Definition OSMemory.c:34
u32 OSGetPhysicalMem1Size(void)
Definition OSMemory.c:19
void OSProtectRange(u32 chan, void *addr, u32 nBytes, u32 control)
Definition OSMemory.c:65