Date: Fri, 19 May 2000 00:17:13 -0700 From: Mike Smith <msmith@freebsd.org> To: Alexander Langer <alex@big.endian.de> Cc: "Matthew N. Dodd" <winter@jurai.net>, doc@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: request for review: bus_alloc_resource(9) Message-ID: <200005190717.AAA07106@mass.cdrom.com> In-Reply-To: Your message of "Fri, 19 May 2000 09:12:30 %2B0200." <20000519091230.C2729@cichlids.cichlids.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Thus spake Matthew N. Dodd (winter@jurai.net): > > > 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, \\ 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?200005190717.AAA07106>