Commit Graph

373 Commits

Author SHA1 Message Date
martin b8aea19a7a Add a key symbol for the "Power" key. 2005-06-08 09:11:09 +00:00
uwe 5442d49e77 Constify. Drivers pass const default calibration data to
WSMOUSEIO_SCALIBCOORDS using __UNCONST, so make sure we don't try to
modify it.
2005-06-01 00:02:17 +00:00
uwe 7d69499bba Fix misleading indentation. 2005-05-31 23:37:47 +00:00
christos d4268da6a0 add const. 2005-05-30 22:16:27 +00:00
martin c12108712c Adapt to recent constification. 2005-05-30 09:36:50 +00:00
christos f90bcf3a23 - sprinkle const.
- avoid variable shadowing.
2005-05-29 21:56:35 +00:00
martin 228158ce8c If the driver supports reverse, try that first - even on color displays.
This removes a XXX and makes us independent of the users default colors.
2005-05-25 06:46:07 +00:00
martin b7de61b9b3 Rename REALWHITE to SNOWWHITE.
While there, add LIGHT versions of the other predefined colours as well.
2005-05-23 09:44:57 +00:00
martin e5c6528779 Define a real white color - since WSCOL_WHITE is ANSI-emulation specific
defined as grey (which can't be fixed w/o breaking user config files).
Fixes PR kern/30064.
2005-05-22 20:16:08 +00:00
he 4f4c9a7624 Enclose some code dependent on wsdisplay in #if NWSDISPLAY > 0 / #endif;
fixes build problem for news68k.

Reviewed by augustss
2005-05-08 17:16:34 +00:00
augustss 1710458cee Make auto repeat of events a compile time option, and have it off by default.
Turn on by WSKBD_EVENT_AUTOREPEAT.
2005-05-04 01:52:16 +00:00
augustss 09661ed83a Change the logic for generating auto repeat from the keyboard. Previously
auto repeat was only available in translated mode, but not in event mode.
Now both modes have auto repeat.  There are actually a few users of
the event mode, and they deserve auto repeat too. :)

Also make it possible to turn off auto repeat by setting repeat.del1=0.
2005-05-03 13:13:07 +00:00
augustss 949688eeaf Remember what keyboard layout is set in the mux, that way new keyboards
can be given the same layout.  Fixes kern/19153.
2005-04-30 03:47:12 +00:00
martin 05308d1b95 Make it possible for a console driver to deliver raw ASCII characters
to wskbd. This is for special cases only, and may even be considered a
hack, but it is cheap and very local.
2005-04-28 07:15:44 +00:00
martti d927f0a6a7 s/Finish/Finnish/ 2005-04-04 09:08:54 +00:00
dsl e3f3e5cc51 Change the wa ythe KB_xxx and KB_ENCTAB are defined so we have all the
data for a single keyboard on one line - including the long name and
default modifiers that sysinst needs.
2005-03-08 08:06:26 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
joff 5cc20bed82 Support wsdisplay(4) attachments of hd44780 LCD controllers 2005-02-04 05:58:44 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
joff 5c5c7c1047 Add new wskbd type MATRIXKP 2005-01-31 06:07:32 +00:00
martin 9eba7eabba PR kern/28837: fix undef typo. 2005-01-02 15:43:49 +00:00
hubertf b73330c814 Try to document keymap names - this really a trip into the obscure.
XXX someone please review!
2004-12-02 19:59:31 +00:00
jkunz 1035c6af08 Import STI wscons(4) driver from OpenBSD and add new driver for PS/2
keyboard / mouse pots of LASI.
2004-08-26 16:48:06 +00:00
he 8c0706bddd Remove include of "opt_wsmsgattrs.h" here, since that's already done
by wsdisplayvar.h.  Fixes build problem for sparc.
2004-08-03 11:16:30 +00:00
jmmv 2a08d54a9a Implement border color customization in wscons(4), only available for vga(4)
at the moment.

This includes the addition of two new wsdisplay ioctls, WSDISPLAY_{G,S}BORDER,
one to get the actual color and one to set it, respectively.  Possible colors
match those defined by ANSI (and listed in wsdisplayvar.h).

It also adds two accessops to the underlying graphics device, getborder and
setborder, which mach their ioctl counterparts.

Two kernel options are added: WSDISPLAY_CUSTOM_BORDER, which enables the
ioctls described above (to customize the border color from userland after
boot), and WSDISPLAY_BORDER_COLOR, which sets the color at boot time.
The former is enabled by default on the GENERIC kernel, but not on INSTALL
(among others).  The later is always commented out, leaving the usual black
border as a default.

wsconsctl is modified to allow accessing this value easily.  For example,
'wsconsctl -d -w border=blue'.
2004-07-29 22:29:35 +00:00
jmmv bc47208cb0 Forgot to define WSDISPLAY_CUSTOM_OUTPUT here. 2004-07-28 15:12:07 +00:00
jmmv 92f81ea7d3 Implement support to dynamically change wscons console and kernel colors.
Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it.  This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
  change the colors dynamically from userland.  This is enabled by default
  in the GENERIC kernel (as well as others) but disabled on all INSTALL*
  kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
  which specify the default colors for the console at boot time.  These have
  the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
2004-07-28 12:34:02 +00:00
heas a3f3869414 Add WSDISPLAYIO_[GS]MODE type _DUMBFB - mapped fb (no registers)
Add WSDISPLAYIO_LINEBYTES ioctl - # bytes/row

Used by ffb driver and XFree wsfb driver module - From OpenBSD
2004-07-20 20:28:20 +00:00
sekiya 95ef21ea53 Add SGI types for mouse and keyboard. 2004-07-07 00:10:30 +00:00
tsarna 4605dd7457 Add calibration support to uep driver.
Untested, still need a userland utility to calibrate with.
2004-06-12 17:52:41 +00:00
christos f6a0807a9e make the scroll lines ioctl struct take u_int's again. The wsconsctl
command does not deal with shorts well.
2004-06-07 01:13:40 +00:00
christos 6a5f1d6689 return ENODEV if functions are not compiled in the kernel. 2004-06-03 19:04:58 +00:00
christos c7d300d20b White space changes only;
1. put value defines under the fields that they refer too, all the time
   not just in some of the ioctls.
2. use #define<tab>value consistently.
2004-06-01 18:58:51 +00:00
christos f7e75201b3 Re-group scrolling ioctl's and provide new numbers for them! (thanks to
John Heasley for catching that).
2004-06-01 18:49:46 +00:00
christos b7aff9bc12 fix scrolling code that was not ifdefed. 2004-05-29 02:01:09 +00:00
christos 1143925e65 move scroll function definition last. 2004-05-28 22:38:28 +00:00
christos 7208404c41 PR/19925: David Ferlier: Add scrolling support to wscons. 2004-05-28 21:42:29 +00:00
tsarna f53a32e6c9 Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern. 2004-05-28 17:52:06 +00:00
pooka 71085f7d18 Add el-cheapo finnish encoding, i.e. make the name "fi" point to
the swedish keymap, which actually gets set.

inspired by wiz
keymap name blessed by Klaus
2004-05-13 15:00:27 +00:00
itojun db9226c772 use bounded string ops 2004-04-23 21:29:16 +00:00
drochner ef369e0ed6 remove license clauses 3 and 4 from my cpoyright notices 2004-03-24 17:26:53 +00:00
petrov 42615e3301 Add sun display types. 2004-03-19 09:00:38 +00:00
sekiya d1ae192917 Add console type for SGI GR2 family. 2004-03-18 08:30:58 +00:00
bjh21 a093883c82 Trailing whitespace cleanup. 2004-02-08 13:49:43 +00:00
sekiya 2b71c666ca Add display type for SGI Newport. 2004-01-24 09:53:54 +00:00
drochner 86048e5a3d always check whether a display is attached before calling
wsdisplay_*() functions
2003-11-28 13:32:55 +00:00
drochner 4d60676c44 -remove a check of errno against -1, this is nonsense since
we have EPASSTHROUGH
-remove a superflous #if NWSMOUSE
2003-11-28 13:19:46 +00:00
simonb 5a696d0850 Fix uninitialised variable introduced with previous change.
Patch from mlelstv.
2003-09-23 09:16:07 +00:00
jdolecek 7cea8a1389 cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@
2003-09-21 19:16:48 +00:00
manu 9a42b7a993 Do much more sanity checks when handling entries in the sc_scr array
of struct wsdisplay_softc. Unused entries are NULL, and there were
a lot of places where we did not checked that the caller did not
requested an operation on a NULL entry.

While we are there, one bit of KNFification, and make return code more
consistent by always returning the same code (EINVAL) when a screen
number higer than the maximum is requested.
2003-09-21 18:47:59 +00:00