Date: Tue, 18 Nov 2008 21:01:54 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: cvs-src-old@freebsd.org 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 Message-ID: <200811182104.mAIL4vJh062928@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811182104.mAIL4vJh062928>