/*---------------------------------------------------------------------------* Project: Horizon File: os_Memory.h Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Rev: 38846 $ *---------------------------------------------------------------------------*/ /* Please see man pages for details */ #ifndef NN_OS_OS_MEMORY_H_ #define NN_OS_OS_MEMORY_H_ #include #include #include #include #ifdef __cplusplus #include #include #include #define NN_OS_DEVICE_MEMORY_SIZE (32 * 1024 * 1024) // 32MB namespace nn{ namespace os{ /* Please see man pages for details */ const size_t DEVICE_MEMORY_SIZE NN_ATTRIBUTE_DEPRECATED = NN_OS_DEVICE_MEMORY_SIZE; /* Please see man pages for details */ void InitializeDeviceMemory() NN_ATTRIBUTE_DEPRECATED; /* */ void SetupHeapForMemoryBlock(size_t heapSize); /* */ uptr GetDeviceMemoryAddress(); /* */ Result SetDeviceMemorySize(size_t size); /* */ size_t GetDeviceMemorySize(); /* */ inline uptr GetHeapAddress() { return NN_OS_ADDR_HEAP_BEGIN; } /* */ Result SetHeapSize(size_t size); /* */ size_t GetHeapSize(); }} // namespace nn::os #endif // __cplusplus // Below is the C declaration #include /* Please see man pages for details */ /* Please see man pages for details */ NN_EXTERN_C void nnosInitializeDeviceMemory(void); /* Please see man pages for details */ NN_EXTERN_C uptr nnosGetDeviceMemoryAddress(void); /* */ /* NN_OS_MEMORY_H_ */ #endif /* NN_OS_OS_MEMORY_H_ */