Commit Graph

185 Commits

Author SHA1 Message Date
christos d4d0b2f85f whitespace. 2005-12-14 00:41:17 +00:00
christos 5ecdc5e2d0 welcome to the new lwp world. 2005-12-12 02:44:09 +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
macallan 4188757b69 Add a multiple include guard. 2005-10-15 15:41:22 +00:00
macallan 33f4e6b2f0 Fixes the following bug:
Framebuffer drivers use their own minor device number to find their device entry
in fbdriver methods ( like cgsix uses cgsix_cd[minor] ) but fb passed the fb
device's unit number which works only as long as all registered fb devices use
the same underlying driver. With different fb drivers, like a cgsix and an ffb, both will be (native) unit number 0 so with the old code /dev/fb1 would be
unusable.
2005-10-08 00:46:44 +00:00
martin 39f4abb7a9 Remove spurious debug output accidently commited in revision 1.44. 2005-09-28 21:36:23 +00:00
martin 3e94fd1a1c Ignore KBD_IDLE one layer earlier - wskbd does not like it [and complains
in DEBUG kernels], and we already ignored it for raw mode.
2005-09-14 07:32:43 +00:00
jdc f283678f15 Fix cut and paste error in UK keymap. 2005-08-25 06:55:03 +00:00
macallan c3d39ccf44 deal with more than one cgsix, make sure to get things right even when none
of them is the console.
2005-06-28 20:55:21 +00:00
jdc 42990f95a3 Attach multiple displays as fb0, fb1, ... so that X can use multiple heads
via the /dev/fbn abstraction.  Framebuffers are attached in probe order.
However, the previous semantics are kept, so that the detected or forced
console will always be fb0.
2005-06-24 06:40:05 +00:00
thorpej 26d517435c Fix mis-placed newline. 2005-06-21 01:12:17 +00:00
thorpej 2b9a850fd3 Install eeprom.h and idprom.h 2005-06-20 02:01:30 +00:00
thorpej 7adddd1b69 Move common Sun3/Sun4 EEPROM definitions in to <dev/sun/eeprom.h> 2005-06-19 20:23:48 +00:00
thorpej 15adcb96b8 Move common Sun ID PROM definitions into <dev/sun/idprom.h>. 2005-06-19 20:00:28 +00:00
jdc e5ec393002 Add UK keyboard map. 2005-06-18 20:35:36 +00:00
martin f2fa04e658 Use KBD_IDLE instead of magic constants 2005-06-08 10:06:23 +00:00
martin b8aea19a7a Add a key symbol for the "Power" key. 2005-06-08 09:11:09 +00:00
martin 1ee0840364 Do not bother to post "keyboard idle" events to userland when we are
in wskbd raw input mode.
2005-06-07 10:29:08 +00:00
tsutsui 5304f91e7a Add const. 2005-06-04 04:40:57 +00:00
tsutsui 435d547a7c Add const. 2005-06-04 04:37:21 +00:00
tsutsui 296114a214 Add const. 2005-06-03 22:06:24 +00:00
martin b19a082161 Add german keymaps 2005-06-01 14:05:25 +00:00
christos 309409f7e4 add a missing const. 2005-05-31 00:47:54 +00:00
christos f1faf37485 Add const. 2005-05-30 22:17:11 +00:00
christos b494026ec2 remove unneeded casts. 2005-05-30 22:17:03 +00:00
macallan 49deefc7bf fixed a typo in cg6_ras_do_cursor and made using the blitter to draw the
cursor optional when using RASTERCONSOLE
2005-05-22 03:45:08 +00:00
martin 711712f3f3 Fix indentation. 2005-05-17 06:18:31 +00:00
martin 6230b25cf8 Make the raw keyboard code #ifdef WSDISPLAY_COMPAT_RAWKBD only. 2005-05-16 18:28:28 +00:00
martin 4b50e3295a Fix WSDISPLAY_COMPAT_RAWKBD. Also return keyboard types < 4 as SUN instead
of SUN5.
2005-05-16 16:23:57 +00:00
macallan 5d7cb1a721 Added support for virtual consoles, colour and some code to determine the
usable amount of VRAM for XFree86
2005-05-16 14:29:11 +00:00
martin 21d2a323b7 Make ffb take part in the /dev/fbN circus. 2005-05-04 14:38:44 +00:00
macallan 3d2d786653 fixed tab width and formatting 2005-05-01 23:57:03 +00:00
macallan 7d5f292228 Made the Alt key act like STOP when options SPARCBOOK_CMD is #defined to
allow console switching with Alt-Fn because the SPARCbook 3 keyboard has no
STOP
2005-05-01 23:31:36 +00:00
martin 9aa40fe2c9 Add a missing #if to allow non-wscons compilation.
Noted by Juergen Hannken-Illjes.
2005-04-29 10:49:26 +00:00
martin eb7e634f97 Finish support for wskbd @ kbd @ zs/sab for sparc64 consoles.
Based on work from John Heasley and Michael Lorenz.
2005-04-28 15:03:48 +00:00
martin 7839bf7dd6 KNF 2005-03-14 11:50:17 +00:00
martin 585285c6fe Fix a conditional: sparc's will use the raster ops via RASTERCONSOL 2005-03-03 16:01:37 +00:00
martin b402d19851 Make it (at least) compile w/o wsdisplay @ cgsix.
Pointed out by Juergen Hannken-Illjes.
2005-03-03 12:11:49 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
martin 5e69671993 From Michael Lorenz: add screen switching keyboard symbols 2005-02-25 16:04:36 +00:00
martin eefe758c2d From Micahel Lorenz: wsdisplay support for cg6 2005-02-25 16:03:09 +00:00
heas a83cf36dd1 GC SUNKBDDISC & SUNMSDISC line discipline slot definitions. Both are already
entered by ttyldisc_add() calls such that ttyldisc_add chooses the slot anyway.
Double checked by Martin.
2005-02-21 22:43:07 +00:00
heas 242eaf2f4c oops, missed adding a return value for KBD_LAYOUT 2005-02-21 03:46:38 +00:00
heas 3242b332ff Place busy loops around the tsleep()s for keyboard ID and layout codes in
the attach routine.  In autoconf or "cold" state, tsleep does not wait for
a wakeup and my type 5 keyboard takes around 70ms to reset, so the keyboard
ID was being missed (read much later on) and key translation would be wrong.
Thanks Martin, Jochen, and Jason for help.
2005-02-21 03:37:39 +00:00
heas d1400b88f9 Return 0, not return -1, to the serial chip's input routine except when a
keyboard error is received.  For zs(4) and com(4), -1 causes the driver to
flush it's buffer.  This should eliminate missed keyboard codes, such as the
"key repeats forever until another key is hit" problem that happens because
the keyboard idle code gets flushed from the input buffer.
2005-02-20 22:17:28 +00:00
heas 0cb24ff9b9 Fix typo in a comment. 2005-02-20 20:32:45 +00:00
heas 48b3467d80 Add commented about keyboard IDs. No functional change. 2005-02-20 20:04:46 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
bjh21 b1cd280714 Go back to filtering out KBD_IDLE events by default. The Xsun shipped with
NetBSD 2.0 gets confused by them (generating events for keycode 134 when
all keys are released), and even when that's fixed we should keep one release
worth of backward compatibility.
2004-12-31 14:18:35 +00:00