From owner-freebsd-acpi@FreeBSD.ORG Fri Aug 10 19:36:08 2007 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE9DB16A419; Fri, 10 Aug 2007 19:36:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id A313E13C4CB; Fri, 10 Aug 2007 19:36:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id l7AJ1qlw025756; Fri, 10 Aug 2007 15:01:52 -0400 (EDT) (envelope-from mike@sentex.net) Received: from mdt-xp.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.8/8.13.3) with ESMTP id l7AJ1pKa060911 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Aug 2007 15:01:52 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <200708101901.l7AJ1pKa060911@lava.sentex.ca> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 10 Aug 2007 15:02:12 -0400 To: John Baldwin , freebsd-acpi@freebsd.org From: Mike Tancsa In-Reply-To: <200708101455.44492.jhb@freebsd.org> References: <46337B06.9080102@ybb.ne.jp> <200708081750.l78HoaUY047803@lava.sentex.ca> <86vebn7ipx.fsf@ds4.des.no> <200708101455.44492.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Dag-Erling =?iso-8859-1?Q?Sm=C3=B8rgrav?= Subject: Re: ichwd for ICH8 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, 10 Aug 2007 19:36:09 -0000 At 02:55 PM 8/10/2007, John Baldwin wrote: >Don't use ~0ul for the end address, but use the real one. However, the >resource management in this driver is all wrong. What it should be doing, is >to identify as a child of 'isab' and create a child device of 'isab'. It >should then allocate the appropriate BAR from the 'isab' device (the isab >driver can "proxy" alloc_resource requests from direct children to its bars >just like the vgapci(4) device) and use that single BAR resource for I/O. >However, just fixing the end address to be appropriate should fix the driver >for now. Hi, Apart from the FreeBSD Architecture Handbook, are there any other resources you can point to that will help me better understand FreeBSD and PCI drivers ? I am trying to make a watchdog driver for http://wwwd.amd.com/support/PCSGtech.nsf/FAQTablookup/FAQ.49?OpenDocument as a learning exercise and am trying to understand how to get "The base address of the MFGPT hardware is typically located in PCI configuration space at 80007818h. This is Bus 0h, Device Fh, Function 0h, Offset 18h." from FreeBSD. I have the Linux driver as an example as well. I was using the ichwd as a template, but if thats the "wrong way of doing it", I will look elsewhere :) ---Mike