|
| 1 | +#ifndef __SYS_USBD_H__ |
| 2 | +#define __SYS_USBD_H__ |
| 3 | + |
| 4 | +#include <ppu-lv2.h> |
| 5 | + |
| 6 | +#ifdef __cplusplus |
| 7 | + extern "C" { |
| 8 | +#endif |
| 9 | + |
| 10 | +LV2_SYSCALL sysUsbdInitialize(u32 *initVal) |
| 11 | +{ |
| 12 | + lv2syscall1(530, initVal); |
| 13 | + return_to_user_prog(s32); |
| 14 | +} |
| 15 | +LV2_SYSCALL sysUsbdGetDeviceList(u32 handle, void *device_list, char unknown) |
| 16 | +{ |
| 17 | + lv2syscall3(532, handle, device_list, unknown); |
| 18 | + return_to_user_prog(s32); |
| 19 | +} |
| 20 | +LV2_SYSCALL sysUsbdGetDescriptorSize(u32 handle, u8 deviceNumber) |
| 21 | +{ |
| 22 | + lv2syscall2(533, handle, unk1); |
| 23 | + return_to_user_prog(s32); |
| 24 | +} |
| 25 | + |
| 26 | +LV2_SYSCALL sysUsbdGetDescriptor(u32 handle, u8 deviceNumber, void *descriptor, s64 descSize) |
| 27 | +{ |
| 28 | + lv2syscall4(534, handle, unk1, descriptor, descSize); |
| 29 | + return_to_user_prog(s32); |
| 30 | +} |
| 31 | + |
| 32 | +LV2_SYSCALL sysUsbdReceiveEvent(u32 handle, u64 *unk1, u64 *unk2, u64 *unk3) |
| 33 | +{ |
| 34 | + lv2syscall4(540, handle, unk1, unk2, unk3); |
| 35 | + return_to_user_prog(s32); |
| 36 | +} |
| 37 | + |
| 38 | +LV2_SYSCALL sysUsbdRegisterExtraLdd(u32 handle, void *lddOps, u16 strLen, u16 vendorID, u16 productID, u16 unk1) |
| 39 | +{ |
| 40 | + lv2syscall6(559, handle, lddOps, strLen, vendorID, productID, unk1); |
| 41 | + return_to_user_prog(s32); |
| 42 | +} |
| 43 | + |
| 44 | +#ifdef __cplusplus |
| 45 | + } |
| 46 | +#endif |
| 47 | + |
| 48 | +#endif |
0 commit comments