From 6d0183dd1824774f47e6cc995d25a237fddf2cb8 Mon Sep 17 00:00:00 2001 From: Eliyahu Stern Date: Thu, 22 Dec 2022 15:00:14 +0200 Subject: Support switching to different "modes" using vendor specific control messages. Use USBMUXD_DEFAULT_DEVICE_MODE env. var. to let the user control desired mode. --- src/usb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/usb.h') 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 @@ #define PID_APPLE_SILICON_RESTORE_LOW 0x1901 #define PID_APPLE_SILICON_RESTORE_MAX 0x1905 +#define ENV_DEVICE_MODE "USBMUXD_DEFAULT_DEVICE_MODE" +#define APPLE_VEND_SPECIFIC_GET_MODE 0x45 +#define APPLE_VEND_SPECIFIC_SET_MODE 0x52 + struct usb_device; int usb_init(void); -- cgit v1.1-32-gdbae