summaryrefslogtreecommitdiffstats
path: root/src/usb.h
diff options
context:
space:
mode:
authorGravatar Eliyahu Stern2022-12-22 15:00:14 +0200
committerGravatar Eliyahu Stern2022-12-22 15:02:28 +0200
commit6d0183dd1824774f47e6cc995d25a237fddf2cb8 (patch)
tree7c2d955773b3f456fa6ce33110019a4dbf9faa33 /src/usb.h
parentbccae83d475ac5a48441001cad3fa8c167ecbb80 (diff)
downloadusbmuxd-6d0183dd1824774f47e6cc995d25a237fddf2cb8.tar.gz
usbmuxd-6d0183dd1824774f47e6cc995d25a237fddf2cb8.tar.bz2
Support switching to different "modes" using vendor specific control messages.
Use USBMUXD_DEFAULT_DEVICE_MODE env. var. to let the user control desired mode.
Diffstat (limited to 'src/usb.h')
-rw-r--r--src/usb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usb.h b/src/usb.h
index b1b9bb9..4e44cce 100644
--- a/src/usb.h
+++ b/src/usb.h
@@ -50,6 +50,10 @@
50#define PID_APPLE_SILICON_RESTORE_LOW 0x1901 50#define PID_APPLE_SILICON_RESTORE_LOW 0x1901
51#define PID_APPLE_SILICON_RESTORE_MAX 0x1905 51#define PID_APPLE_SILICON_RESTORE_MAX 0x1905
52 52
53#define ENV_DEVICE_MODE "USBMUXD_DEFAULT_DEVICE_MODE"
54#define APPLE_VEND_SPECIFIC_GET_MODE 0x45
55#define APPLE_VEND_SPECIFIC_SET_MODE 0x52
56
53struct usb_device; 57struct usb_device;
54 58
55int usb_init(void); 59int usb_init(void);