rpcsx/rpcs3/Emu/SysCalls/Modules/cellUsbd.cpp

213 lines
3.6 KiB
C++
Raw Normal View History

2014-07-12 09:46:14 +02:00
#include "stdafx.h"
2015-02-22 09:50:26 +01:00
#include "Emu/Memory/Memory.h"
#include "Emu/System.h"
#include "Emu/SysCalls/Modules.h"
#include "cellUsbd.h"
2015-02-22 09:50:26 +01:00
extern Module cellUsbd;
struct cellUsbdInternal
{
bool m_bInitialized;
cellUsbdInternal()
: m_bInitialized(false)
{
}
};
cellUsbdInternal cellUsbdInstance;
2015-02-22 09:50:26 +01:00
s32 cellUsbdInit()
{
cellUsbd.Log("cellUsbdInit()");
if (cellUsbdInstance.m_bInitialized)
return CELL_USBD_ERROR_ALREADY_INITIALIZED;
cellUsbdInstance.m_bInitialized = true;
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdEnd()
{
cellUsbd.Log("cellUsbdEnd()");
if (!cellUsbdInstance.m_bInitialized)
return CELL_USBD_ERROR_NOT_INITIALIZED;
cellUsbdInstance.m_bInitialized = false;
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdSetThreadPriority()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdSetThreadPriority2()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdGetThreadPriority()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdRegisterLdd()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdRegisterExtraLdd()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdRegisterExtraLdd2()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdUnregisterLdd()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdUnregisterExtraLdd()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdOpenPipe()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdClosePipe()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdControlTransfer()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdBulkTransfer()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdInterruptTransfer()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdIsochronousTransfer()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdHSIsochronousTransfer()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdScanStaticDescriptor()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdGetDeviceSpeed()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdGetDeviceLocation()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdSetPrivateData()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdGetPrivateData()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdAllocateMemory()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellUsbdFreeMemory()
{
UNIMPLEMENTED_FUNC(cellUsbd);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
Module cellUsbd("cellUsbd", []()
{
cellUsbdInstance.m_bInitialized = false;
REG_FUNC(cellUsbd, cellUsbdInit);
REG_FUNC(cellUsbd, cellUsbdEnd);
REG_FUNC(cellUsbd, cellUsbdSetThreadPriority);
REG_FUNC(cellUsbd, cellUsbdSetThreadPriority2);
REG_FUNC(cellUsbd, cellUsbdGetThreadPriority);
REG_FUNC(cellUsbd, cellUsbdRegisterLdd);
REG_FUNC(cellUsbd, cellUsbdRegisterExtraLdd);
REG_FUNC(cellUsbd, cellUsbdRegisterExtraLdd2);
REG_FUNC(cellUsbd, cellUsbdUnregisterLdd);
REG_FUNC(cellUsbd, cellUsbdUnregisterExtraLdd);
REG_FUNC(cellUsbd, cellUsbdOpenPipe);
REG_FUNC(cellUsbd, cellUsbdClosePipe);
REG_FUNC(cellUsbd, cellUsbdControlTransfer);
REG_FUNC(cellUsbd, cellUsbdBulkTransfer);
REG_FUNC(cellUsbd, cellUsbdInterruptTransfer);
REG_FUNC(cellUsbd, cellUsbdIsochronousTransfer);
REG_FUNC(cellUsbd, cellUsbdHSIsochronousTransfer);
REG_FUNC(cellUsbd, cellUsbdScanStaticDescriptor);
REG_FUNC(cellUsbd, cellUsbdGetDeviceSpeed);
REG_FUNC(cellUsbd, cellUsbdGetDeviceLocation);
REG_FUNC(cellUsbd, cellUsbdSetPrivateData);
REG_FUNC(cellUsbd, cellUsbdGetPrivateData);
REG_FUNC(cellUsbd, cellUsbdAllocateMemory);
REG_FUNC(cellUsbd, cellUsbdFreeMemory);
2015-02-22 12:38:14 +01:00
});