From owner-freebsd-new-bus Wed Oct 4 15:27:35 2000 Delivered-To: freebsd-new-bus@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id 6416137B502 for ; Wed, 4 Oct 2000 15:27:33 -0700 (PDT) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 13gx0c-000O7t-0U; Wed, 4 Oct 2000 23:27:31 +0100 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id XAA14026; Wed, 4 Oct 2000 23:33:49 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 4 Oct 2000 23:27:20 +0100 (BST) From: Doug Rabson To: Simon Block Cc: new-bus@freebsd.org Subject: Re: PCI resources with bus_alloc_resource(9) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-new-bus@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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