2014-07-12 17:46:14 +10:00
|
|
|
#include "stdafx.h"
|
2016-03-21 22:43:03 +03:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2014-12-30 22:15:00 +02:00
|
|
|
#include "cellSubdisplay.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2016-05-13 16:55:34 +03:00
|
|
|
logs::channel cellSubdisplay("cellSubdisplay", logs::level::notice);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayInit()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayGetRequiredMemory(vm::ptr<CellSubDisplayParam> pParam)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2016-01-13 00:57:16 +03:00
|
|
|
cellSubdisplay.warning("cellSubDisplayGetRequiredMemory(pParam=*0x%x)", pParam);
|
2014-12-30 22:15:00 +02:00
|
|
|
|
|
|
|
|
if (pParam->version == CELL_SUBDISPLAY_VERSION_0002)
|
|
|
|
|
{
|
|
|
|
|
return CELL_SUBDISPLAY_0002_MEMORY_CONTAINER_SIZE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return CELL_SUBDISPLAY_0001_MEMORY_CONTAINER_SIZE;
|
|
|
|
|
}
|
2013-09-28 04:36:57 +02:00
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayStart()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayStop()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayGetVideoBuffer()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayAudioOutBlocking()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayAudioOutNonBlocking()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayGetPeerNum()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-09 18:30:37 +03:00
|
|
|
s32 cellSubDisplayGetPeerList()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 22:43:03 +03:00
|
|
|
DECLARE(ppu_module_manager::cellSubdisplay)("cellSubdisplay", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-02-20 16:58:40 +03:00
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayInit);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayEnd);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayGetRequiredMemory);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayStart);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayStop);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayGetVideoBuffer);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayAudioOutBlocking);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayAudioOutNonBlocking);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayGetPeerNum);
|
|
|
|
|
REG_FUNC(cellSubdisplay, cellSubDisplayGetPeerList);
|
2015-02-18 19:22:06 +03:00
|
|
|
});
|