History log of /netbsd/sys/dev/sbus/spif.c (Results 1 – 25 of 35)
Revision Date Author Comments
# 7c92946d 26-Oct-2022 riastradh <riastradh@NetBSD.org>

spif(4): Convert to ttylock/ttyunlock.


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


# 70747dc1 10-Nov-2019 chs <chs@NetBSD.org>

in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.


# 1a918832 25-Jul-2014 dholland <dholland@NetBSD.org>

Add d_discard to all struct cdevsw instances I could find.

All have been set to "nodiscard"; some should get a real implementation.


# 76258fa0 16-Mar-2014 dholland <dholland@NetBSD.org>

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found

Change (mostly mechanically) every cdevsw/bdevsw I can find to use
designated initializers.

I have not built every extant kernel so I have probably broken at
least one build; however I've also found and fixed some wrong
cdevsw/bdevsw entries so even if so I think we come out ahead.

show more ...


# f9c3608a 15-Sep-2013 martin <martin@NetBSD.org>

Remove unused variables


# 97edfeac 18-Jul-2011 mrg <mrg@NetBSD.org>

convert the remaining dev/sbus drivers to CFATTACH_DECL_NEW, cfdata_t
and device_t, including the pci frontend and backend for en(4).


# 3e44c741 02-Jul-2011 mrg <mrg@NetBSD.org>

avoid some uninitialised variable warnings from GCC 4.5. i'm pretty
sure they can't happen in practise, but i can see why GCC isn't sure.


# 80f6fc52 24-Apr-2011 rmind <rmind@NetBSD.org>

Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency. Remove some unnecessary malloc.h inclusions as well.


# 579b9cbd 19-Sep-2009 tsutsui <tsutsui@NetBSD.org>

u_intNN_t -> uintNN_t


# 08c90221 17-Sep-2009 tsutsui <tsutsui@NetBSD.org>

Include "ioconf.h" instead of extern struct cfdriver foo_cd decls.


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


# 82357f6d 14-Mar-2009 dsl <dsl@NetBSD.org>

ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.


# 454af1c0 14-Mar-2009 dsl <dsl@NetBSD.org>

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

show more ...


# b8c03f73 11-Dec-2008 hauke <hauke@NetBSD.org>

Fix warning about missing initializer that showed up in sparc64
builds, but, strangely enough, not in sparc builds.

Relevant for netbsd-{4,5} release branches.


# 1a9e64b4 11-Jun-2008 drochner <drochner@NetBSD.org>

mechanical changes to use device_private() or device_lookup_private()
to get softcs, makes the code compile under the stricter type checking
introduced earlier today


# 96434039 11-Jun-2008 cegger <cegger@NetBSD.org>

- use device_lookup_private to get softc
- ansify
fixes build errors about pointer type mismatches in assignment


# 5e4b3243 25-May-2008 ad <ad@NetBSD.org>

Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.


# 4c5fa20d 05-Apr-2008 cegger <cegger@NetBSD.org>

use aprint_*_dev and device_xname


# dc26833b 19-Nov-2007 ad <ad@NetBSD.org>

- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.


# d3793569 07-Nov-2007 ad <ad@NetBSD.org>

Merge tty changes from the vmlocking branch.


# a2a38285 19-Oct-2007 ad <ad@NetBSD.org>

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h


# 46ed8f7d 08-Oct-2007 ad <ad@NetBSD.org>

Use the softint API.


12