Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jun 2003 17:58:05 +0300
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: USB, select/poll for ucom 
Message-ID:  <E19Vuft-000IXE-00@cs.huji.ac.il>
In-Reply-To: Your message of Wed, 25 Jun 2003 13:33:52 -0600 (MDT) .

next in thread | raw e-mail | index | archive | help

> I thought that ucom does do that.  It uses ttypoll as its polling
> function, and seems to insert data into the tty structure on an
> interrupt basis.  That is hidden a little bit by the usb driver
> structure.  In the middle of ucomopen we call ucomstartread which
> posts a read onto the bulk in pipe.  This read fires a callback when
> it is 'finished' which the processes the data.  So I think that maybe
> that transfer is never completing.
> 
> Warner

some more reading, and it seems that indeed open fires up a startread,
so that select should work. In my case, i just went the old fashion way,
sigalarm/read,  but it seems that nothing is being read by the driver :-(
assuming that uco/ulpcom works - the problem must be in the way this
smartcard reader works. 

thanks,
	danny




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E19Vuft-000IXE-00>