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


# 43993578 22-Nov-2011 tsutsui <tsutsui@NetBSD.org>

Remove more now unnecessary IIOV() conversion.
XXX: we should have proper PA to VA macro for TT mappings for readability


# b87210fa 14-May-2008 tsutsui <tsutsui@NetBSD.org>

Normalize my licenses.


# 820a544d 28-Mar-2008 tsutsui <tsutsui@NetBSD.org>

Use CFATTACH_DECL_NEW(), device_t, cfdata_t, and aprint_*().


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

merge ktrace-lwp.


# 52b46dcf 04-Sep-2004 tsutsui <tsutsui@NetBSD.org>

- Use ANSI function declarations and make some functions static.
- Some KNF


# 378871cd 04-Sep-2004 tsutsui <tsutsui@NetBSD.org>

Include ioconf.h to declare struct cfdriver.


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

__KERNEL_RCSID()


# 5db9bf06 11-Jan-2003 tsutsui <tsutsui@NetBSD.org>

Fix -Wsign-compare warnings.


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

Use aprint_normal() for cfprint routines.


# 0687b33b 20-Dec-2002 tsutsui <tsutsui@NetBSD.org>

Remove __P().


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

Use CFATTACH_DECL().


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

Declare all cfattach structures const.


# 08f4daf2 25-Jan-2001 tsutsui <tsutsui@NetBSD.org>

Add drivers for keyboard and mouse.
(but no working framebuffer yet..)