From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 11 11:49:39 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B41C16A400 for ; Wed, 11 Apr 2007 11:49:39 +0000 (UTC) (envelope-from alan@fromorbit.com) Received: from thing1.auspcmarket.com.au (mail.fromorbit.com [203.31.169.65]) by mx1.freebsd.org (Postfix) with ESMTP id D1B3B13C4C9 for ; Wed, 11 Apr 2007 11:49:38 +0000 (UTC) (envelope-from alan@fromorbit.com) Received: from [192.168.1.197] (c220-239-255-86.rivrw3.nsw.optusnet.com.au [220.239.255.86]) by thing1.auspcmarket.com.au (Postfix) with ESMTP id 23EE15DD4; Wed, 11 Apr 2007 21:49:38 +1000 (EST) Message-ID: <461CCB3D.1090402@fromorbit.com> Date: Wed, 11 Apr 2007 21:49:17 +1000 From: Alan Garfield User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: takawata@jp.freebsd.org References: <200704110951.l3B9p4hT024402@sana.init-main.com> In-Reply-To: <200704110951.l3B9p4hT024402@sana.init-main.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: Resources and ACPI X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2007 11:49:39 -0000 takawata@jp.freebsd.org wrote: >> and when the device is kldload'ed you get :- >> >> ---- >> jnet0: port 0xa8,0xae-0xaf irq 19 on >> acpi0 >> ---- >> >> are these resources automagically allocated for me? Or do I have to >> allocate them myself? > > You have to allocate the resource. Ok cool, but how do I get the resource list from acpi to allocated them then? Other than having an array of ioports and irqs, is there a way to get this information from acpi? I've done an acpidump and indeed the are _CRS and _PRS ResourceTemplates that describe the io and irq requirements perfectly. How do I access this data? ACPI seems to have very little documentation and nothing else seems to get resource lists (except fdc_acpi.c and uart_bus_acpi.c which don't seem to be complete. ACPI_EVALUATE_OBJECT?!?) Thanks, Alan.