#
882ffae7 |
| 25-Sep-2022 |
thorpej <thorpej@NetBSD.org> |
Remove unnecessary include of <sys/malloc.h>.
|
#
beecddb6 |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
3bee0c11 |
| 24-Apr-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass a
Merge thorpej-cfargs branch:
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?).
show more ...
|
#
610ff4e3 |
| 22-Dec-2019 |
thorpej <thorpej@NetBSD.org> |
Cleanup i2c bus acquire / release, centralizing all of the logic into iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks no longer need to be provided by back-end controller driver
Cleanup i2c bus acquire / release, centralizing all of the logic into iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks no longer need to be provided by back-end controller drivers (only if they need special handling, e.g. powering on the i2c controller). This results in the removal of a bunch of rendundant code from each back-end controller driver.
Assert that we are not in hard interrupt context in iic_acquire_bus(), iic_exec(), and iic_release_bus().
show more ...
|
#
6da48fab |
| 21-Apr-2019 |
maya <maya@NetBSD.org> |
wether -> whether
|
#
79fb1406 |
| 09-Dec-2018 |
jdolecek <jdolecek@NetBSD.org> |
use pci_intr_establish_xname() everywhere
|
#
1c9fbc13 |
| 16-Nov-2016 |
macallan <macallan@NetBSD.org> |
pass clockframe aropund in voyager_intr()
|
#
3c6e3be8 |
| 01-Jan-2016 |
macallan <macallan@NetBSD.org> |
zero out struct i2cbus_attach_args and i2c_controller before messing with them
|
#
b8930f84 |
| 29-Mar-2014 |
christos <christos@NetBSD.org> |
make pci_intr_string and eisa_intr_string take a buffer and a length instead of relying in local static storage.
|
#
75fbecf5 |
| 30-Jan-2012 |
drochner <drochner@NetBSD.org> |
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive} where it looks straightforward, and pci_aprint_devinfo_fancy in a few others where drivers want to supply their own device names
Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive} where it looks straightforward, and pci_aprint_devinfo_fancy in a few others where drivers want to supply their own device names instead of the pcidevs generated one. More complicated cases, where names are composed at runtime, are left alone for now. It certainly makes sense to simplify the drivers here rather than inventing a catch-all API. This should serve as as example for new drivers, and also ensure consistent output in the AB_QUIET ("boot -q") case. Also, it avoids excessive stack usage where drivers attach child devices because the buffer for the device name is not kept on the local stack anymore.
show more ...
|
#
34582ae8 |
| 13-Dec-2011 |
macallan <macallan@NetBSD.org> |
only try to attach child drivers if they're actually present
|
#
bad51809 |
| 07-Dec-2011 |
macallan <macallan@NetBSD.org> |
consolidate bit twiddling functions into one generic case and a bunch of macros, use them
|
#
c615c90c |
| 20-Oct-2011 |
macallan <macallan@NetBSD.org> |
include opt_voyager.h
|
#
ad471c4b |
| 18-Oct-2011 |
macallan <macallan@NetBSD.org> |
add functions to control gpio usage and to program PWM timers also add basic interrupt support ( not used yet )
|
#
500eaf32 |
| 06-Sep-2011 |
macallan <macallan@NetBSD.org> |
add a function to mess with gpios which locks against the i2c stuff
|
#
5eda4329 |
| 01-Sep-2011 |
macallan <macallan@NetBSD.org> |
some i2c devices we're going to deal with need a little delay after each write. Also make sure the gpios we're using are outputs.
|
#
2cec57c9 |
| 01-Sep-2011 |
macallan <macallan@NetBSD.org> |
only attach the i2c bus if the gpio pins we're using are actually configured as gpio while there remove some accidentially left in debug code
|
#
0a5de1dc |
| 31-Aug-2011 |
macallan <macallan@NetBSD.org> |
split up voyagerfb into the framebuffer portion and a pseudo bus that we can attach all the other sub-devices to while there attach an i2c bus
|