Commit Graph

164 Commits

Author SHA1 Message Date
uwe b320dcd170 Fix a pasto: save CONFIG_HOOK_PMEVENT_AC hook in the correct variable.
From Adam Wysocki on port-hpcsh@.
2006-08-22 01:55:00 +00:00
ad 3029ac48c7 - Use the LWP cached credentials where sane.
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
peter f4aa0d8f5a Fix typo in a comment. 2006-06-27 10:56:16 +00:00
peter 94ebfefbcd Set the jornada 720 volume up/down and play buttons to ignore
instead of unknown.
2006-06-27 10:42:41 +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
jmmv 7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
peter f75a258915 The altgr button has number 184, not 219. Change the jornada 720
key translation tables to use the correct number.

Patch for the US/UK model has been tested by Alex Poylisher & Mark Kirby.
2006-04-08 15:03:19 +00:00
thorpej 92c7bba3df Use device_private(). 2006-03-29 06:28:38 +00:00
thorpej 2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
tsutsui 2cfc946fc5 Add keymap for Clio C-1000 and C-1050.
Patch from Matthew Orgass in PR port-hpcmips/28383.
2006-03-28 14:13:12 +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
peter 4cab041d0b Jornada 720 US/UK: map the win and fn buttons correctly.
Problem reported and patch tested by Alex Poylisher.
2006-03-07 23:39:39 +00:00
peter c3f9ee5dc3 Add keyboard translation for the Jornada 720 Japanese, US/UK (ABA, ABU)
and "International English" (ABB) models.

Share the existing Jornada 680/690 (hpcsh) keyboard layouts with
Jornada 720 (hpcarm).
2006-03-04 13:52:38 +00:00
peter 4e0a2c5950 Remove the include <machine/autoconf.h>, it is a) not needed any more and
b) not available on all hpc ports.
2006-02-27 02:30:39 +00:00
cube 1a40a44a0c Add support for OAPM_IOC_GETPOWER. That will keep binary compatibility
when hpcarm switches to using hpcapm(4).
2006-02-27 00:38:25 +00:00
cube 3ca5c26836 Rework hpcapm(4) attachment definition so it is not required to attach at
mainbus, and convert its two users, hpcsh and hpcmips, to that.

Many thanks to Valeriy Ushakov and Ben Collver for testing.
2006-02-24 13:06:12 +00:00
uwe 50ea998c78 Move assignment out of conditional expression. 2006-02-13 16:35:57 +00:00
peter 57be7a5a81 Fix a typo, use uintN_t, use assigned variables, add newline to a printf. 2006-02-12 23:19:14 +00:00
uwe be72c76535 Adapt to ktrace-lwp changes.
Call ttyldisc_detach with correct argument.
2005-12-18 23:57:07 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +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
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
kiyohara 17587c6104 Support LCD screen driver for PERSONA SH3 machines. 2005-09-05 18:54:10 +00:00
uwe 81bf6b30a3 For HPCFB_CLASS_RGBCOLOR class propagate r/g/b widths and positions
from hf_rgb to rasops_info.
2005-09-04 00:54:42 +00:00
drochner 46ed4b50c4 s/locdesc_t/int/g 2005-08-26 12:42:11 +00:00
nakayama 588f33c33a Get AC/battery state via config_hook_call if hooks are registered. 2005-07-30 22:51:42 +00:00
nakayama 8ff59f4fc0 Add LCD brightness control keymaps and correct some key assigns for
Sharp Telios series.
2005-07-30 22:45:13 +00:00
uwe 06814ceede Keyboard translation for HP 620LX. Data and testing on an
"International English" (#ABB) unit from Christer Andersson.
US version (#ABA) uses the same primary layer layout as far as I can
figure from keyboard pictures, so this table should work for those
machines too.
2005-07-14 19:50:29 +00:00
he 3ffd57432b Add an __UNCONST() to appease -Wcast-qual.
XXX The way this is done is really wrong, as this function ends up
modifying read-only data marked with 'const'.
The reason we can get away with this is that apparently all the
ports using this code maps text and read-only data read-write.

Reviewed by christos, who suggested "a big XXX comment".
2005-06-08 07:49:45 +00:00
he 7cb32336e1 Add const to the name fields in hipcio_chip and hpcio_attach_args. 2005-06-07 11:43:01 +00:00
uwe 6a13aaa20f Constify. 2005-06-02 21:36:25 +00:00
uwe 1f2b389b7e Constify. 2005-05-31 23:14:02 +00:00
uwe 6a99517a37 Constify. 2005-05-31 23:04:10 +00:00
christos 7cdea212c0 No 0x in front of %p... 2005-05-22 15:54:45 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
uwe a1b87c0ac3 Shuffle persona_hpw200ec_keytrans[] to match recent change to
pfckbd_callout_hitachi().

Fix KEY_SPECIAL_OFF for both Persona machines.

From KIYOHARA Takashi.
2005-01-19 03:23:50 +00:00
uwe 8fc1984171 Kill trailing whitespace. 2005-01-18 06:05:52 +00:00
uwe 80e190d19b Use uint<N>_t instead of u_int<N>_t. 2005-01-18 06:03:31 +00:00
uwe a1e2e32edf Rewrite pfckbd_callout_hitachi() to do the same scan line dance that
pfckbd_callout_hp() does.  Change the order of scan and the layout of
the matrix to be more natural.

Chords like <Shift>+<L> now work.

From KIYOHARA Takashi.
2005-01-18 03:59:11 +00:00
uwe c1574ed6c1 Add keyboard layout for Jornada 680/690 Spanish (ABE).
From Alfonso Fernandez.
2005-01-11 01:54:20 +00:00
abs 964859d895 Fix comments regarding configration bounaries 2004-12-12 21:03:06 +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
drochner 96b589fc18 a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
 config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
 on "locators.h"
2004-09-13 12:55:47 +00:00