summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergi Granell2018-08-27 17:10:36 +0200
committerSergi Granell2018-08-27 17:10:59 +0200
commit6bbd8e1e7c7e10a6935e56bc4e8529acf14bb8b2 (patch)
tree47fcd370d4d95463eca5279930a2ec104562aab3
parentUpdate UDCD (diff)
downloadvds-libraries-6bbd8e1e7c7e10a6935e56bc4e8529acf14bb8b2.tar.gz
Update UDCD
-rw-r--r--include/kernel/udcd.h19
-rw-r--r--nids/360/SceUdcd.yml2
2 files changed, 21 insertions, 0 deletions
diff --git a/include/kernel/udcd.h b/include/kernel/udcd.h
index cea21d1..1c2552c 100644
--- a/include/kernel/udcd.h
+++ b/include/kernel/udcd.h
@@ -430,6 +430,16 @@ int sceUdcdStart(const char *driverName, int size, void *args);
int sceUdcdStartInternal(const char *driverName, int size, void *args, int bus);
/**
+ * Starts the current USB driver for an UDCD bus.
+ *
+ * @param[in] unused - Unused
+ * @param[in] bus - UDCD bus (default is 2)
+ *
+ * @return 0 on success, < 0 on error.
+ */
+int sceUdcdStartCurrentInternal(int unused, int bus);
+
+/**
* Stop a USB driver.
*
* @param driverName - Name of the USB driver to stop
@@ -453,6 +463,15 @@ int sceUdcdStop(const char *driverName, int size, void *args);
int sceUdcdStopInternal(const char *driverName, int size, void *args, int bus);
/**
+ * Stops the current USB driver for an UDCD bus.
+ *
+ * @param[in] bus - UDCD bus (default is 2)
+ *
+ * @return 0 on success, < 0 on error.
+ */
+int sceUdcdStopCurrentInternal(int bus);
+
+/**
* Activate a USB driver.
*
* @param pid - Product ID for the default USB Driver
diff --git a/nids/360/SceUdcd.yml b/nids/360/SceUdcd.yml
index e38b6b4..c5647e4 100644
--- a/nids/360/SceUdcd.yml
+++ b/nids/360/SceUdcd.yml
@@ -36,8 +36,10 @@ modules:
sceUdcdStall: 0x34079250
sceUdcdStallInternal: 0x9B44DF29
sceUdcdStart: 0x9FD733EA
+ sceUdcdStartCurrentInternal: 0x360E95B9
sceUdcdStartInternal: 0x90F8BCAE
sceUdcdStop: 0x1494293B
+ sceUdcdStopCurrentInternal: 0x0F3595AE
sceUdcdStopInternal: 0x150FD3BB
sceUdcdUnregister: 0x0DECE532
sceUdcdUnregisterInternal: 0x6CCD152E