History log of /netbsd-src/sys/dev/tc/tc.c (Results 1 – 25 of 60)
Revision Date Author Comments
# 8ae6144b 13-May-2024 msaitoh <msaitoh@NetBSD.org>

s/of of/of/ in comment.


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

Merge thorpej-cfargs2.


# e2840100 07-May-2021 thorpej <thorpej@NetBSD.org>

A small bit of const poisoning.


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


# e04b8077 10-Jun-2017 flxd <flxd@NetBSD.org>

Fix missing TC bus speed.


# 36e3e29f 09-Jun-2017 flxd <flxd@NetBSD.org>

Make VAXstation 4000 TURBOchannel adaptor work.
PIO and IRQ tested on VS4000/60 and /96 with TC-USB (slhci) and PMAD-AA (le).
DMA is untested.
vax needs space to be mapped out, so memory space is pre

Make VAXstation 4000 TURBOchannel adaptor work.
PIO and IRQ tested on VS4000/60 and /96 with TC-USB (slhci) and PMAD-AA (le).
DMA is untested.
vax needs space to be mapped out, so memory space is pre-mapped for TC option
drivers not bus_space'ified yet, also providing custom bus_space methods for
this kludge.

show more ...


# 41d99bfb 12-Dec-2016 flxd <flxd@NetBSD.org>

Clean-up (remove redundant declarations, concentrate checks).


# 53697fe7 19-Jul-2016 christos <christos@NetBSD.org>

make the check work with widths other than 4, Felix Deichmann


# ec0d275b 19-Jul-2016 christos <christos@NetBSD.org>

PR/50849: Felix Deichmann: Relax TC option ROM header check for ROM widths < 4


# 47f361e8 04-Jun-2011 tsutsui <tsutsui@NetBSD.org>

Split device_t/softc. pmax is tested on GXemul.
Compile test only for alpha and vax.

XXX: alpha/tc/tcasic.c calls tcattach() via config_found(9), but
XXX: pmax/tc/tcbus.c and vax/vsa/tc_vsbus.c cal

Split device_t/softc. pmax is tested on GXemul.
Compile test only for alpha and vax.

XXX: alpha/tc/tcasic.c calls tcattach() via config_found(9), but
XXX: pmax/tc/tcbus.c and vax/vsa/tc_vsbus.c calls tcattach() directly.
XXX: It looks horrible...

show more ...


# 7cf29912 12-May-2009 cegger <cegger@NetBSD.org>

struct device * -> device_t, no functional changes intended.


# d16a259f 12-May-2009 cegger <cegger@NetBSD.org>

struct cfdata * -> cfdata_t, no functional changes intended.


# d1336c20 11-Jun-2008 tsutsui <tsutsui@NetBSD.org>

Use device_lookup_private() to get softc.
XXX this driver assumes cf_unit is always zero


# e71c736c 19-Feb-2008 matt <matt@NetBSD.org>

Fix TC on VAX. (missed committing these earlier)


# 55fa5792 12-Apr-2007 matt <matt@NetBSD.org>

Make tc_knowndevs const.


# c8dd740f 31-Mar-2006 thorpej <thorpej@NetBSD.org>

Use ANSI function decls, apply static.


# 07c30f82 30-Mar-2006 thorpej <thorpej@NetBSD.org>

Use device_private().


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

merge ktrace-lwp.


# 096c3e1d 26-Aug-2005 drochner <drochner@NetBSD.org>

kill some more simple submatch() functions, use config_stdsubmatch()


# fa3cb84d 25-Aug-2005 drochner <drochner@NetBSD.org>

replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and

replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks

show more ...


# 18db93c7 04-Feb-2005 perry <perry@NetBSD.org>

de-__P


# 73286594 26-Aug-2004 drochner <drochner@NetBSD.org>

some cleanup: use the locator-passing variant of config_found(), get
the macros just hiding cfdata members out of tcvar.h and include
"locators.h" only in the .c file


# 9c627df7 27-Apr-2004 yamt <yamt@NetBSD.org>

remove redundant function prototypes to make this compilable after
snprintf changes.


# aca4c091 22-Apr-2004 itojun <itojun@NetBSD.org>

sprintf -> snprintf


# b299c218 26-Sep-2003 tsutsui <tsutsui@NetBSD.org>

Remove casts and use %x in printf for tc_offset_t,
which is int32_t on both alpha and pmax.


123