summaryrefslogtreecommitdiff
path: root/sys/kern/subr_bus.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-271-7/+7
| | | | | | | kernel compile Notes: svn path=/head/; revision=43301
* A few small improvements to the bus code:Doug Rabson1999-01-161-4/+75
| | | | | | | | | | * A function device_printf() to make pretty-printing driver messages easier. * A function device_get_children() to query the children of a device. * Generic implementations of BUS_ALLOC_RESOURCE and BUS_RELEASE_RESOURCE. * Change bus_generic_print_child() so that it is actually useful. Notes: svn path=/head/; revision=42734
* Remove warningNick Hibma1999-01-101-3/+1
| | | | Notes: svn path=/head/; revision=42497
* When no driver was found for a device, the message 'not probed' appearedNick Hibma1998-12-121-5/+5
| | | | | | | | | | This is odd, especially in the case of USB where the driver is found in several tries: vendor specific, class specific, interface specific. The mouse driver is found at the interface specific level... Reviewed by: Doug Rabson (dfr@freebsd.org) Notes: svn path=/head/; revision=41694
* A couple of minor sanity checks.Doug Rabson1998-11-151-4/+10
| | | | | | | Submitted by: Nick Hibma <nick.hibma@jrc.it> Notes: svn path=/head/; revision=41178
* My changes to the new device interface:Garrett Wollman1998-11-141-67/+200
| | | | | | | | | | | | | | | | | - Interface wth the new resource manager. - Allow for multiple drivers implementing a single devclass. - Remove ordering dependencies between header files. - Style cleanup. - Add DEVICE_SUSPEND and DEVICE_RESUME methods. - Move to a single-phase interrupt setup scheme. Kernel builds on the Alpha are brken until Doug gets a chance to incorporate these changes on that side. Agreed to in principle by: dfr Notes: svn path=/head/; revision=41153
* A couple of fixes to device_delete_child() to delete all children ofDoug Rabson1998-11-131-2/+10
| | | | | | | | | | the device and to free the device which is being deleted (not its parent - oops). Submitted by: Nick Hibma <nick.hibma@jrc.it> Notes: svn path=/head/; revision=41131
* Lots of debugging code and some bugfixes.Doug Rabson1998-10-271-25/+338
| | | | | | | Submitted by: Nick Hibma <nick.hibma@jrc.it> Notes: svn path=/head/; revision=40671
* Nitpicking and dusting performed on a train. Removes trivial warningsPoul-Henning Kamp1998-10-251-7/+1
| | | | | | | about unused variables, labels and other lint. Notes: svn path=/head/; revision=40648
* Don't call DEVICE_DETACH directly, always go through the device_detach()Doug Rabson1998-10-031-4/+4
| | | | | | | wrapper which checks to make sure the device isn't currently open. Notes: svn path=/head/; revision=39912
* Fixed recently perpetrated printf format errors.Bruce Evans1998-09-051-2/+2
| | | | Notes: svn path=/head/; revision=38860
* Add some very simple support for a compiled in (from config(8)) resourceDoug Rabson1998-07-221-1/+123
| | | | | | | database. Notes: svn path=/head/; revision=37840
* Change interrupt api to be closer to intr_create/intr_connect.Doug Rabson1998-07-121-6/+16
| | | | Notes: svn path=/head/; revision=37592
* Major changes to the generic device framework for FreeBSD/alpha:Doug Rabson1998-06-141-166/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Eliminate bus_t and make it possible for all devices to have attached children. * Support dynamically extendable interfaces for drivers to replace both the function pointers in driver_t and bus_ops_t (which has been removed entirely. Two system defined interfaces have been defined, 'device' which is mandatory for all devices and 'bus' which is recommended for all devices which support attached children. * In addition, the alpha port defines two simple interfaces 'clock' for attaching various real time clocks to the system and 'mcclock' for the many different variations of mc146818 clocks which can be attached to different alpha platforms. This eliminates two more function pointer tables in favour of the generic method dispatch system provided by the device framework. Future device interfaces may include: * cdev and bdev interfaces for devfs to use in replacement for specfs and the fixed interfaces bdevsw and cdevsw. * scsi interface to replace struct scsi_adapter (not sure how this works in CAM but I imagine there is something similar there). * various tailored interfaces for different bus types such as pci, isa, pccard etc. Notes: svn path=/head/; revision=36972
* Add initial support for the FreeBSD/alpha kernel. This is very much aDoug Rabson1998-06-101-0/+854
work in progress and has never booted a real machine. Initial development and testing was done using SimOS (see http://simos.stanford.edu for details). On the SimOS simulator, this port successfully reaches single-user mode and has been tested with loads as high as one copy of /bin/ls :-). Obtained from: partly from NetBSD/alpha Notes: svn path=/head/; revision=36849