mirror of
https://github.com/rvtr/TwlIPL_commit-99.git
synced 2025-10-31 06:21:11 -04:00
60 lines
2.1 KiB
C
Executable File
60 lines
2.1 KiB
C
Executable File
/*---------------------------------------------------------------------------*
|
|
Project: NITRO-System - include - nnsys - gfd - VramManager
|
|
File: gfd_FramePlttVramMan.h
|
|
|
|
Copyright 2004-2008 Nintendo. 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.
|
|
|
|
$Revision: 172 $
|
|
*---------------------------------------------------------------------------*/
|
|
#ifndef NNS_GFD_FRAMEPLTTVRAMMAN_H_
|
|
#define NNS_GFD_FRAMEPLTTVRAMMAN_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <nitro.h>
|
|
#include <nnsys/gfd/VramManager/gfd_PlttVramMan_Types.h>
|
|
|
|
|
|
typedef struct NNSGfdFrmPlttVramState
|
|
{
|
|
u32 address[2];
|
|
|
|
} NNSGfdFrmPlttVramState;
|
|
|
|
/*---------------------------------------------------------------------------*
|
|
Name: NNS_GfdDumpFrmPlttVramManagerEx
|
|
|
|
Description: NNS_GfdDumpFrmPlttVramManagerEx()関数で利用される、
|
|
ユーザ定義デバックダンプコールバック関数
|
|
|
|
*---------------------------------------------------------------------------*/
|
|
typedef void (*NNSGfdFrmPlttVramDebugDumpCallBack)( u32 loAddr, u32 hiAddr, u32 szFree, u32 szTotal );
|
|
|
|
|
|
|
|
void NNS_GfdDumpFrmPlttVramManager();
|
|
void NNS_GfdDumpFrmPlttVramManagerEx( NNSGfdFrmPlttVramDebugDumpCallBack pFunc );
|
|
|
|
void NNS_GfdInitFrmPlttVramManager( u32 szByte, BOOL useAsDefault );
|
|
|
|
NNSGfdPlttKey NNS_GfdAllocFrmPlttVram( u32 szByte, BOOL b4Pltt, u32 bAllocFromLo );
|
|
int NNS_GfdFreeFrmPlttVram( NNSGfdPlttKey plttKey );
|
|
|
|
void NNS_GfdGetFrmPlttVramState( NNSGfdFrmPlttVramState* pState );
|
|
void NNS_GfdSetFrmPlttVramState( const NNSGfdFrmPlttVramState* pState );
|
|
void NNS_GfdResetFrmPlttVramState();
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif // NNS_GFD_FRAMEPLTTVRAMMAN_H_
|