Re: USB, select/poll for ucom

From: M. Warner Losh (imp_at_bsdimp.com)
Date: 06/25/03

  • Next message: Christopher Weimann: "Re: Replacing GNU grep revisited"
    Date: Wed, 25 Jun 2003 10:15:49 -0600 (MDT)
    To: danny@cs.huji.ac.il
    
    

    In message: <E19VCk7-000254-00@cs.huji.ac.il>
                Danny Braniss <danny@cs.huji.ac.il> writes:
    :
    : > I'm able to use ppp with umodem/ucom. My brother uses ulpcom/ucom for
    : > his ppp needs. I'm pretty sure that select is involved. :-)
    : >
    : > >From what I can see in the code, I'd expect that it would work because
    : > the ttypoll routine is specified for the poll routine. Why do you
    : > think it wouldn't work?
    :
    : well, for one, my program doesn't work :-), it works with the RS232 version.
    :
    : so i started to poke around, and did some reading, and as far as i could tell,
    : the read(2) has to be initiated by the host, but my knowledge of usb is close
    : to zero - it was zero 2 days ago, but still looking for some better docs, and
    : polish my english - as far as i remember interrupt is not polling, but the
    : ohci docs imply that :-)

    have fun. the mindshare book is good. however, it took me a long
    time to get a usb 'aha' moment and understand its twisty maze was
    really a workable design obscured by standardese... I suspect it is a
    problem in the usb chipset driver for the com part. ttypoll just says
    'you have data in the buffer' so for some reason the data isn't making
    into the tty buffer.

    Warner
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Christopher Weimann: "Re: Replacing GNU grep revisited"

    Relevant Pages

    • Re: iMac G5 crashes on restart & wake from sleep...
      ... A similiar problem happens sometimes when I restart ... I believe the problems might be linked to USB ... My current USB connections are keyboard/mouse, ... ZERO, you're lying again. ...
      (comp.sys.mac.advocacy)
    • USB storage: corrupted data transfers
      ... Something may be broken in USB / usb-storage land. ... I want to copy it to an image file on my hard drive: ... cat /dev/sdb> usbkey.image1 ... I wonder where those extraneous pairs of zero pages are coming from? ...
      (Linux-Kernel)
    • Volume control not responding correctly
      ... and am using a new USB driven headphone ... this morning suddenly the Speaker section of the Volume Control ... While it remains above zero, ... And I can keep it playing by continuing to 'push' the volume control ...
      (microsoft.public.windowsxp.music)
    • Re: USB, select/poll for ucom
      ... :, and looking at the kernel sources and ... trying to figure out USB, i think that select/pollwill not work, ... the ttypoll routine is specified for the poll routine. ... To unsubscribe, ...
      (freebsd-hackers)
    • Re: USB, select/poll for ucom
      ... > problem in the usb chipset driver for the com part. ... > into the tty buffer. ... here is a pearl i came across reading the USB spec for 1.1, ...
      (freebsd-hackers)