Commit Graph

23 Commits

Author SHA1 Message Date
cegger
0e50a9464d use aprint_*_dev and device_xname 2008-04-06 20:25:59 +00:00
ad
0f8b0df960 Call ttyflush() with tty_lock held. 2007-11-10 18:29:36 +00:00
drochner
f6c8681509 after the recent config_attach_pseudo() changes, unit numbers have the same
sementics as for real devices, so DVUNIT_ANY=-1 is illegal
2007-03-09 15:41:02 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
uwe
523122cd3e Nuke GPROF cargo-cult I've been cut-n-pasting around in my drivers. 2006-10-27 00:08:32 +00:00
uwe
44b3507820 -Wextra fixes 2006-10-12 21:19:13 +00:00
elad
65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
ad
3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
uwe
bcd4abc305 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.
2006-05-30 01:14:38 +00:00
uwe
f7d6597db0 Miscellaneous cosmetics. 2006-05-29 23:01:08 +00:00
uwe
5807cbeb31 Propagate "static" to linesw method defintions. 2006-05-29 22:17:26 +00:00
uwe
b2d14e97a2 Constify hpf1275a_wskbd_keymapdata. 2006-05-29 21:27:16 +00:00
uwe
24172f6f4d #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).
2006-05-22 20:40:07 +00:00
yamt
52da04717a - include kauth.h for kauth_authorize_generic.
- whitespace.
2006-05-15 12:39:05 +00:00
elad
2867b68bc3 integrate kauth. 2006-05-14 21:42:26 +00:00
thorpej
92c7bba3df Use device_private(). 2006-03-29 06:28:38 +00:00
uwe
bf9317f643 Constify scancode translation table.
Print dv_xname when reporting unknown scancode.
2006-03-14 23:03:45 +00:00
uwe
50e028653d Support WSDISPLAY_COMPAT_RAWKBD so that this keyboard is usable under X. 2006-03-14 22:59:32 +00:00
uwe
be72c76535 Adapt to ktrace-lwp changes.
Call ttyldisc_detach with correct argument.
2005-12-18 23:57:07 +00:00
thorpej
7d00e1aff3 Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
  that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
  ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
  registering those disciplines with the system.  The linesw
  structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
  be held.  ttyldisc_release() releases the reference.  Attempts to
  detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
  that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().
2005-11-27 05:35:52 +00:00
thorpej
45bba4e135 Change config_attach_pseudo() to take a cfdata * that contains the
necessary information to create the pseudo-device instance.  Pseudo-device
device's will reference this cfdata, just as normal devices reference
their corresponding cfdata.

Welcome to 2.99.10.
2004-10-15 04:38:36 +00:00
uwe
6bed93d4a6 Driver for HP F1275A external keyboard. 2004-06-23 21:50:22 +00:00