2013-09-28 04:36:57 +02:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "Emu/SysCalls/SysCalls.h"
|
|
|
|
|
#include "Emu/SysCalls/SC_FUNC.h"
|
2014-02-20 03:16:17 +01:00
|
|
|
#include "cellVpost.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
void cellVpost_init();
|
|
|
|
|
Module cellVpost(0x0008, cellVpost_init);
|
|
|
|
|
|
2014-02-20 13:13:02 +01:00
|
|
|
int cellVpostQueryAttr(const mem_ptr_t<CellVpostCfgParam> cfgParam, mem_ptr_t<CellVpostAttr> attr)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-02-20 13:13:02 +01:00
|
|
|
cellVpost.Error("cellVpostQueryAttr(cfgParam_addr=0x%x, attr_addr=0x%x)", cfgParam.GetAddr(), attr.GetAddr());
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-20 13:13:02 +01:00
|
|
|
int cellVpostOpen(const mem_ptr_t<CellVpostCfgParam> cfgParam, const mem_ptr_t<CellVpostResource> resource, mem32_t handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-02-20 13:13:02 +01:00
|
|
|
cellVpost.Error("cellVpostOpen(cfgParam_addr=0x%x, resource_addr=0x%x, handle_addr=0x%x)",
|
|
|
|
|
cfgParam.GetAddr(), resource.GetAddr(), handle.GetAddr());
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-20 13:13:02 +01:00
|
|
|
int cellVpostOpenEx(const mem_ptr_t<CellVpostCfgParam> cfgParam, const mem_ptr_t<CellVpostResourceEx> resource, mem32_t handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-02-20 13:13:02 +01:00
|
|
|
cellVpost.Error("cellVpostOpenEx(cfgParam_addr=0x%x, resource_addr=0x%x, handle_addr=0x%x)",
|
|
|
|
|
cfgParam.GetAddr(), resource.GetAddr(), handle.GetAddr());
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-20 13:13:02 +01:00
|
|
|
int cellVpostClose(u32 handle)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-02-20 13:13:02 +01:00
|
|
|
cellVpost.Error("cellVpostClose(handle=0x%x)", handle);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-02-20 13:13:02 +01:00
|
|
|
int cellVpostExec(u32 handle, const u32 inPicBuff_addr, const mem_ptr_t<CellVpostCtrlParam> ctrlParam,
|
|
|
|
|
u32 outPicBuff_addr, mem_ptr_t<CellVpostPictureInfo> picInfo)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-02-20 13:13:02 +01:00
|
|
|
cellVpost.Error("cellVpostExec(handle=0x%x, inPicBuff_addr=0x%x, ctrlParam_addr=0x%x, outPicBuff_addr=0x%x, picInfo_addr=0x%x)",
|
|
|
|
|
handle, inPicBuff_addr, ctrlParam.GetAddr(), outPicBuff_addr, picInfo.GetAddr());
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void cellVpost_init()
|
|
|
|
|
{
|
|
|
|
|
cellVpost.AddFunc(0x95e788c3, cellVpostQueryAttr);
|
|
|
|
|
cellVpost.AddFunc(0xcd33f3e2, cellVpostOpen);
|
|
|
|
|
cellVpost.AddFunc(0x40524325, cellVpostOpenEx);
|
|
|
|
|
cellVpost.AddFunc(0x10ef39f6, cellVpostClose);
|
|
|
|
|
cellVpost.AddFunc(0xabb8cc3d, cellVpostExec);
|
|
|
|
|
}
|