From owner-freebsd-hackers Thu May 18 14:46:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.cdrom.com (adsl-63-206-88-224.dsl.snfc21.pacbell.net [63.206.88.224]) by hub.freebsd.org (Postfix) with ESMTP id 8388B37BDC5; Thu, 18 May 2000 14:46:27 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id OAA05154; Thu, 18 May 2000 14:47:17 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Message-Id: <200005182147.OAA05154@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Matthew N. Dodd" Cc: Alexander Langer , doc@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: request for review: bus_alloc_resource(9) In-reply-to: Your message of "Thu, 18 May 2000 17:42:43 EDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 18 May 2000 14:47:17 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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