From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 25 09:15:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E797437B401 for ; Wed, 25 Jun 2003 09:15:58 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3F4043FF3 for ; Wed, 25 Jun 2003 09:15:57 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (harmony.village.org [10.0.0.6]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h5PGFpE1051636; Wed, 25 Jun 2003 10:15:51 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 25 Jun 2003 10:15:49 -0600 (MDT) Message-Id: <20030625.101549.78767546.imp@bsdimp.com> To: danny@cs.huji.ac.il From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: USB, select/poll for ucom X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2003 16:16:00 -0000 In message: Danny Braniss 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