193881 Commits

Author SHA1 Message Date
ray
0d3746779c o Update drivers according to fb_info structure changes.
o Switch drm_fb_helper to be simple framebuffer provider.

Sponsored by:	The FreeBSD Foundation
2013-10-22 20:27:30 +00:00
ray
1fa77b0bab Turn imx51_ipuv3 into simple frambuffer provider.
Sponsored by:	The FreeBSD Foundation
2013-10-22 14:50:28 +00:00
ray
ab33d99898 Enable to build vt_fb driver and generic framebuffer.
Sponsored by:	The FreeBSD Foundation
2013-10-22 14:47:09 +00:00
ray
f310654abd Add generic/simple framebuffer.
Sponsored by:	The FreeBSD Foundation
2013-10-22 14:45:35 +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
445adb5a17 o Do not blank screen on window resize.
o Force resize for first window (usually console).
o Inform user on driver changes.
o Reverse priority. Bigger now better.

Sponsored by:	The FreeBSD Foundation
2013-10-22 14:37:20 +00:00
ray
340eef3034 Reverse priority. Bigger now better.
Sponsored by:	The FreeBSD Foundation
2013-10-22 14:32:42 +00:00
ray
c3dff1dbba Add new terminal method terminal_set_winsize_blank. Same as terminal_set_winsize,
but with optional blank. That will allow us to see early messages after attach
more specific driver.

Sponsored by:	The FreeBSD Foundation
2013-10-22 14:00:46 +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
ray
6ed638c56a Don't forget to clean terminal window memory. But colors makes more smiles.
Sponsored by:	The FreeBSD Foundation
2013-10-22 13:53:58 +00:00
ray
b93850258e Declare framebuffer's register/unregister EVENTHANDLERs.
Sponsored by:	The FreeBSD Foundation
2013-10-22 13:50:54 +00:00
ray
a3b3cbda1a o Add simplified structure describing framebuffer object.
o Add EVENTHANDLER wrapper to register/unregister framebuffer w/o depend on new
framebuffer methods.

Sponsored by:	The FreeBSD Foundation
2013-10-22 13:47:25 +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
1fd948f6c9 Swap Red and Blue (too much red in dialog(1)).
Sponsored by:	The FreeBSD Foundation
2013-10-15 13:45:37 +00:00
ray
754499eca9 Don't forget to include colors/vt_termcolors.h too.
Sponsored by:	The FreeBSD Foundation
2013-10-15 13:24:10 +00:00
ray
6223ebf08b Use generated color map.
Sponsored by:	The FreeBSD Foundation
2013-10-15 13:18:39 +00:00
ray
d8cbe1290b Partially revert accidentally committed #if from r256528.
Sponsored by:	The FreeBSD Foundation
2013-10-15 13:07:24 +00:00
ray
c707904b4a Use generated color map.
Sponsored by:	The FreeBSD Foundation
2013-10-15 12:58:41 +00:00
ray
e286ea9165 Enable vt_termcolors.c to build with vt(9).
Sponsored by:	The FreeBSD Foundation
2013-10-15 12:56:56 +00:00
ray
811d5b66f4 Add helper to generate color map.
Sponsored by:	The FreeBSD Foundation
2013-10-15 12:54:47 +00:00
ray
7dfc0e9866 Rename bitblt method to bitbltchr.
Sponsored by:	The FreeBSD Foundation
2013-10-15 12:31:31 +00:00
ray
fff7931dbb Rename bitblt method to bitbltchr.
Sponsored by:	The FreeBSD Foundation
2013-10-15 12:29:36 +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
e8e02f9f16 Even one char important. Add '&' to its place. 2013-10-11 14:23:54 +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
e371e1fde3 svn-commit.tmp 2013-10-11 12:08:40 +00:00
ray
7f97f9cd91 Add newcons driver for i.MX515.
Sponsored by:	The FreeBSD Foundation
2013-10-11 11:59:50 +00:00
dumbbell
cc50f124ba drm/radeon: Fill "struct fb_info" for Newcons
This is a first step to make Newcons work with "radeonkms". However,
this is very unstable at the moment. Especially, the locking change in
radeon_pm.c is probably not correct.
2013-10-10 12:44:00 +00:00
ray
da824c4a2b MFC @r256148. 2013-10-08 14:02:35 +00:00
markj
4e3872abc7 Initialize and free the DTrace taskqueue in the dtrace module load/unload
handlers rather than in the dtrace device open/close methods. The current
approach can cause a panic if the device is closed which the taskqueue
thread is active, or if a kernel module containing a provider is unloaded
while retained enablings are present and the dtrace device isn't opened.

Submitted by:	gibbs (original version)
Reviewed by:	gibbs
Approved by:	re (glebius)
MFC after:	2 weeks
2013-10-08 12:56:46 +00:00
ray
eb8d243e76 Forget about vt_history.c.
Sponsored by:	The FreeBSD Foundation
2013-10-08 12:42:52 +00:00
ray
f00dd51802 vt_history.c is not required anymore.
Sponsored by:	The FreeBSD Foundation
2013-10-08 12:41:58 +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
ray
79af4b6f20 VT want keyboard too.
Sponsored by:	The FreeBSD Foundation
2013-10-08 12:03:40 +00:00
ray
5f5f17c829 o Rename methods according to "consdev style".
o Add cngrab/cnungrab methods.
o Allow later console attach with termcn_cnregister().

Sponsored by:	The FreeBSD Foundation
2013-10-08 12:01:17 +00:00
ray
36deab7b3b Enable fill of fb_info for i915kms driver.
Sponsored by:	The FreeBSD Foundation
2013-10-08 11:51:20 +00:00
ray
b11a0aa768 Add Newcons KMS driver. Based on drm_fb_helper functionality.
TODO: Should be moved to separate framebuffer interface.

Sponsored by:	The FreeBSD Foundation
2013-10-08 11:48:58 +00:00
ray
a1a002ce5c Add fb_info structure definition. Drivers should fill it to give access to
framebuffer.

Sponsored by:	The FreeBSD Foundation
2013-10-08 11:33:24 +00:00
adrian
66c01d36f3 Add channel survey support to the AR5212 HAL.
The AR5212 series of MACs implement the same channel counters as the
later 11n chips - except, of course, the 11n specific counter (extension
channel busy.)

This allows users of these NICs to use 'athsurvey' to see how busy their
current channel is.

Tested:

* AR5212, AR2413 NICs, STA mode

Approved by:	re@ (gleb)
2013-10-08 11:28:59 +00:00
glebius
f1b97b5667 When destination parameter is missing, exit with a clear synopsis,
instead of writing to kernel and printing EINVAL description.

PR:		bin/181532
Submitted by:	Kurt Jaeger <fbsd-pr opsec.eu>
Approved by:	re (hrs)
2013-10-08 08:16:17 +00:00
markj
41bda5b66a Fix an inverted check for the master user in "camcontrol security -U".
PR:		bin/182703
Submitted by:	Scott Burns <scott@bqinternet.com>
Approved by:	re (gjb)
MFC after:	3 days
2013-10-08 04:16:22 +00:00
delphij
038b37b952 Improve lzjb decompress performance by reorganizing the code
to tighten the copy loop.

Submitted by:	Denis Ahrens <denis h3q com>
MFC after:	2 weeks
Approved by:	re (gjb)
2013-10-08 01:38:24 +00:00
dim
2b5c0ebf70 Fix kernel build on amd64 after r256118, since the machine/md_var.h
header is not implicitly included there.  So include it explicitly.

Approved by:	re (delphij)
Pointy hat to:	dim
MFC after:	3 days
X-MFC-With:	r256118
2013-10-07 22:30:03 +00:00
jmg
ec9fa283ad don't assert on bad args, instead return an error..
Since so many programs don't check return value, always NUL terminate
the buf...

fix rounding when using base 1024 (the bug that started it all)...

add a set of test cases so we can make sure that things don't break
in the future...

Thanks to Clifton Royston for testing and the test program...

Approved by:	re (hrs, glebius)
MFC after:	1 week
2013-10-07 22:22:57 +00:00
delphij
6d24a0120e Reduce priority of host key exists message in sshd startup
script to info.

Approved by:	re (gjb)
2013-10-07 21:39:42 +00:00
kib
51259986cf Make isci(4) loadable.
Reviewed by:	jimharris
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Approved by:	re (gjb)
2013-10-07 20:48:24 +00:00
jhb
e6fe74304b Add manpages for VOP_ADVISE() and VOP_ALLOCATE().
Approved by:	re (gjb)
2013-10-07 20:30:05 +00:00
jhb
3c0e2034d2 Remove a stale comment.
Approved by:	re (gjb)
2013-10-07 20:29:31 +00:00
eadler
d3037ce4b7 Add the latest NetBSD and FreeBSD releases.
Approved by:	re (glebius)
2013-10-07 19:27:54 +00:00