From owner-cvs-src-old@FreeBSD.ORG Tue Nov 18 21:04:58 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41786106564A for ; Tue, 18 Nov 2008 21:04:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 2D00D8FC14 for ; Tue, 18 Nov 2008 21:04:58 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mAIL4vKA062929 for ; Tue, 18 Nov 2008 21:04:57 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mAIL4vJh062928 for cvs-src-old@freebsd.org; Tue, 18 Nov 2008 21:04:57 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200811182104.mAIL4vJh062928@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Tue, 18 Nov 2008 21:01:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/acpica acpi.c src/sys/dev/sio sio_pci.c sio_puc.c src/sys/isa isa_common.c isa_common.h isahint.c isavar.h src/sys/kern bus_if.m subr_bus.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 21:04:58 -0000 jhb 2008-11-18 21:01:54 UTC FreeBSD src repository Modified files: sys/dev/acpica acpi.c sys/dev/sio sio_pci.c sio_puc.c sys/isa isa_common.c isa_common.h isahint.c isavar.h sys/kern bus_if.m subr_bus.c Log: SVN rev 185059 on 2008-11-18 21:01:54Z by jhb 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. Prodding from: peter, imp OK'd by: marcel MFC after: 1 month Revision Changes Path 1.254 +86 -0 src/sys/dev/acpica/acpi.c 1.24 +0 -31 src/sys/dev/sio/sio_pci.c 1.12 +0 -29 src/sys/dev/sio/sio_puc.c 1.49 +69 -64 src/sys/isa/isa_common.c 1.17 +1 -0 src/sys/isa/isa_common.h 1.19 +76 -39 src/sys/isa/isahint.c 1.32 +3 -0 src/sys/isa/isavar.h 1.36 +17 -1 src/sys/kern/bus_if.m 1.212 +20 -4 src/sys/kern/subr_bus.c