> Thus spake Matthew N. Dodd ([EMAIL PROTECTED]):
>
> > is just a range; start and length, and a type. The 'rid' has nothing to
> > do with offsets into a memory/port resource.
>
> Hmm. When I wrote Doug Rabson about newbus months ago, he gave me that
> part of code:
>
> rid = 0x10; /* offset of pci mapping register - check your docs */
> res = bus_alloc_resource(dev, SYS_RES_IOPORTS, &rid, 0, ~0, 1,
> RF_ACTIVE);
> st = rman_get_bustag(res);
> sh = rman_get_bushandle(res);
>
> This "offset of the pci mapping register" is quite confusing for me
> then.
Not at all; in the PCI context, that's what the rid is. As has been said
several times now, the meaning of the rid is _bus_specific_.
--
\\ Give a man a fish, and you feed him for a day. \\ Mike Smith
\\ Tell him he should learn how to fish himself, \\ [EMAIL PROTECTED]
\\ and he'll hate you for a lifetime. \\ [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message