Wine and serial port AGAIN

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Fri Dec 17 04:21:31 CST 2010


>>>>> "Pavel" == Pavel Troller <patrol at sinus.cz> 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
/usr/src/linux/usb/serial/pl2303.c
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);
        default:
                dbg("%s not supported = 0x%04x", __func__, cmd);
                break;
        }
        return -ENOIOCTLCMD;
}
Perhaps
http://www.mp3car.com/vbulletin/linux/82704-iguidance-2-1-3-wine-7.html has
some hints.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

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



More information about the wine-devel mailing list