nat
62dd0696ca
Fix splashscreen on resolutions where text is centered.
...
This commit was approved by macallan@
2015-06-01 20:47:59 +00:00
nat
05dec8ff13
Include splash with genfb.
...
splash.o is only included with options SPLASHSCREEN.
splash_image.o target moved to Makefile.kern.inc.
This commit was approved by matt@
2015-05-01 02:00:41 +00:00
jmcneill
89caa1f480
support 24bpp framebuffers
2015-03-20 21:55:46 +00:00
macallan
8cdf481320
handle WSDISPLAYIO_GET_EDID and WSDISPLAYIO_GET_FBINFO only if the bus
...
frontend doesn't ( as in, returns EPASSTHROUGH or doesn't register a
handler )
Now flags passed from things like bcm2835_genfb.c are actually seen by
xf86-video-wsfb again and automatically disabling shadowfb works again,
which results in a major speedup on this kind of hardware.
2014-09-10 07:40:52 +00:00
riastradh
b41195f82b
Add enable/disable polling hooks to genfb_ops.
2014-07-24 21:35:12 +00:00
riastradh
35b50faf49
RCS IDs do not go in header files.
2014-07-23 16:56:49 +00:00
riastradh
5c5158eccf
Do not printf(foobar()). Bad bad bad bad bad!
2014-07-22 15:42:59 +00:00
riastradh
6cb10275d0
Merge riastradh-drm2 to HEAD.
2014-03-18 18:20:35 +00:00
skrll
5e6b2c172a
Provide a wsdisplay_accessops.pollc
...
This makes sure that the screen gets painted properly during early boot
input (e.g. boot -a) on the Raspberry PI.
2014-01-22 18:47:11 +00:00
macallan
da28d6ec38
support WSDISPLAYIO_GET_FBINFO
2013-10-09 17:18:23 +00:00
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