Skip to content

Commit 84c7223

Browse files
hcorionzeldin
authored andcommitted
Add some usbd syscalls
1 parent 2c0987b commit 84c7223

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

ppu/include/sys/usbd.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

Comments
 (0)