#
09eb5c43 |
| 22-Jan-2022 |
thorpej <thorpej@NetBSD.org> |
Change the devhandle_from_*() functions to also take a "super handle", from which the newly created handle will inherit it's implementation. The root implementation for a new handle type is used if a
Change the devhandle_from_*() functions to also take a "super handle", from which the newly created handle will inherit it's implementation. The root implementation for a new handle type is used if an invalid "super handle" is passed.
show more ...
|
#
beecddb6 |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
f7becf83 |
| 10-May-2021 |
thorpej <thorpej@NetBSD.org> |
Associate the OpenBoot / OpenFirmware node with attached devices at config_found() time.
|
#
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 ...
|
#
d8b2826a |
| 04-Jan-2021 |
thorpej <thorpej@NetBSD.org> |
malloc(9) -> kmem(9) -- just the simple, straightforward conversions for now.
|
#
70747dc1 |
| 10-Nov-2019 |
chs <chs@NetBSD.org> |
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
#
575a7585 |
| 07-Jul-2016 |
msaitoh <msaitoh@NetBSD.org> |
KNF. Remove extra spaces. No functional change.
|
#
6f15e010 |
| 10-May-2016 |
palle <palle@NetBSD.org> |
sun4v: make device interrupts work. Introduce a new intrhand_alloc() function for allocation of interrupt handlers and adapt to this. Parts from OpenBSD. ok martin@
|
#
d6c0ac40 |
| 18-Mar-2012 |
mrg <mrg@NetBSD.org> |
add missing __KERNEL_RCSID().
|
#
fa12468b |
| 12-Aug-2011 |
jdc <jdc@NetBSD.org> |
Set the destination UPAID when establishing the interrupt mapping. From eeh@.
|
#
f438c19d |
| 29-Jul-2011 |
mrg <mrg@NetBSD.org> |
port the openbsd central and fhc drivers, and the clock/zs attachments. doesn't quite work yet, crashes when central_attach() calls config_attach() (faulting address is 0xf8000000.)
|