From owner-freebsd-hackers Fri May 19 0:12:50 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 4D7CB37BD8E; Fri, 19 May 2000 00:12:38 -0700 (PDT) (envelope-from alex@cichlids.com) Received: from cichlids.com (p3E9C112F.dip0.t-ipconnect.de [62.156.17.47]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id JAA23030; Fri, 19 May 2000 09:12:24 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by cichlids.com (Postfix) with ESMTP id 320C2AC2C; Fri, 19 May 2000 09:12:48 +0200 (CEST) Received: (from alex@localhost) by cichlids.cichlids.com (8.9.3/8.9.3) id JAA02859; Fri, 19 May 2000 09:12:30 +0200 (CEST) (envelope-from alex) Date: Fri, 19 May 2000 09:12:30 +0200 From: Alexander Langer To: "Matthew N. Dodd" Cc: doc@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: request for review: bus_alloc_resource(9) Message-ID: <20000519091230.C2729@cichlids.cichlids.com> References: <20000518223846.A16098@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from winter@jurai.net on Thu, May 18, 2000 at 05:42:43PM -0400 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Alex -- I need a new ~/.sig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message