2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2015-02-22 09:50:26 +01:00
|
|
|
#include "Emu/System.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2015-02-22 09:50:26 +01:00
|
|
|
#include "cellUsbd.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel cellUsbd("cellUsbd");
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdInit()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
cellUsbd.warning("cellUsbdInit()");
|
2015-02-22 15:50:11 +01:00
|
|
|
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2016-01-12 22:57:16 +01:00
|
|
|
cellUsbd.warning("cellUsbdEnd()");
|
2015-02-22 15:50:11 +01:00
|
|
|
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdSetThreadPriority()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdSetThreadPriority2()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdGetThreadPriority()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdRegisterLdd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-09 18:41:58 +02:00
|
|
|
s32 cellUsbdRegisterCompositeLdd()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdRegisterExtraLdd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdRegisterExtraLdd2()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdUnregisterLdd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-09 18:41:58 +02:00
|
|
|
s32 cellUsbdUnregisterCompositeLdd()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdUnregisterExtraLdd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdOpenPipe()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdClosePipe()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdControlTransfer()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdBulkTransfer()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdInterruptTransfer()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdIsochronousTransfer()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdHSIsochronousTransfer()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdScanStaticDescriptor()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdGetDeviceSpeed()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdGetDeviceLocation()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdSetPrivateData()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdGetPrivateData()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdAllocateMemory()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellUsbdFreeMemory()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-09 18:41:58 +02:00
|
|
|
s32 cellUsbdResetDevice()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellUsbd);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellUsbd)("cellUsbd", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdInit);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdEnd);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdSetThreadPriority);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdSetThreadPriority2);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdGetThreadPriority);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdRegisterLdd);
|
2017-08-09 18:41:58 +02:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdRegisterCompositeLdd);
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdRegisterExtraLdd);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdRegisterExtraLdd2);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdUnregisterLdd);
|
2017-08-09 18:41:58 +02:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdUnregisterCompositeLdd);
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdUnregisterExtraLdd);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdOpenPipe);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdClosePipe);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdControlTransfer);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdBulkTransfer);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdInterruptTransfer);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdIsochronousTransfer);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdHSIsochronousTransfer);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdScanStaticDescriptor);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdGetDeviceSpeed);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdGetDeviceLocation);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdSetPrivateData);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdGetPrivateData);
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellUsbd, cellUsbdAllocateMemory);
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdFreeMemory);
|
2017-08-09 18:41:58 +02:00
|
|
|
|
|
|
|
|
REG_FUNC(cellUsbd, cellUsbdResetDevice);
|
2015-02-22 12:38:14 +01:00
|
|
|
});
|