From owner-freebsd-hackers Sun Dec 19 16:31: 5 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (castles501.castles.com [208.214.165.65]) by hub.freebsd.org (Postfix) with ESMTP id 5E40214FF9 for ; Sun, 19 Dec 1999 16:31:03 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id QAA03909; Sun, 19 Dec 1999 16:34:37 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199912200034.QAA03909@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Bill Paul Cc: hackers@freebsd.org Subject: Re: USB ethernet hacking In-reply-to: Your message of "Sun, 19 Dec 1999 17:18:37 EST." <199912192218.RAA03775@skynet.ctr.columbia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 19 Dec 1999 16:34:37 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > I have worked around this for now by hacking usbdi.c so that it polls > > > the controller interrupt/status register instead of tsleep()ing. I'm not > > > sure this is the best solution, but it's the only one that seems to work. > > > > why not use the async method? > > 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