History log of /netbsd-src/sys/arch/playstation2/dev/spd.c (Results 1 – 15 of 15)
Revision Date Author Comments
# 4cc1a1ab 11-Feb-2022 riastradh <riastradh@NetBSD.org>

playstation2: Fix some pre-device_t/softc-split device private sizes.

Nothing appears to use device_private here, so let's not allocate
anything or ask for sizeof(struct device).


# c7fb772b 07-Aug-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs2.


# 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 ...


# ef4ada88 19-Jul-2016 maya <maya@NetBSD.org>

CFATTACH_DECL -> CFATTACH_DECL_NEW
struct device * -> device_t


# c7f49c0a 19-Jul-2016 maya <maya@NetBSD.org>

We need to include param.h before device.h, as it uses uint64_t


# 7fc0e575 18-Jul-2016 maya <maya@NetBSD.org>

Include sys/device.h for cfdata_t


# a87b681f 18-Jul-2016 maya <maya@NetBSD.org>

Adapt to change: struct cfdata * -> cfdata_t


# aad6ef8b 31-Mar-2014 martin <martin@NetBSD.org>

Bring back the playstation2 port - now that a toolchain for it is
available again.


# 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.


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

__KERNEL_RCSID()


# 95fa2e14 01-Jan-2003 thorpej <thorpej@NetBSD.org>

Use aprint_normal() for cfprint routines.


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

Use CFATTACH_DECL().


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

Declare all cfattach structures const.


# 2fa5ea97 16-Oct-2001 uch <uch@NetBSD.org>

playstation2 port