content='index, nofollow'/>
summaryrefslogtreecommitdiff
path: root/sys/dev/ppbus/ppbus_conf.c
AgeCommit message (Collapse)Author
2021-08-07Merge thorpej-cfargs2.thorpej
2021-04-24Merge thorpej-cfargs branch:thorpej
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments. Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.) Remove unnecessary or redundant interface attributes where they're not needed. There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles) ...and a sentinel value CFARG_EOL. Add some extra sanity checking to ensure that interface attributes aren't ambiguous. Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
2019-12-27s/sucess/success/ in comment.msaitoh
2012-10-27split device_t/softc for all remaining drivers.chs
replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
2011-05-13Eliminate few references to ltsleep.rmind
2009-11-11Make this actually build, as part of the sgimips GENERIC32_IP2x kernel.he
2009-11-07Don't deactivate a child before detaching it, that's not necessary.dyoung
Don't take a device off of the ppbus(4)'s list of children in the detach routine, but add a child-detachment hook that does it for us. As a nice side-effect, we can probably detach ppbus(4) children with drvctl(8), now. Compile-tested, only. XXX Does anybody even use ppbus(4)? It's not even in the ALL XXX configuration for i386!
2008-04-29gpio(4): Extend with open/close to request/release the ppbus(4) on open/close.cegger
ppbus(4): Extend to attach on gpiobus. From Hans Rosenfeld from tech-kern: http://mail-index.netbsd.org/tech-kern/2008/04/28/msg001168.html Hint: Hans sent me this diff which differs in the one from tech-kern in: - 2-clause license - sprinkled some consts
2008-04-18Fix panics at boot and some other misc bugs. From Hans Rosenfeld.cegger
2008-04-15device_t / softc split. From Hans Rosenfeldcegger
2008-04-08use aprint_*_dev and device_xnamecegger
2007-12-05lockmgr -> mutexad
2006-03-29Use device_pprivate().thorpej
2006-03-25Use device_parent().thorpej
2005-12-11merge ktrace-lwp.christos
2005-08-26s/locdesc_t/int/gdrochner
2005-02-27nuke trailing whitespaceperry
2004-09-13remove the ppbus_print_child() function which is pointless as used heredrochner
2004-09-08use interface attribute / locator passing versionsdrochner
of config_search(), and some KNF/whitespace cleanup no functional changes
2004-02-01make compilable with option DONTPROBE_1284jdolecek
2004-01-25Remove dollar signs from foreign RCSIDs per doc/3RDPARTY.bjh21
Add __KERNEL_RCSID() to .c files.
2004-01-21Add RCSID comments.bjh21
2004-01-19Import Gary Thorpe's netbsd-ppbus 1.3. This is NetBSD portjdolecek
of FreeBSD Parallel Port Bus framework. Work in progress.