diff options
author | Sergi Granell | 2017-01-05 14:25:28 +0100 |
---|---|---|
committer | Sergi Granell | 2017-01-05 14:25:28 +0100 |
commit | 5936d38bec328e0610e21cfd4307fe17d1a62ed9 (patch) | |
tree | 24ab06d6ab78940db2ef46982032beae26598b92 | |
parent | Add psp2kern/udcd.h, some SceUdcdForDriver NIDs and ksceTouchSetRegion NID (diff) | |
download | vds-libraries-5936d38bec328e0610e21cfd4307fe17d1a62ed9.tar.gz |
Add more SceUdcd NIDs and defines (thanks to @TheOfficialFloW)
-rw-r--r-- | include/kernel/udcd.h | 18 | ||||
-rw-r--r-- | nids/360/SceUdcd.yml | 11 |
2 files changed, 22 insertions, 7 deletions
diff --git a/include/kernel/udcd.h b/include/kernel/udcd.h index 4e26324..2b44ea6 100644 --- a/include/kernel/udcd.h +++ b/include/kernel/udcd.h @@ -75,13 +75,17 @@ extern "C" { /* * USB Status */ -#define SCE_UDCD_STATUS_ACTIVATED 0x200 -#define SCE_UDCD_STATUS_DEACTIVATED 0x100 -#define SCE_UDCD_STATUS_CABLE_CONNECTED 0x020 -#define SCE_UDCD_STATUS_CABLE_DISCONNECTED 0x010 -#define SCE_UDCD_STATUS_CONNECTION_SUSPENDED 0x004 -#define SCE_UDCD_STATUS_CONNECTION_ESTABLISHED 0x002 -#define SCE_UDCD_STATUS_CONNECTION_NEW 0x001 +#define SCE_UDCD_STATUS_CONNECTION_NEW 0x0001 +#define SCE_UDCD_STATUS_CONNECTION_ESTABLISHED 0x0002 +#define SCE_UDCD_STATUS_CONNECTION_SUSPENDED 0x0004 +#define SCE_UDCD_STATUS_CABLE_DISCONNECTED 0x0010 +#define SCE_UDCD_STATUS_CABLE_CONNECTED 0x0020 +#define SCE_UDCD_STATUS_DEACTIVATED 0x0100 +#define SCE_UDCD_STATUS_ACTIVATED 0x0200 +#define SCE_UDCD_STATUS_IS_CHARGING 0x0400 +#define SCE_UDCD_STATUS_USE_USB_CHARGING 0x0800 +#define SCE_UDCD_STATUS_UNKNOWN_1000 0x1000 +#define SCE_UDCD_STATUS_UNKNOWN_2000 0x2000 /* * USB Driver status diff --git a/nids/360/SceUdcd.yml b/nids/360/SceUdcd.yml index f5bda43..12dcbde 100644 --- a/nids/360/SceUdcd.yml +++ b/nids/360/SceUdcd.yml @@ -2,12 +2,22 @@ modules: SceUdcd: nid: 0x8E26B2A3 libraries: + SceUdcd: + nid: 0xA84BDE8A + functions: + sceUdcdGetDeviceInfo: 0x701C87CF + sceUdcdGetDeviceState: 0xFCD31220 + sceUdcdRegisterCallback: 0xA7070093 + sceUdcdUnregisterCallback: 0xC3FBA889 + sceUdcdWaitState: 0x59EFFAF1 SceUdcdForDriver: nid: 0xBC05A8FB functions: sceUdcdActivate: 0x4FDEA423 sceUdcdClearFIFO: 0x9F53D64D sceUdcdDeactivate: 0x8AE87657 + sceUdcdGetDeviceInfo: 0xFBEA3703 + sceUdcdGetDeviceState: 0xE054B5E4 sceUdcdGetDrvState: 0xC0CA5DDB sceUdcdRegister: 0x4E55244D sceUdcdReqCancelAll: 0x38787672 @@ -17,3 +27,4 @@ modules: sceUdcdStart: 0x9FD733EA sceUdcdStop: 0x1494293B sceUdcdUnregister: 0x0DECE532 + sceUdcdWaitState: 0xD03017C0 |