History log of /netbsd-src/sys/arch/cobalt/cobalt/mainbus.c (Results 1 – 22 of 22)
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 ...


# be86510b 20-Jan-2018 skrll <skrll@NetBSD.org>

Switch cobalt to common bus_space.

Tested on raq 2


# d28c36d4 29-Jul-2014 skrll <skrll@NetBSD.org>

Convert cobalt to generic mips bus_dma.


# f5198638 09-May-2008 tsutsui <tsutsui@NetBSD.org>

Split softc/device_t, with misc related changes.


# fc21b008 27-Mar-2008 tsutsui <tsutsui@NetBSD.org>

Add kernel support for optional Z85C30 serial console on Cobalt Qube 2700.
There is some interrupt related issue (in MI z8530tty driver?) on heavy load,
but useful enough for debugging.


# fe55d37a 18-Jul-2006 tsutsui <tsutsui@NetBSD.org>

Remove obsolete comment.


# bc4a0707 06-Apr-2006 tsutsui <tsutsui@NetBSD.org>

Use bus_space_map(9) to get bus_space_handle_t on each driver
and remove bogus bus_space_handle_t member from mainbus_attach_args.


# da447cc3 05-Apr-2006 tsutsui <tsutsui@NetBSD.org>

- ANSIfy
- KNF
- u_intXX_t -> uintXX_t


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

merge ktrace-lwp.


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

s/locdesc_t/int/g


# 996c273e 30-Jun-2005 drochner <drochner@NetBSD.org>

adaptions to config_search() change, and minor autoconf fixes, mostly from Havard Eidnes


# 3c37988f 05-Jun-2005 tsutsui <tsutsui@NetBSD.org>

Make sure that struct mainbus_attach_args is actually allocated.

With the previous autoconf.c and mainbus.c, the memory in rodata section
which stores "mainbus" strings (for the second arg in config

Make sure that struct mainbus_attach_args is actually allocated.

With the previous autoconf.c and mainbus.c, the memory in rodata section
which stores "mainbus" strings (for the second arg in config_rootfound())
is used to fill mainbus_attach_args in mainbus_search(). Oh well...

show more ...


# 106c596d 28-Aug-2004 tsutsui <tsutsui@NetBSD.org>

- Use bus_space(9) to access PCI configuration registers on GT64111.
- Remove unused pci stuff from mainbus.c.


# 9dae7193 12-Sep-2003 tsutsui <tsutsui@NetBSD.org>

TAB/space cleanup.


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

__KERNEL_RCSID()


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

Use aprint_normal() for cfprint routines.


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

Use CFATTACH_DECL().


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


# 278498c0 31-Mar-2000 soren <soren@NetBSD.org>

Some cleanups.


# 4c547143 19-Mar-2000 soren <soren@NetBSD.org>

NetBSD/cobalt. Work-in-progress.