Commit Graph

351 Commits

Author SHA1 Message Date
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
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
fvdl d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr 960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
petrov 78fc8fd68f Add sun keyboards and display. 2003-06-03 06:48:12 +00:00
christos 52be04c4cc PR/17738: Matthias Drochner, PR/21230: Onno van der Linden: vt100 wscons
crashes restoring cursor. Fixed by adding a flag as suggested.
2003-04-19 23:28:46 +00:00
drochner 9ec3975139 allow to customize how highlighting and underlining text is substituted
if the display doesn't provide this
submitted by xs@kittenz.org per PR kern/18004
2003-04-02 18:22:56 +00:00
drochner f9773705b1 fix crash due to wrong argument in the (almost useless)
DECRQUPSS escape sequence
2003-04-02 17:48:59 +00:00
matt 7109fe9012 Add cn_halt and cn_flush entries to consdevs. (needed for dma-only console
devices).
2003-03-06 00:38:26 +00:00
drochner 05faaa969d stylistic change: put variable declarations to the top of a function 2003-02-11 10:45:28 +00:00
jdolecek cd6f847ec6 undo constification of 'data' for wsdisplay font - unfortunately we need
to be able to adjust the font to display adapter needs very soon (in consinit()),
so it's not possible to do font copy
2003-02-10 14:28:19 +00:00
jdolecek 998befbc32 make 'name' and 'data' of struct wsdisplay_font const, mark data arrays
in font sources const
2003-02-09 10:29:35 +00:00
thomas 59b8b56225 Define Atari wskeyboard type. 2003-01-31 23:28:30 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
simonb e53ee11473 Use u_int variables for some variables that are passed to
functions that expect u_int parameters.
Remove a semi-colon after the trailing brace of a function.
2003-01-20 02:16:55 +00:00
thorpej c62a74e6d5 Merge the nathanw_sa branch. 2003-01-18 10:32:11 +00:00
sommerfeld df5660c9f3 Fix build glitch. 2003-01-05 23:23:43 +00:00
sommerfeld 7b74535513 When moving the cursor down, only scroll up if cursor is exactly at
bottom of scroll region; don't scroll if below scroll region.
Should fix kern/11827
2003-01-05 23:20:00 +00:00
takemura 285679b875 Added new ioctl command, WSMOUSEIO_GETID to tell touch panel identifier
for tpctl(8).
2003-01-03 04:36:26 +00:00
thorpej 72a7af27b0 Use aprint_normal() in cfprint routines. 2003-01-01 00:10:15 +00:00
christos 1ee98692bb Don't leak memory on double init, and don't panic on double fini. Emit
a message when diagnostic.
2002-12-26 12:01:42 +00:00
fvdl e718b57a20 Silence strict-alias warning. 2002-12-10 20:56:30 +00:00
itohy 32c9c7f1cc Add WSKBD_TYPE_MAPLE and WSMOUSE_TYPE_MAPLE for Dreamcast Maple bus devices. 2002-12-10 13:05:09 +00:00