summaryrefslogtreecommitdiffstats
path: root/sys/dev/mca
Commit message (Collapse)AuthorAgeFilesLines
* - There's no need to overwrite the default device method with the defaultmarius2011-11-221-2/+1
| | | | | | | | | | one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID.
* strict kobj signatures: fix assortment of bus_read_ivar implsavg2009-06-111-1/+1
| | | | | Reviewed by: imp, current@ Approved by: jhb (mentor)
* Change the functions to ANSI in those cases where it breaks promotionrdivacky2009-02-241-13/+4
| | | | | | | | to int rule. See ISO C Standard: SS6.7.5.3:15. Approved by: kib (mentor) Reviewed by: warner Tested by: silence on -current
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-291-1/+1
| | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead ofjhb2002-09-261-1/+1
| | | | | | | nexus(4) in the case of machines w/o equivalent bridges on a PCI bus. Reported by: winter Pointy hat to: jhb
* - Remove an unused write_ivars function that didn't do anything anyway.jhb2001-01-191-7/+1
| | | | | - Return NULL from mca_alloc_resource() instead of ENOENT if we are passed in an empty resource list.
* Reduce code duplication by using the GET_RESOURCE_LIST bus method and relatedmdodd2000-11-281-52/+18
| | | | | | | | generic resource_list management functions. I'll deal with the EISA bits later. Not objected to by: new-bus
* Set the RF_SHAREABLE flage when we allocate an IRQ.mdodd2000-03-131-0/+4
|
* Implement BUS_{GET,SET,DELETE}_RESOURCE methods.mdodd2000-01-131-2/+44
|
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-031-1/+3
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* resource_list_{alloc,release}() takes a struct resource_list * as itsmdodd1999-11-061-3/+4
| | | | | | first arg. Reminded by: Andy Farkas <andyf@speednet.com.au>
* - Restore correct operation of bt_mca.mdodd1999-10-091-2/+2
| | | | | | | | - Work around a problem not yet solved in the tree (but solved in mine.) device_get_ivars() should never be cast to a struct resource_list * The solution, under review, involves the creation of a device_get_resource_list() function. More later.
* device_get_ivars() called twice. Remove second call and assignment.mdodd1999-09-261-1/+0
| | | | Noticed by: Peter
* Rip out the nastiness I cribbed from the EISA bus code and actuallymdodd1999-09-262-321/+77
| | | | | | | implement the resource management code correctly, using approved interfaces. While I'm here, clean up a few things.
* This is the rest of the MCA support; new_bus code to be exact.mdodd1999-09-033-0/+931
Should we ever find ourselves on an RS/6000 this code should work with few changes.
OpenPOWER on IntegriCloud