Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 May 2000 14:47:17 -0700
From:      Mike Smith <msmith@freebsd.org>
To:        "Matthew N. Dodd" <winter@jurai.net>
Cc:        Alexander Langer <alex@big.endian.de>, doc@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: request for review: bus_alloc_resource(9) 
Message-ID:  <200005182147.OAA05154@mass.cdrom.com>
In-Reply-To: Your message of "Thu, 18 May 2000 17:42:43 EDT." <Pine.BSF.4.21.0005181732310.1136-100000@sasami.jurai.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> On Thu, 18 May 2000, Alexander Langer wrote:
> > I've written bus_alloc_resource(9).
> > 
> > I need one with _experience_ on newbus to review it.
> > 
> > http://big.endian.de/FreeBSD/bus_alloc_resource.9
> 
> You still don't understand what the 'rid' parameter is.
> 
> Think of an 'rid' as in index into an array of like resources.  A resource
> is just a range; start and length, and a type.  The 'rid' has nothing to
> do with offsets into a memory/port resource.

More to the point, the rid is a bus-specific uniqifier - it's not 
necessarily even a linear index (consider eg. PCI).

-- 
\\ 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?200005182147.OAA05154>