Move mode_config up one level. DRM drivers call drm_fb_helper_restore_fbdev_mode
	with that lock already held.

Suggested by:	avg

Sponsored by:	The FreeBSD Foundation
Switch to use atomic ops for VT window flags, because some modifications can
come from another thread.

Sponsored by:	The FreeBSD Foundation
Notify terminal about process on current terminal start to use mouse on a
different "mouse level".

Sponsored by:	The FreeBSD Foundation
Revert r258324. There mutexes should be used instead of atomics.

Pointed by:	kib, nwhitehorn

Sponsored by:	The FreeBSD Foundation
Remove atomic_(set|clear)_int from mouse control too. Same as in r258408.

Sponsored by:	The FreeBSD Foundation
Implement minimum ioctls set for framebuffer device.

Sponsored by:	The FreeBSD Foundation
Swap HOME/END for ScrollLocked mode. This fix confusion when End key move
history to begin point.

Sponsored by:	The FreeBSD Foundation