2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2018-08-25 14:39:00 +02:00
|
|
|
LOG_CHANNEL(cellSheap);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Return Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_SHEAP_ERROR_INVAL = 0x80410302,
|
|
|
|
|
CELL_SHEAP_ERROR_BUSY = 0x8041030A,
|
|
|
|
|
CELL_SHEAP_ERROR_ALIGN = 0x80410310,
|
|
|
|
|
CELL_SHEAP_ERROR_SHORTAGE = 0x80410312,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellSheapInitialize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellSheapAllocate()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellSheapFree()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellSheapQueryMax()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellSheapQueryFree()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapInitialize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapBufferNew()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapBufferDelete()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapMutexNew()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapMutexDelete()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapBarrierNew()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapBarrierDelete()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapSemaphoreNew()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapSemaphoreDelete()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapRwmNew()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapRwmDelete()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapQueueNew()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 17:39:34 +02:00
|
|
|
s32 cellKeySheapQueueDelete()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSheap);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellSheap)("cellSheap", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellSheap, cellSheapInitialize);
|
|
|
|
|
REG_FUNC(cellSheap, cellSheapAllocate);
|
|
|
|
|
REG_FUNC(cellSheap, cellSheapFree);
|
|
|
|
|
REG_FUNC(cellSheap, cellSheapQueryMax);
|
|
|
|
|
REG_FUNC(cellSheap, cellSheapQueryFree);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellSheap, cellKeySheapInitialize);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapBufferNew);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapBufferDelete);
|
|
|
|
|
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapMutexNew);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapMutexDelete);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapBarrierNew);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapBarrierDelete);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapSemaphoreNew);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapSemaphoreDelete);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapRwmNew);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapRwmDelete);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapQueueNew);
|
|
|
|
|
REG_FUNC(cellSheap, cellKeySheapQueueDelete);
|
2015-07-29 17:39:34 +02:00
|
|
|
});
|