summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdt/simplefb.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable scrollback in simplefb(4).fcambus2020-05-281-1/+2
| | | | OK kettenis@
* change wsdisplay attribute type from long to uint32_tjsg2020-05-251-5/+5
| | | | | | | | miod explained it was initially a long as it was thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. suggested and reviewed by miod@
* rename wsdisplay alloc_attr() to pack_attr()jsg2020-05-251-3/+3
| | | | | | | | Suggested by John Carmack. miod agrees a rename would make sense and explained it was initially thought drivers may need to allocate storage but in practice they don't need more than 32 bits for an attribute. ok mpi@
* The Pinebook Pro's u-boot seems to add a zero-length framebufferpatrick2020-01-221-5/+6
| | | | | | | | node, which essentially means that there is none. Make sure we don't attach in that case, so that we don't panic while trying to map it. ok kettenis@
* WSDISPLAYIO_GTYPE is u_int not intjsg2019-12-251-2/+2
|
* Add display brightness hooks.kettenis2019-10-131-1/+10
| | | | ok matthieu@, deraadt@, patrick@
* Add an interface that allows drivers to claim a framebuffer and checkkettenis2018-08-271-1/+5
| | | | | | | | | whether another driver has already claimed a framebuffer. Use this in radeondrm(4) and simplefb(4) to prevent the latter from attaching if radeondrm(4) is attached to the hardware that provides the framebuffer set up by the firmware. ok mlarkin@
* Display color depth alongside resolution when attaching simplefb(4).fcambus2018-07-311-2/+2
| | | | OK kettenis@, deraadt@
* Map framebuffer into userland as non-cachable (but normal) memory. We stillkettenis2017-12-181-2/+4
| | | | | | | | | map the framebuffer as device memory in the kernel. Using mismatched memory attributes like this is discouraged (and we should probably fix this at some point) but this particular case is well-defined and the potential side-effects should not matter for thus use-case. ok patrick@
* Add glass console support for arm64. This uses the "stdout-path" propertykettenis2017-08-271-33/+127
| | | | | | | | | of the /chosen node in the device tree to decide whether the framebuffer should be used as the console device. Most, if not all, machines will have that set to use a serial console and there is no easy way yet to change that. ok jsg@
* Add simplefb(4), a driver to support the framebuffer set up by the firmwarekettenis2017-01-031-0/+243
on some platforms that use device trees. Works on Allwinner (sunxi) and should also work on Raspberry Pi (broadcom) armv7 platforms. ok jsg@, visa@