#
3944ff70 |
| 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 ...
|
#
c7fb772b |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
65c738d1 |
| 10-May-2021 |
thorpej <thorpej@NetBSD.org> |
Associate the OpenBoot / OpenFirmware node with attached devices at config_found() time.
|
#
2685996b |
| 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 ...
|
#
38e52ce4 |
| 22-Nov-2020 |
thorpej <thorpej@NetBSD.org> |
malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)
|
#
d47bcd29 |
| 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.
|
#
c56890ee |
| 18-Oct-2019 |
msaitoh <msaitoh@NetBSD.org> |
s/initalize/initialize/ in comment or printf message.
|
#
f0a7346d |
| 18-Oct-2014 |
snj <snj@NetBSD.org> |
src is too big these days to tolerate superfluous apostrophes. It's "its", people!
|
#
4f67d478 |
| 30-Jan-2012 |
mrg <mrg@NetBSD.org> |
avoid writing 1 byte beyond the end of the string promlib.c has given us. instead of forcing a nul byte afterwards, KASSERT() that the final byte already is a nul. if there are broken proms... well,
avoid writing 1 byte beyond the end of the string promlib.c has given us. instead of forcing a nul byte afterwards, KASSERT() that the final byte already is a nul. if there are broken proms... well, we can fix them.
this, plus one more change, allows my SS20 to boot multiuser.
show more ...
|
#
142a0210 |
| 18-Jul-2011 |
mrg <mrg@NetBSD.org> |
convert the remaining sparc drivers to CFATTACH_DECL_NEW/cfdata_t/device_t. (cgsix_obio.c was only partially converted with the rest of the cgsix code when it was changed some time ago.)
|
#
b6584574 |
| 01-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
#include <sys/bus.h> instead of <machine/bus.h>.
|
#
102f0440 |
| 20-Sep-2009 |
tsutsui <tsutsui@NetBSD.org> |
- use device_t and cfdriver_t - use device_private() and device_xname() - use proper types or variables for device_t/softc
|
#
c2b95373 |
| 29-May-2008 |
mrg <mrg@NetBSD.org> |
remove clause #3 from my license where there are no other copyright holders involved.
|
#
d974db0a |
| 17-Oct-2007 |
garbled <garbled@NetBSD.org> |
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the v
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
show more ...
|
#
88ab7da9 |
| 09-Jul-2007 |
ad <ad@NetBSD.org> |
Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
#
53524e44 |
| 04-Mar-2007 |
christos <christos@NetBSD.org> |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
#
e56125c3 |
| 25-Feb-2007 |
uwe <uwe@NetBSD.org> |
G/c debugging printf (hi, macallan!).
|
#
94f3432c |
| 02-Jul-2006 |
jdc <jdc@NetBSD.org> |
PCI device list and interrupt mapping for JavaStation Espresso. Interrupt line values from Linux sparc sources.
|
#
3c33ccf0 |
| 24-Nov-2005 |
he <he@NetBSD.org> |
Remove declaration of a variable which is no longer used.
|
#
9476e534 |
| 24-Nov-2005 |
he <he@NetBSD.org> |
Make sure the file ends with a newline, so the port builds again.
|
#
321e7799 |
| 22-Nov-2005 |
macallan <macallan@NetBSD.org> |
add support for options BLINK
|
#
ec05898d |
| 16-Nov-2005 |
uwe <uwe@NetBSD.org> |
ANSIify. Use uint<N>_t. Drop unnecessary inlcudes. Declare as static everything we don't need to export.
|
#
87c196d0 |
| 12-Aug-2005 |
macallan <macallan@NetBSD.org> |
revert previous version, will create a device node in the boot loader instead
|
#
332916f1 |
| 12-Aug-2005 |
macallan <macallan@NetBSD.org> |
For Krups only - attach audiocs at ebus even if there's no sound node in the device tree. Works only as long as the cs4231 driver doesn't attempt to use the node since we can't really supply one. Tes
For Krups only - attach audiocs at ebus even if there's no sound node in the device tree. Works only as long as the cs4231 driver doesn't attempt to use the node since we can't really supply one. Tested on a Krups with OF 3.11.10
show more ...
|
#
ea303077 |
| 10-Jul-2004 |
pk <pk@NetBSD.org> |
Use bus_space_tag_alloc().
|