[PATCH] mountmgr: Map ttyACM devices to COM ports on Linux.

Alex Henrie <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Alex Henrie <[email protected]>
---
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.