History log of /netbsd/sys/arch/mac68k/mac68k/mainbus.c (Results 1 – 23 of 23)
Revision Date Author Comments
# beecddb6 07-Aug-2021 thorpej <thorpej@NetBSD.org>

Merge thorpej-cfargs2.


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


# e297491b 05-Jun-2011 matt <matt@NetBSD.org>

struct device * -> device_t, struct cfdata * -> cfdata_t
CFATTACH_DECL(*, sizeof(struct device), -> CFATTACH_DECL_NEW(&, 0


# 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


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

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


# 7acd68b1 15-Jan-2005 chs <chs@NetBSD.org>

de-__P, remove register, ansify, b* -> mem*.


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

__KERNEL_RCSID()


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


# 652b9e4c 13-Apr-2002 briggs <briggs@NetBSD.org>

Fixes and changes from Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>.
* Clean up after briggs@ changes to support bus_dma.
* Add support for reading sMemory resources from nubus cards.
* Add support fo

Fixes and changes from Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>.
* Clean up after briggs@ changes to support bus_dma.
* Add support for reading sMemory resources from nubus cards.
* Add support for old cards with only the board rsrc (NatSemi NB-GPIB, e.g.)
* Add a few more card identifiers.

show more ...


# 648cd86d 10-Apr-2002 briggs <briggs@NetBSD.org>

Use m68k/m68k/cacheops.[ch]
Use m68k/m68k/bus_dma.c
- Add mainbus_attach_args with bus_space_tag_t and bus_dma_tag_t.
- Use passed-in tags for nubus scan.


# 36760d9d 12-Jan-1998 thorpej <thorpej@NetBSD.org>

Update for changes to config.


# 4229acf7 09-Oct-1997 jtc <jtc@NetBSD.org>

Fix tipo inherited from old version of TNF copyright template.


# 07bde0d4 17-Dec-1996 scottr <scottr@NetBSD.org>

Revamp mainbus and obio autoconfiguration, with some direction (and the
indirect bus code framework) from Jason Thorpe. This allows us to dump
bus_scan() and bus_print(), and move bus_peek() and bus

Revamp mainbus and obio autoconfiguration, with some direction (and the
indirect bus code framework) from Jason Thorpe. This allows us to dump
bus_scan() and bus_print(), and move bus_peek() and bus_mapin() to the
NuBus code (since they'll eventually go away, anyway).

show more ...


# 9b4055eb 16-Dec-1996 scottr <scottr@NetBSD.org>

Convert all foo_match() functions to use a `struct cfdata *' for their
second argument. The NuBus autoconfig code had to be reorganized as a
result of this, and looks much more like a directly-attac

Convert all foo_match() functions to use a `struct cfdata *' for their
second argument. The NuBus autoconfig code had to be reorganized as a
result of this, and looks much more like a directly-attached bus now.
These changes eliminate __BROKEN_INDIRECT_CONFIG.

show more ...


# 084b3f6a 21-Oct-1996 briggs <briggs@NetBSD.org>

Fix two bugs noticed by Taras Ivanenko <ivanenko@ctpa03.mit.edu>
via.c: don't allow spl to remain at splhigh on error.
mainbus.c: Make sure that variable is initialized.


# 40ecbf8e 13-Oct-1996 christos <christos@NetBSD.org>

backout previous kprintf change


# 06555645 11-Oct-1996 christos <christos@NetBSD.org>

printf -> kprintf, sprintf -> ksprintf


# 2a73ef60 27-Aug-1996 cgd <cgd@NetBSD.org>

change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could bec

change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).

show more ...


# 758ea43e 19-Jun-1996 scottr <scottr@NetBSD.org>

Completely revamp setroot() and friends. Since Chris' version of this code
is close to how I reworked it, I pulled in the (essentially MI) NetBSD/alpha
and added the appropriate support around it.

Completely revamp setroot() and friends. Since Chris' version of this code
is close to how I reworked it, I pulled in the (essentially MI) NetBSD/alpha
and added the appropriate support around it.

- No need for the GENERIC kernel config option.
- NFS-mounted root and swap are supported.
- If we can't figure out where the root filesystem is from what the Booter
tells us, ask the user.
- Split the mainbus autoconfig code to a separate file.

Also, update/add copyrights as appropriate.

show more ...