History log of /netbsd-src/sys/arch/sparc/dev/bootbus.c (Results 1 – 24 of 24)
Revision Date Author Comments
# 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)


# 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


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# 95e1ffb1 11-Dec-2005 christos <christos@NetBSD.org>

merge ktrace-lwp.


# 44bf0a7e 26-Aug-2005 drochner <drochner@NetBSD.org>

s/locdesc_t/int/g


# b081eee0 28-Jun-2005 drochner <drochner@NetBSD.org>

convert remaining autoconf bus "submatch" functions to use the new
signature (passing locators), and remove some which obviously don't
serve any purpose
(untested, sorry)


# ea53363e 17-Mar-2004 pk <pk@NetBSD.org>

Rename PROM_getprop*() => prom_getprop*().


# 9e599bdb 27-Aug-2003 mrg <mrg@NetBSD.org>

change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function. this
avoids having to cast dozens of different types to "void **

change PROM_getprop() from taking a "void **" for the storage, to a
"void *", and do the extra de-reference directly in the function. this
avoids having to cast dozens of different types to "void **", which sets
of GCC3's strict-aliasing. testing by martin@

show more ...


# a4183603 15-Jul-2003 lukem <lukem@NetBSD.org>

__KERNEL_RCSID()


# 9c121415 01-Jan-2003 thorpej <thorpej@NetBSD.org>

Use aprint_normal() for cfprint routines.


# 4bf871a7 02-Oct-2002 thorpej <thorpej@NetBSD.org>

Add trailing ; to CFATTACH_DECL.


# c1077f22 01-Oct-2002 thorpej <thorpej@NetBSD.org>

Use CFATTACH_DECL().


# f818766a 27-Sep-2002 thorpej <thorpej@NetBSD.org>

Declare all cfattach structures const.


# 6c88de3b 27-Sep-2002 thorpej <thorpej@NetBSD.org>

Introduce a new routine, config_match(), which invokes the
cfattach->ca_match function in behalf of the caller. Use it
rather than invoking cfattach->ca_match directly.


# d1ad2ac4 27-Sep-2002 thorpej <thorpej@NetBSD.org>

Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver. The cfdriver is then looked
up in a list which is built at run-time.


# a9f285b0 25-Aug-2002 thorpej <thorpej@NetBSD.org>

Put a bus's ranges in the bus space tag, and make sparc_bus_map()
perform the translation and recursion if t->ranges != NULL. Make
sbus, cpuunit, and bootbus inherit the parent's map/mmap routines,

Put a bus's ranges in the bus space tag, and make sparc_bus_map()
perform the translation and recursion if t->ranges != NULL. Make
sbus, cpuunit, and bootbus inherit the parent's map/mmap routines,
and delete the now-unused mapping functions. Update all places where
bus space tags are statically allocated.

show more ...


# 0570742a 25-Aug-2002 thorpej <thorpej@NetBSD.org>

Add a generic function to translate a device address using a
parent's "ranges" property, and use it.


# 41c25cb6 24-Aug-2002 thorpej <thorpej@NetBSD.org>

Add autoconfiguration support for the Sun4d "bootbus". Add a
zs @ bootbus attachment.