From owner-freebsd-acpi@FreeBSD.ORG Fri Nov 3 05:16:05 2006 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 466A716A416; Fri, 3 Nov 2006 05:16:05 +0000 (UTC) (envelope-from john@utzweb.net) Received: from marley.grokthis.net (marley.grokthis.net [69.93.78.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00F1D43D46; Fri, 3 Nov 2006 05:16:04 +0000 (GMT) (envelope-from john@utzweb.net) Received: from [192.168.1.6] (c-71-197-214-178.hsd1.or.comcast.net [71.197.214.178]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by marley.grokthis.net (Postfix) with ESMTP id B304FF101D; Fri, 3 Nov 2006 00:15:59 -0500 (EST) In-Reply-To: <200611021139.41252.jhb@freebsd.org> References: <200611011051.00658.jhb@freebsd.org> <4FC5FAF0-0490-48D3-B471-59CEDEC7F512@utzweb.net> <200611021139.41252.jhb@freebsd.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Utz Date: Thu, 2 Nov 2006 21:15:56 -0800 To: John Baldwin X-Mailer: Apple Mail (2.752.2) Cc: freebsd-acpi@freebsd.org Subject: Re: Serious Progess Re: smbios.ko probes successfully if i disable acpi sysresource, fails if i do not X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 05:16:05 -0000 On Nov 2, 2006, at 8:39 AM, John Baldwin wrote: > On Wednesday 01 November 2006 23:18, John Utz wrote: >> >> On Nov 1, 2006, at 7:51 AM, John Baldwin wrote: >> >>> On Tuesday 31 October 2006 18:47, john@utzweb.net wrote: >>>> >>>> So i actually do use pmap_mapdev to get a handle to the table, but >>>> i dont >>>> do that in smbios_attach, i do it in a function written to walk >>>> the table. >>>> >>>> but, as i alluded to previously, the original author used >>>> bus_alloc_resource() in smbios_attach() are you saying that i >>>> should use >>>> pmap_mapdev() in smbios_attach *instead* of bus_alloc_resource()? >>> >>> Yes. Firmware tables are not resources (at least IMHO). >> >> ok then. >> >> so since pmap_mapdev() returns a void* what is the current blessed >> type that should be used for pmap_ memory handles in smbios_softc? > > Eh? Any pointer will do. :) > tnx! that is what i thought, but i'd rather ask. if i do a char* pfoo = pmap_mapdev(addr, size) in smbios_attach(), it stands to reason that i would want to do a pmap_unmapdev (pfoo,size) in smbios_detach(), yes? however, when i do this, it panics. am i missing the point here? tnx for all your help so far! johnu > -- > John Baldwin >