#
13d4bb4c |
| 25-Sep-2022 |
thorpej <thorpej@NetBSD.org> |
Remove unnecessary include of <sys/malloc.h>.
|
#
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 ...
|
#
9c13754d |
| 17-Sep-2009 |
tsutsui <tsutsui@NetBSD.org> |
Fix a message format in error path.
|
#
73d3aaa3 |
| 17-Sep-2009 |
tsutsui <tsutsui@NetBSD.org> |
Split device_t/softc. Tested on: > lebuffer0 at sbus0 slot 3 offset 0x40000: 128K memory
|
#
12ad76b1 |
| 17-Sep-2009 |
tsutsui <tsutsui@NetBSD.org> |
Remove struct sbusdev and related functions sbus_establish() and sbusreset(). They are derived from 4.4BSD/sparc and have been there since initial import of NetBSD/sparc in 1993, but the struct sbusd
Remove struct sbusdev and related functions sbus_establish() and sbusreset(). They are derived from 4.4BSD/sparc and have been there since initial import of NetBSD/sparc in 1993, but the struct sbusdev is almost unused for years, nothing calls sbusreset(), and all (*sd->sd_reset)() functions look bogus.
Suggested by mrg@ and martin@, and tested on SS1+ and SS20.
show more ...
|
#
420c7350 |
| 17-May-2009 |
tsutsui <tsutsui@NetBSD.org> |
Use device_private() to get struct sbus_softc from device_t parent.
XXX: sbus_softc has been split from device_t on sparc, but not on sparc64!?
|
#
7cf29912 |
| 12-May-2009 |
cegger <cegger@NetBSD.org> |
struct device * -> device_t, no functional changes intended.
|
#
d16a259f |
| 12-May-2009 |
cegger <cegger@NetBSD.org> |
struct cfdata * -> cfdata_t, no functional changes intended.
|
#
82357f6d |
| 14-Mar-2009 |
dsl <dsl@NetBSD.org> |
ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
#
454af1c0 |
| 14-Mar-2009 |
dsl <dsl@NetBSD.org> |
Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle
Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
show more ...
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
4c5fa20d |
| 05-Apr-2008 |
cegger <cegger@NetBSD.org> |
use aprint_*_dev and device_xname
|
#
a2a38285 |
| 19-Oct-2007 |
ad <ad@NetBSD.org> |
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
ed88e61d |
| 30-May-2005 |
christos <christos@NetBSD.org> |
avoid shadow variables.
|
#
18db93c7 |
| 04-Feb-2005 |
perry <perry@NetBSD.org> |
de-__P
|
#
1aca1da8 |
| 19-Jul-2004 |
pk <pk@NetBSD.org> |
No need to allocate our own bus tag here.
|
#
889aa9f4 |
| 30-Jun-2004 |
pk <pk@NetBSD.org> |
Introduce bus_space_tag_alloc() for the common parts of bus tag allocation.
|
#
777714c3 |
| 27-Jun-2004 |
pk <pk@NetBSD.org> |
Bus tags should now be constructed by copying the parent's bus tag and then changing the fields that need to be handled by the child bus.
|
#
ea53363e |
| 17-Mar-2004 |
pk <pk@NetBSD.org> |
Rename PROM_getprop*() => prom_getprop*().
|
#
b75a007d |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Add trailing ; to CFATTACH_DECL.
|
#
909a73ae |
| 01-Oct-2002 |
uwe <uwe@NetBSD.org> |
Add missing args to CFATTACH_DECL.
|