35 Commits

Author SHA1 Message Date
rpaulo
bde4329af1 Need to include machine/fdt.h. 2014-04-05 23:20:49 +00:00
ray
e6a9754cb8 o Add new vd_driver method to do bitblt with mask, named vd_maskbitbltchr.
o Move vd_bitbltchr vga's driver method to vd_maskbitbltchr.
o Implement new vd_bitbltchr method for vga driver. (It do single write for 8
	pixels, have to be a bit faster).

MFC after:	7 days
Sponsored by:	The FreeBSD Foundation
2014-03-28 22:04:27 +00:00
emaste
d2c99117cd Update EFI framebuffer handoff from loader
Sponsored by:	The FreeBSD Foundation
2014-03-27 19:43:38 +00:00
emaste
653eb62793 Use the existence of module metadata to indicate framebuffer presence 2014-03-14 19:37:37 +00:00
ray
9727f28ccf Add efifb driver. Driver uses the data passed by UEFI compatible loader/BIOS and
enable to use framebuffer created by those loader.
2014-03-05 14:37:45 +00:00
ray
5136f041de Implement vd_drawrect and vd_setpixel for vt(9)'s VGA driver.
Sponsored by:	The FreeBSD Foundation
2014-02-07 12:39:58 +00:00
ray
d10ea36fa3 Add two new vt(9) driver methods: vd_drawrect and vd_setpixel.
Implement vd_drawrect and vd_setpixel for vt_fb driver.

Sponsored by:	The FreeBSD Foundation
2014-02-06 15:12:44 +00:00
jhibbits
773a89d478 Micro-optimize 8-bit blanking. This is the same as in ofw_syscons.
Reviewed by:	ray
MFC after:	1 week
2014-01-29 15:50:01 +00:00
ray
ff1baa3a0a Style(9) fix.
No functional changes.

Sponsored by:	The FreeBSD Foundation
2014-01-20 23:36:16 +00:00
ray
10e896d479 Update xboxfb driver to actual state.
NOTE: Not tested.

Sponsored by:	The FreeBSD Foundation
2014-01-15 12:35:28 +00:00
ray
c23c0c9f00 Restore VGA mode on vt switch. It fix VESA mode left by Xorg on exit.
Sponsored by:	The FreeBSD Foundation
2014-01-08 14:42:26 +00:00
rmh
cf5ac2bc67 Fix build of vt_xboxfb. 2014-01-08 14:36:35 +00:00
ray
4cd7151fa0 o Add virtual terminal mmap request handler.
o Forward termianl framebuffer ioctl to fbd.
o Forward terminal mmap request to fbd.
o Move inclusion of sys/conf.h to vt.h.

Sponsored by:	The FreeBSD Foundation
2013-12-23 18:09:10 +00:00
nwhitehorn
31e401ca81 Fix build. 2013-11-30 22:49:26 +00:00
nwhitehorn
9cdeadcae2 Work around false positive errors from GCC. 2013-11-30 22:46:43 +00:00
ray
2edf4bd36a Update vd_bitbltchr_t type to handle operation mask (to not touch pixels which
is not defined in mask) and bpl (bytes per source line).
Only vt_fb driver handle handle bpl yet.
Add protector for case when blitting image can be drawn partially out of screen,
like mouse cursor.

Mouse cursor and its movements works fine, copy/paste not yet.

Sponsored by:	The FreeBSD Foundation
2013-11-11 13:25:49 +00:00
ray
89ea1ab094 Handle suspend/resume. Switch to console window before suspend, switch back on
resume. That fix issue with broken Xorg image after resume.
Fix some style whilst here.

Sponsored by:   The FreeBSD Foundation
2013-11-07 21:08:52 +00:00
ray
147123a2c6 Early console with FDT/OFW support.
TODO - done PPC, SPARC64 and FDT-less variants.

Sponsored by:	The FreeBSD Foundation
2013-11-05 23:09:36 +00:00
ray
1e2852a5da Export vt_fb VT driver methods to allow reuse.
Sponsored by:	The FreeBSD Foundation
2013-11-05 23:01:57 +00:00
nwhitehorn
5e9e540ff9 Get colors right on mac framebuffers. 2013-10-27 15:14:27 +00:00
ray
34e507fb2b Remove not done and not used driver for intel video.
Sponsored by:	The FreeBSD Foundation
2013-10-25 21:57:03 +00:00
ray
b5d885c5f9 Use copy method which maybe defined by framebuffer provider, but not just
memmove.

Sponsored by:	The FreeBSD Foundation
2013-10-23 19:45:14 +00:00
ray
280385557c Add VT(9) driver for generic framebuffer.
Sponsored by:	The FreeBSD Foundation
2013-10-22 14:39:32 +00:00
ray
79df61c265 Hardware specific drivers have bigger priority (over VGA for example).
Sponsored by:	The FreeBSD Foundation
2013-10-22 13:56:42 +00:00
nwhitehorn
b3603dddc9 Use vt_generate_vga_palette() instead of a hard-coded mapping. 2013-10-17 12:58:40 +00:00
nwhitehorn
e017f126bd Sync with ofw_syscons.c: provide support for IBM framebuffers like that in
the QEMU pSeries emulated platform.
2013-10-17 12:15:21 +00:00
ray
7ea5fdc791 o Rename bitblt method to bitbltchr, since it used to copy char with bg/fg colors
from font table, but not bitmap copy.
o Fix small mistake in comment.

Sponsored by:	The FreeBSD Foundation
2013-10-15 12:28:24 +00:00
ray
2324fc717d Fix off-by-one-huge-fb-line copy-pasted to every driver.
TODO: defaulting to single implementation for all FB devices.

Sponsored by:	The FreeBSD Foundation
2013-10-11 13:07:31 +00:00
ray
c7a97e97fa o Implement history buffer.
o Join history buffer with screen buffer. Same type of things.
o Reimplement buffer as an array of rows. Make it circular, so no overflow
	tracking.
o Implement VT_PROCESS mode. Locking of VT switching by owner process.
o Add debug and deadtimer sysctls. deadtimer - defaulting to 15 seconds, time
	to wait process answer in VT_PROCESS mode, to do VT switch in case when
	process hang.
o Implement later console attach.
o Fix (partially yet) keyboard allocation.
o Add drivers priority. Disallow to replace KMS driver with VGA.
o Add ability to resize terminals.

Sponsored by:	The FreeBSD Foundation
2013-10-08 12:40:04 +00:00
marcel
87eebffb87 Add support fot ia64. This means that ia64, for the first time ever,
has a working non-serial console!

I'm pretty sure this doesn't work on the SGI Altix 350, but that's
ok for now. Lot's of things don't work there...
2012-04-14 00:27:50 +00:00
nwhitehorn
4f9511a9d0 Checkpoint SPARC support. This seems to inexplicably crash fairly early on
somewhere outside of ofwfb.c. It is in no way clear why.
2012-01-21 22:18:33 +00:00
nwhitehorn
49e7de5660 Make ofwfb static framebuffer much smaller by actually reading how you
are supposed to do this kind of thing.
2012-01-21 18:54:19 +00:00
nwhitehorn
1fa9866b98 Add a vt(4) framebuffer for Open Firmware linear framebuffer devices (i.e.
all graphics on PowerPC Apple systems). This will also work on some sparc64
graphics hardware with a small amount of modification.
2012-01-21 17:59:50 +00:00
ed
558236aac4 Chase KPI change in vga driver. 2011-03-23 06:31:45 +00:00
ed
98e93f6b12 Readd the vt(4) driver and corresponding tools. 2011-03-22 21:31:31 +00:00