prime/include/dolphin/os/OSMemory.h
Luke Street 329618c585 More main progress; tons of headers & stuff
Former-commit-id: a6e365791b35de8a1c056db8a4833150450c84d9
2022-09-13 00:28:02 -04:00

27 lines
515 B
C

#ifndef _OSMEMORY_H_
#define _OSMEMORY_H_
#include "types.h"
#ifdef __cplusplus
extern "C" {
#endif
#define OS_PROTECT_CHAN0 0
#define OS_PROTECT_CHAN1 1
#define OS_PROTECT_CHAN2 2
#define OS_PROTECT_CHAN3 3
#define OS_PROTECT_CONTROL_NONE 0x00
#define OS_PROTECT_CONTROL_READ 0x01
#define OS_PROTECT_CONTROL_WRITE 0x02
#define OS_PROTECT_CONTROL_RDWR (OS_PROTECT_CONTROL_READ | OS_PROTECT_CONTROL_WRITE)
void OSProtectRange(u32 chan, void* addr, u32 nBytes, u32 control);
#ifdef __cplusplus
}
#endif
#endif