Commit Graph

193 Commits

Author SHA1 Message Date
martin
b59e36a073 Move definition of the 'fb' attribute to global scope and make machfb@pci
require it. On most archs this does not change anything, but on sparc{,64}
it allows linking of kernels that have machfb as the only framebuffer.
Solution suggested by Quentin.
2006-05-28 08:57:53 +00:00
jmmv
aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
macallan
313752a79e add a framebuffer type for generic PCI devices 2006-04-13 13:30:25 +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
thorpej
07c30f824f Use device_private(). 2006-03-30 16:09:28 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
macallan
11d027c528 Make external mice work on Tadpole SPARCbook
The tadpole microcontroller sets an additional bit in frame headers from
an external mouse which caused our driver to discard the frame - now we
just ignore the bit.
2006-03-10 20:25:45 +00:00
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