History log of /netbsd-src/sys/dev/hpc/hpf1275a_tty.c (Results 1 – 25 of 33)
Revision Date Author Comments
# 561e6c8b 10-May-2023 riastradh <riastradh@NetBSD.org>

hpf1275a(4): Use config_detach_children.


# a0c46e17 26-Oct-2022 riastradh <riastradh@NetBSD.org>

hpf1275a(4): Convert to ttylock/ttyunlock.


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


# 82b8caba 28-Oct-2017 riastradh <riastradh@NetBSD.org>

Kill some more extern struct cfdriver declarations.

Down with externs in .c!


# 02e8a058 02-Aug-2017 uwe <uwe@NetBSD.org>

Fix the previous fix that doesn't even compile.


# 92ee2313 28-Jun-2013 christos <christos@NetBSD.org>

fix uninitialized pointer. This could have never worked.
http://m00nbsd.net/ae123a9bae03f7dde5c6d654412daf5a.html


# cbab9cad 27-Oct-2012 chs <chs@NetBSD.org>

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.


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

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


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

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


# 0e50a946 06-Apr-2008 cegger <cegger@NetBSD.org>

use aprint_*_dev and device_xname


# 0f8b0df9 10-Nov-2007 ad <ad@NetBSD.org>

Call ttyflush() with tty_lock held.


# f6c86815 09-Mar-2007 drochner <drochner@NetBSD.org>

after the recent config_attach_pseudo() changes, unit numbers have the same
sementics as for real devices, so DVUNIT_ANY=-1 is illegal


# 53524e44 04-Mar-2007 christos <christos@NetBSD.org>

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.


# 168cd830 16-Nov-2006 christos <christos@NetBSD.org>

__unused removal on arguments; approved by core.


# 523122cd 27-Oct-2006 uwe <uwe@NetBSD.org>

Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers.


# 44b35078 12-Oct-2006 uwe <uwe@NetBSD.org>

-Wextra fixes


# 65792a03 01-Oct-2006 elad <elad@NetBSD.org>

More from Matt Fleming:

Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.


# 3029ac48 21-Jul-2006 ad <ad@NetBSD.org>

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.


# bcd4abc3 30-May-2006 uwe <uwe@NetBSD.org>

If tty that we open already has hpf1275a line discipline set, don't
spawn new pseudo-device and wskbd instances.

XXX: The logic for exclusive use needs to be thought out better, but
for now this sho

If tty that we open already has hpf1275a line discipline set, don't
spawn new pseudo-device and wskbd instances.

XXX: The logic for exclusive use needs to be thought out better, but
for now this should at least prevent scores of new hpf1275a/wskbd
being attached if you accidentally set this line discipline on your
serial console.

show more ...


# f7d6597d 29-May-2006 uwe <uwe@NetBSD.org>

Miscellaneous cosmetics.


# 5807cbeb 29-May-2006 uwe <uwe@NetBSD.org>

Propagate "static" to linesw method defintions.


# b2d14e97 29-May-2006 uwe <uwe@NetBSD.org>

Constify hpf1275a_wskbd_keymapdata.


# 24172f6f 22-May-2006 uwe <uwe@NetBSD.org>

#include <dev/wscons/wsksymvar.h> as gcc4 doesn't like arrays,
pckbd_keydesctab[] in this case, with incomplete element types (older
versions of gcc allow them as long as you don't try to access them

#include <dev/wscons/wsksymvar.h> as gcc4 doesn't like arrays,
pckbd_keydesctab[] in this case, with incomplete element types (older
versions of gcc allow them as long as you don't try to access them).

show more ...


# 52da0471 15-May-2006 yamt <yamt@NetBSD.org>

- include kauth.h for kauth_authorize_generic.
- whitespace.


12