From owner-svn-src-head@FreeBSD.ORG Tue Nov 18 21:13:32 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 480951065679; Tue, 18 Nov 2008 21:13:32 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 834B18FC19; Tue, 18 Nov 2008 21:13:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mAILDOi2042842; Tue, 18 Nov 2008 16:13:25 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: src-committers@freebsd.org Date: Tue, 18 Nov 2008 16:06:22 -0500 User-Agent: KMail/1.9.7 References: <200811182101.mAIL1sFK088852@svn.freebsd.org> In-Reply-To: <200811182101.mAIL1sFK088852@svn.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811181606.23202.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Tue, 18 Nov 2008 16:13:25 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8647/Tue Nov 18 10:09:15 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r185059 - in head/sys: dev/acpica dev/sio isa kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 21:13:32 -0000 On Tuesday 18 November 2008 04:01:54 pm John Baldwin wrote: > Author: jhb > Date: Tue Nov 18 21:01:54 2008 > New Revision: 185059 > URL: http://svn.freebsd.org/changeset/base/185059 > > Log: > Allow device hints to wire the unit numbers of devices. > - An "at" hint now reserves a device name. > - A new BUS_HINT_DEVICE_UNIT method is added to the bus interface. When > determining the unit number of a device, this method is invoked to > let the bus driver specify the unit of a device given a specific > devclass. This is the only way a device can be given a name reserved > via an "at" hint. > - Implement BUS_HINT_DEVICE_UNIT() for the acpi(4) and isa(4) bus drivers. > Both of these busses implement this by comparing the resources for a > given hint device with the resources enumerated by ACPI/PnPBIOS and > wire a unit if the hint resources are a subset of the "real" resources. > - Use bus_hinted_children() for adding hinted devices on isa(4) busses > now instead of doing it by hand. > - Remove the unit kludging from sio(4) as it is no longer necessary. Effectively this means that 'hint.uart.0.port=0x3f8' will wire 'uart0' to be the serial port with an I/O port address of '0x3f8', even if it is not the first serial port ACPI enumerates. This should mostly be a nop. However, it should help machines where ACPI enumerates COM2 before COM1. With the default hints, COM1 will now always be sio0/uart0, even if ACPI enumerates COM2 first. -- John Baldwin