aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/isahint.c
Commit message (Collapse)AuthorAgeFilesLines
* (apply '(lambda (reformat-region 'style-9-parens)) (read-file isahint.c))Warner Losh2006-07-081-2/+2
| | | | | | | remove redundant parens, per style(9) to reduce that limp, lispy feeling. Notes: svn path=/head/; revision=160185
* Remove old GENERIC kludge. We no longer need to skip devices namedWarner Losh2006-07-081-8/+2
| | | | | | | | | | | | | atkbd. Version 1.162 of GENERIC fixed this problem in April of 1999. Subsequent to that, the hints data was removed from GENERIC and move to hints files. All the hints file ever created have atkbd at the right location. This should have been removed just after RELENG_4 was branched (and likely around 4.5 in RELENG_4). MFC After: 3 days Notes: svn path=/head/; revision=160184
* Add ISACFGATTR_HINTS flag to allow detection of a device that was createdMatthew N. Dodd2005-04-131-0/+2
| | | | | | | as a result of the hints mechanism. Notes: svn path=/head/; revision=144985
* Remove local hacks to set flags now that the device probe does this for us.Nate Lawson2004-10-141-4/+1
| | | | | | | | | | Tested on every device except sio_pci and the pc98 fd.c. Perhaps something similar should be done for the "disabled" hints also. MFC after: 2 weeks Notes: svn path=/head/; revision=136520
* - Use the new resource_disabled() helper function to see if devices areJohn Baldwin2003-07-021-1/+1
| | | | | | | | | | | | | | | disabled. - Change the apm driver to match the acpi driver's behavior by checking to see if the device is disabled in the identify routine instead of in the probe routine. This way if the device is disabled it is never created. Note that a few places (ips(4), Alpha SMP) used "disable" instead of "disabled" for their hint names, and these hints must be changed to "disabled". If this is a big problem, resource_disabled() can always be changed to honor both names. Notes: svn path=/head/; revision=117167
* Use __FBSDID().David E. O'Brien2003-06-111-2/+3
| | | | Notes: svn path=/head/; revision=116181
* Hints overhaul:Peter Wemm2001-06-121-12/+10
| | | | | | | | | | | | - Replace some very poorly thought out API hacks that should have been fixed a long while ago. - Provide some much more flexible search functions (resource_find_*()) - Use strings for storage instead of an outgrowth of the rather inconvenient temporary ioconf table from config(). We already had a fallback to using strings before malloc/vm was running anyway. Notes: svn path=/head/; revision=78135
* Always call resource_int_value function for getting portsize and msize.Yoshihiro Takahashi2001-03-171-4/+6
| | | | | | | | | It was not set resource size (portsize/msize) if resource address was set. This is MFC candidate. Notes: svn path=/head/; revision=74378
* Repeat after me: I will test *before* commit, not after.... *blush*Peter Wemm2000-10-151-1/+1
| | | | Notes: svn path=/head/; revision=67155
* Untangle some resource matching loops that were getting on my nervesPeter Wemm2000-10-151-6/+4
| | | | | | | and seemed to be getting cut/pasted to places they shouldn't be. Notes: svn path=/head/; revision=67153
* Allow a DMA channel of 0. This gets the on-board mss audio device workingAndrew Gallatin1999-11-221-1/+1
| | | | | | | | | on Digital AlphaStations 200 and 500 machines (and probably others as well). Submitted by: dfr Notes: svn path=/head/; revision=53585
* * Add struct resource_list* argument to resource_list_alloc andDoug Rabson1999-10-121-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resource_list_release. This removes the dependancy on the layout of ivars. * Move set_resource, get_resource and delete_resource from isa_if.m to bus_if.m. * Simplify driver code by providing wrappers to those methods: bus_set_resource(dev, type, rid, start, count); bus_get_resource(dev, type, rid, startp, countp); bus_get_resource_start(dev, type, rid); bus_get_resource_count(dev, type, rid); bus_delete_resource(dev, type, rid); * Delete isa_get_rsrc and use bus_get_resource_start instead. * Fix a stupid typo in isa_alloc_resource reported by Takahashi Yoshihiro <nyan@FreeBSD.org>. * Print a diagnostic message if we can't assign resources to a PnP device. * Change device_print_prettyname() so that it doesn't print "(no driver assigned)-1" for anonymous devices. Notes: svn path=/head/; revision=52174
* Change isa_get/set_flags() to device_get/set_flags().Doug Rabson1999-09-071-1/+1
| | | | Notes: svn path=/head/; revision=51052
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Do not print resource values which are not set.Kazutaka YOKOTA1999-07-241-7/+7
| | | | | | | Reviewed by: dfr Notes: svn path=/head/; revision=49048
* * Change device_add_child_after() to device_add_child_ordered() which isDoug Rabson1999-05-281-6/+6
| | | | | | | | | | easier to use and more flexible. * Change BUS_ADD_CHILD to take an order argument instead of a place. * Define a partial ordering for isa devices so that sensitive devices are probed before non-sensitive ones. Notes: svn path=/head/; revision=47578
* * Factor out the common code between the isa bus drivers for i386 and alpha.Doug Rabson1999-05-221-16/+19
| | | | | | | | | | * Re-work the resource allocation code to use helper functions in subr_bus.c. * Add simple isa interface for manipulating the resource ranges which can be allocated and remove the code from isa_write_ivar() which was previously used for this purpose. Notes: svn path=/head/; revision=47398
* * Define a new static method DEVICE_IDENTIFY which is called to add deviceDoug Rabson1999-05-141-0/+131
instances to a parent bus. * Define a new method BUS_ADD_CHILD which can be called from DEVICE_IDENTIFY to add new instances. * Add a generic implementation of DEVICE_PROBE which calls DEVICE_IDENTIFY for each driver attached to the parent's devclass. * Move the hint-based isa probe from the isa driver to a new isahint driver which can be shared between i386 and alpha. Notes: svn path=/head/; revision=47178