Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 1999 16:34:37 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Bill Paul <wpaul@skynet.ctr.columbia.edu>
Cc:        hackers@freebsd.org
Subject:   Re: USB ethernet hacking 
Message-ID:  <199912200034.QAA03909@mass.cdrom.com>
In-Reply-To: Your message of "Sun, 19 Dec 1999 17:18:37 EST." <199912192218.RAA03775@skynet.ctr.columbia.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912200034.QAA03909>