Commit Graph

175 Commits

Author SHA1 Message Date
uwe
44b3507820 -Wextra fixes 2006-10-12 21:19:13 +00:00
he
4072b525cc The use of a local variable is conditional on FBDEBUG, so make the
declaration too.  Makes this build without FBDEBUG defined.
2006-10-10 23:09:21 +00:00
peter
9eddf38521 Remove (the default) #define XXXDEBUG and add the options to the relevant
files.xxx file.
2006-10-09 10:33:42 +00:00
peter
d0109f306b Jornada 720: change key 127 to KEY_SPECIAL_OFF. 2006-10-07 14:03:12 +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
elad
bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
peter
223213b93f Improve some debug texts. 2006-09-24 19:07:26 +00:00
peter
d04123ca73 Run the "power button event" hooks when the special button OFF is pressed.
Change the keycodes in the keymaps that are currently using the OFF button
to -1 so that they will still operate the same way (i.e. do nothing).

No objection on port-hpcsh & port-hpcmips.
2006-09-24 18:34:41 +00:00
jmcneill
f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
gdamore
50d22dfb8e Convert time.tv_sec to time_second. 2006-09-05 21:59:51 +00:00
matt
3d36667ef9 Appease GCC4 by making /* NOTREACHED */ code return 0. 2006-08-31 18:31:59 +00:00
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