From owner-freebsd-hackers Mon Dec 20 5:21: 5 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from webweaving.org (dialfwn05.fwn.rug.nl [129.125.32.155]) by hub.freebsd.org (Postfix) with ESMTP id 8981B152EC; Mon, 20 Dec 1999 05:20:48 -0800 (PST) (envelope-from n_hibma@webweaving.org) Received: from localhost (localhost [127.0.0.1]) by webweaving.org (8.9.3/8.9.3) with ESMTP id OAA00422; Mon, 20 Dec 1999 14:07:23 +0100 (CET) (envelope-from n_hibma@webweaving.org) Date: Mon, 20 Dec 1999 14:07:23 +0100 (CET) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: Mike Smith Cc: Bill Paul , hackers@FreeBSD.ORG Subject: Re: USB ethernet hacking In-Reply-To: <199912200034.QAA03909@mass.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Your register read will take at least 1msec. That is the time between scheduling the transfer and the interrupt being triggered for completion. But typically it will take 2msecs. Nick > > Because this is not an asynchronous task that I'm trying to do here. > > I'm talking about reading and writing registers from the ethernet > > controller. If this was a PCI device, I'd be using > > bus_space_read_X()/bus_space_write_X() to read the registers directly. I > > don't want to start reading a register and then come back a while later > > to read the results. The code isn't meant to work like that. > > Unfortunately, given that your 'register read request' is being queued > over what is basically a packet-switched network, you're going to have to > change the way the code works so that it _can_ work like that. If you > don't like it now, imagine how much less you're going to like, say, I2O > or SystemIO... > > -- > \\ Give a man a fish, and you feed him for a day. \\ Mike Smith > \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org > \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message