Date: Wed, 4 Oct 2000 23:27:20 +0100 (BST) From: Doug Rabson <dfr@nlsystems.com> To: Simon Block <sblock@computer.org> Cc: new-bus@freebsd.org Subject: Re: PCI resources with bus_alloc_resource(9) Message-ID: <Pine.BSF.4.21.0010042326350.94692-100000@salmon.nlsystems.com> In-Reply-To: <LOBBJIBIIEAFNGPIGIKNAENPCHAA.sblock@computer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Oct 2000, Simon Block wrote: > Dear NewBus Guru's, > > I am sending this to you at the suggestion of Alex Langer: > > I am writing a driver for a PCI device I have a question about the man > page for bus_alloc_resource(9). (I am using FreeBSD 4.1 STABLE). > > The man page states for the parameter that 'rid' points to: > "For PCI it just happens to be the offset into pci config space which > has a word that describes the resource." > > My knowledge of PCI would dictate that this should be the value 0x3C > (the offset in PCI configuration space where you find the Int PIN and > Int Line registers). This only true for memory and port resources. For interrupts, the value of rid should be zero (not adaquetely documented, I know). -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010042326350.94692-100000>