Wine and serial port AGAIN

Uwe Bonnes bon at
Fri Dec 17 04:21:31 CST 2010

>>>>> "Pavel" == Pavel Troller <patrol at> writes:

    Pavel> Hi!  As a technician, I need often to use some form of serial
    Pavel> port communication.  My recent experience is with a program for
    Pavel> power-cycled.  The radio is connected using a USB cable, which
    Pavel> contains just a regular PL-2303 USB to serial converter, which is
    Pavel> perfectly supported in Linux.  Port assignment for wine is also

It seems that the PL2303 driver doesn't implement TIOCGICOUNT
static int pl2303_ioctl(struct tty_struct *tty, struct file *file,
                        unsigned int cmd, unsigned long arg)
        struct serial_struct ser;
        struct usb_serial_port *port = tty->driver_data;
        dbg("%s (%d) cmd = 0x%04x", __func__, port->number, cmd);

        switch (cmd) {
        case TIOCGSERIAL:
                memset(&ser, 0, sizeof ser);
                ser.type = PORT_16654;
                ser.line = port->serial->minor;
                ser.port = port->number;
                ser.baud_base = 460800;

                if (copy_to_user((void __user *)arg, &ser, sizeof ser))
                        return -EFAULT;

                return 0;

        case TIOCMIWAIT:
                dbg("%s (%d) TIOCMIWAIT", __func__,  port->number);
                return wait_modem_info(port, arg);
                dbg("%s not supported = 0x%04x", __func__, cmd);
        return -ENOIOCTLCMD;
Perhaps has
some hints.

Uwe Bonnes                bon at

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the wine-devel mailing list