jmcneill
cae0b98748
for WSDISPLAYIO_SMODE, if the bus ioctl handler returns EPASSTHROUGH, dont treat it as an error
2013-01-10 22:06:59 +00:00
jmcneill
1f7593441b
aprint_verbose -> aprint_debug
2013-01-09 01:57:59 +00:00
macallan
f8ec5c70cf
in 32 bit colour assume RGB ordering, allow override using a device property
2012-04-12 22:36:15 +00:00
phx
4bfe961c80
On 8-bit screens only enable font anti-aliasing when the cmap_callback
...
property is defined. It is needed for a suitable R3G3B2 color map.
Ok by releng@
2012-02-07 18:48:19 +00:00
macallan
ee402ab400
use rasops_init(0, 0)
2012-01-11 16:12:38 +00:00
macallan
5eec1b0f55
support anti-aliased fonts in 8 bit, generate an appropriate colour map
2012-01-04 20:18:28 +00:00
macallan
6cec21fb86
if the cursor row passed in a device property doesn't fit on the screen just
...
ignore it and clear the screen
2011-12-28 18:37:58 +00:00
macallan
011cff9259
support anti-aliased fonts in 32bit colour
2011-12-22 04:53:43 +00:00
macallan
a4ce3513c3
use callbacks that match the ioctl() interface to control backlight
2011-07-13 22:47:29 +00:00
macallan
0d5bf7c96e
some steps to make multiple instances work:
...
- don't bail if we're not the console. If we get the right paramters there is no
reason not to work
- move wsdisplay_accessops into the softc
- call wsdisplay_cnattach only if we're the console
2011-06-02 02:33:42 +00:00
macallan
951a3ca29c
fix build for LP32
...
thanks to uebayasi@
2011-03-08 04:47:10 +00:00
macallan
e13a6ad672
look for a 'virtual_address' property and use it as fb address
2011-03-08 03:16:30 +00:00
jmcneill
e6a9aa35b1
genfb_enable/disable_polling only matters if genfb is the console screen,
...
so make it a noop if it's not
2011-02-22 01:26:14 +00:00
jmcneill
3836fe16df
call vcons_hard_switch to switch to the console screen when entering polling
...
mode, makes ddb-from-X work with genfb on x86
2011-02-18 13:56:58 +00:00
phx
1f91c03368
Fixed NULL-pointer dereferencing when a mode-callback is not defined.
2011-02-12 17:15:27 +00:00
jmcneill
f24dfbb13c
add vcons_{enable,disable}_polling and genfb_{enable,disable}_polling
...
functions, to switch between intr and polling modes when VCONS_DRAW_INTR
is defined
2011-02-09 13:19:18 +00:00
jmcneill
7a38046c74
add a 'setmode' callback to genfb and use it to setup write-combining
...
MTRRs on x86 whenever switching to WSDISPLAYIO_MODE_EMUL
2011-02-08 10:52:56 +00:00
jmcneill
5efc85b67e
- add support for using compressed images as splash images
...
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
2011-02-06 23:25:16 +00:00
macallan
4fbc897fbb
finish device_t-ification
2010-10-07 07:53:53 +00:00
macallan
699e821c1d
add support for backlight control via machine dependent callbacks
2010-10-06 02:24:35 +00:00
macallan
b8dd6fd56b
make use of a shadow framebuffer optional, use VCONS_DONT_READ by default
2010-08-31 02:49:17 +00:00
dyoung
c1b390d493
A pointer typedef entails trading too much flexibility to declare const
...
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
ahoka
0f279dbbae
Restore splashscreen support with genfb.
...
genfb patch from Pierre Pronchery, other small changes to make it
compile by me.
Closes PR kern/42605.
XXX doesnt work in 8bit, probably a cmap issue
2010-02-22 05:55:10 +00:00
dyoung
3022acc4eb
Expand PMF_FN_* macros.
2010-01-08 19:42:11 +00:00
jmcneill
8aa0a1bfb1
Expose genfb_restore_palette and allow MD code to specify PMF callbacks.
2009-08-24 11:03:44 +00:00
macallan
c55b7d3677
call vcons_replay_msgbuf()
2009-08-20 02:51:27 +00:00
macallan
2b5246200f
add rasops15 too for completeness
2009-08-06 16:26:51 +00:00
macallan
69c048e118
pull in rasops16 - needed for gdium support
2009-08-06 16:24:43 +00:00
christos
d43c4580f1
s/long/intptr_t/
2009-02-21 17:24:47 +00:00
dogcow
f2437436f6
sparc complains "cast to pointer from integer of different size"; cast the
...
int to (void *)(long).
2009-02-20 08:04:15 +00:00
jmcneill
90c7459808
If the bus glue provides an ioctl handler, don't return before we have a
...
chance to perform generic handling in the WSDISPLAYIO_SMODE case.
ok macallan
2009-02-20 00:08:00 +00:00
jmcneill
3bc515352f
Use kmem_alloc instead of malloc for shadowfb
2009-02-17 17:01:41 +00:00
jmcneill
28f60a7907
Print the physical address if available instead of a virtual address.
2009-02-17 02:41:11 +00:00
jmcneill
d994f000f0
Add clear-screen and cursor-row properties to allow genfb to persist
...
screen state from the MD console driver.
2009-02-17 02:19:33 +00:00
jmcneill
e04f5ff1b4
Provide callbacks so MD code can explicitly prevent genfb from matching;
...
works around vga/genfb deathmatches.
2009-02-16 22:24:40 +00:00
jmcneill
ec798a6e6c
Introduce genfb_ops genfb_borrow callback to allow the bus frontend to
...
lend mappings to drm.
2009-02-15 18:41:49 +00:00
jmcneill
a71612a2f8
Provide a stub genfb_cnattach for md code to call to give a hint to the
...
bus driver's match function to return a higher confidence (so it can
beat out vga(4), for example). genfb needs-flag so md code can determine
if the genfb driver is present.
2009-02-14 20:33:58 +00:00
martin
3028e483e4
Convert to new 2 clause license
2008-04-29 06:53:00 +00:00
cegger
3069a1f144
use aprint_*_dev and device_xname
2008-04-05 15:50:49 +00:00
phx
aec8e8230f
missing newline in message
2008-03-09 21:33:17 +00:00
phx
7bca1efe39
Do not attach genfb when the frame buffer is not flagged as being console
...
(e.g. when a serial console is used).
Approved by macallan.
2008-03-09 20:32:30 +00:00
macallan
852515ae5f
deal with a bug in the Sun Raptor's firmware which reports
...
linebytes == width even in 32bit colour
2007-12-17 15:38:31 +00:00
macallan
7e95514fdc
sprinkle \n
2007-11-19 04:00:39 +00:00
macallan
f59f835fa4
don't panic if we're not finding all the properties we need. Just complain
...
quietly and return.
2007-11-05 16:57:46 +00:00
ad
a2a3828545
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
2007-10-19 11:59:34 +00:00
jmmv
d2525db73d
Clear the screen during initialization so that the first messages are not
...
printed over "unknown garbage" (e.g. the Mac OS desktop). Agreed with
macallan@.
2007-08-30 15:40:41 +00:00
jmmv
088cadb7c3
Print some details of the framebuffer configuration during attach.
...
OK'ed by macallan@.
2007-08-30 13:36:27 +00:00
jmmv
90ad1537c2
Properly initialize the palette registers by calling the colormap callback
...
on all of them. A typo made it only initialize half of them. OK'ed by
macallan@.
2007-08-30 13:32:18 +00:00
macallan
a3b32b42df
use bool with prop_dictionary_get_bool()
2007-08-24 19:12:21 +00:00
macallan
84b4b152a9
fix typo - fbsize is /height/ * stride. Doh.
2007-08-05 03:23:02 +00:00