[PATCH] mountmgr: Map ttyACM devices to COM ports on Linux.
Alex Henrie
alexhenrie24 at gmail.com
Tue Oct 31 19:10:05 CDT 2017
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
Related to https://bugs.winehq.org/show_bug.cgi?id=43750
After reading up on it, it looks like the only difference between ttyUSB
and ttyACM devices is that ttyUSB devices have a dedicated UART whereas
ttyACM devices have a dedicated USB chip.[1] Apart from exactly which
bit of the stack is being hardware-accelerated, there's no difference.
The existence of Windows applications that expect this kind of device to
appear as a COM port is further proof that Wine should assign them COM
port numbers automatically.
[1] https://rfc1149.net/blog/2013/03/05/what-is-the-difference-between-devttyusbx-and-devttyacmx/
---
dlls/mountmgr.sys/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index 20c96d002b..1437bfc853 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -1085,6 +1085,7 @@ static void create_port_devices( DRIVER_OBJECT *driver )
#ifdef linux
"/dev/ttyS%u",
"/dev/ttyUSB%u",
+ "/dev/ttyACM%u",
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
"/dev/cuau%u",
#elif defined(__DragonFly__)
--
2.14.2
More information about the wine-patches
mailing list