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(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Return Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_USBPSPCM_ERROR_NOT_INITIALIZED = 0x80110401,
|
|
|
|
|
CELL_USBPSPCM_ERROR_ALREADY = 0x80110402,
|
|
|
|
|
CELL_USBPSPCM_ERROR_INVALID = 0x80110403,
|
|
|
|
|
CELL_USBPSPCM_ERROR_NO_MEMORY = 0x80110404,
|
|
|
|
|
CELL_USBPSPCM_ERROR_BUSY = 0x80110405,
|
|
|
|
|
CELL_USBPSPCM_ERROR_INPROGRESS = 0x80110406,
|
|
|
|
|
CELL_USBPSPCM_ERROR_NO_SPACE = 0x80110407,
|
|
|
|
|
CELL_USBPSPCM_ERROR_CANCELED = 0x80110408,
|
|
|
|
|
CELL_USBPSPCM_ERROR_RESETTING = 0x80110409,
|
|
|
|
|
CELL_USBPSPCM_ERROR_RESET_END = 0x8011040A,
|
|
|
|
|
CELL_USBPSPCM_ERROR_CLOSED = 0x8011040B,
|
|
|
|
|
CELL_USBPSPCM_ERROR_NO_DATA = 0x8011040C,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmInit()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmCalcPoolSize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmRegister()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmUnregister()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmGetAddr()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmBind()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmBindAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmWaitBindAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmPollBindAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmCancelBind()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmClose()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmSend()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmSendAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmWaitSendAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmPollSendAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmRecv()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmRecvAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmWaitRecvAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmPollRecvAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmReset()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmResetAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmWaitResetAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmPollResetAsync()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmWaitData()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmPollData()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 18:08:10 +02:00
|
|
|
s32 cellUsbPspcmCancelWaitData()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellUsbPspcm);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellUsbPspcm)("cellUsbPspcm", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-29 18:08:10 +02:00
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmInit);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmEnd);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmCalcPoolSize);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmRegister);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmUnregister);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmGetAddr);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmBind);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmBindAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmWaitBindAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmPollBindAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmCancelBind);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmClose);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmSend);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmSendAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmWaitSendAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmPollSendAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmRecv);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmRecvAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmWaitRecvAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmPollRecvAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmReset);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmResetAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmWaitResetAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmPollResetAsync);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmWaitData);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmPollData);
|
|
|
|
|
REG_FUNC(cellUsbPspcm, cellUsbPspcmCancelWaitData);
|
|
|
|
|
});
|