syscons: clean up empty lines in .c and .h files
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
sys/dev: further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.
show more ...
Remove pc98 support completely.I thank all developers and contributors for pc98.Relnotes: yes
Fix sos@'s name.MFC after: 2 weeks
Don't malloc a buffer while holding the prison0 mutex. Instead, use a loopwhere we figure out the hostname length under the lock, malloc the bufferwith the lock dropped, then recheck the length un
Don't malloc a buffer while holding the prison0 mutex. Instead, use a loopwhere we figure out the hostname length under the lock, malloc the bufferwith the lock dropped, then recheck the length under the lock and loop againif the buffer is now too small.Tested by: Norbert Koch nkoch demig deMFC after: 3 days
Rename the host-related prison fields to be the same as the host.*parameters they represent, and the variables they replaced, instead ofabbreviated versions of them.Approved by: bz (mentor)
Place hostnames and similar information fully under the prison system.The system hostname is now stored in prison0, and the global variable"hostname" has been removed, as has the hostname_mtx mutex
Place hostnames and similar information fully under the prison system.The system hostname is now stored in prison0, and the global variable"hostname" has been removed, as has the hostname_mtx mutex. Jails mayhave their own host information, or they may inherit it from theparent/system. The proper way to read the hostname is viagetcredhostname(), which will copy either the hostname associated withthe passed cred, or the system hostname if you pass NULL. The systemhostname can still be accessed directly (and without locking) atprison0.pr_host, but that should be avoided where possible.The "similar information" referred to is domainname, hostid, andhostuuid, which have also become prison parameters and had theirassociated global variables removed.Approved by: bz (mentor)
Commit step 1 of the vimage project, (network stack)virtualization work done by Marko Zec (zec@).This is the first in a series of commits over the courseof the next few weeks.Mark all uses of g
Commit step 1 of the vimage project, (network stack)virtualization work done by Marko Zec (zec@).This is the first in a series of commits over the courseof the next few weeks.Mark all uses of global variables to be virtualizedwith a V_ prefix.Use macros to map them back to their global names fornow, so this is a NOP change only.We hope to have caught at least 85-90% of what is neededso we do not invalidate a lot of outstanding patches again.Obtained from: //depot/projects/vimage-commit2/...Reviewed by: brooks, des, ed, mav, julian, jamie, kris, rwatson, zec, ... (various people I forgot, different versions) md5 (with a bit of help)Sponsored by: NLnet Foundation, The FreeBSD FoundationX-MFC after: neverV_Commit_Message_Reviewed_By: more people than the patch
Introduce a new lock, hostname_mtx, and use it to synchronize accessto global hostname and domainname variables. Where necessary, copyto or from a stack-local buffer before performing copyin() or
Introduce a new lock, hostname_mtx, and use it to synchronize accessto global hostname and domainname variables. Where necessary, copyto or from a stack-local buffer before performing copyin() orcopyout(). A few uses, such as in cd9660 and daemon_saver, remainunder-synchronized and will require further updates.Correct a bug in which a failed copyin() of domainname would leavedomainname potentially corrupted.MFC after: 3 weeks
Replace explicit calls to video methods with their respective variantsimplemented with macros. This patch improves code readability. Reasoningbehind vidd_* is a sort of "video discipline".List of
Replace explicit calls to video methods with their respective variantsimplemented with macros. This patch improves code readability. Reasoningbehind vidd_* is a sort of "video discipline".List of macros is supposed to be complete--all methods of video_switchought to have their respective macros from now on.Functionally, this code should be no-op. My intention is to leave currentbehaviour of touched code as is.No objections: rwatsonSilence on: freebsd-current@Approved by: cognet
- Mask an underline attribute on the pc98 console. It enables to use the same color on the pc98 and the others.- Remove old epson note support.
Back out M_* changes, per decision of the TRB.Approved by: trb
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
Fixed warnings.
Added PC-98 supports.Obtained from: FreeBSD(98) 4.0R-Rev01
This is the 3rd stage of syscons code reorganization.- Split terminal emulation code from the main part of the driver sothat we can have alternative terminal emulator modules if we like inthe fut
This is the 3rd stage of syscons code reorganization.- Split terminal emulation code from the main part of the driver sothat we can have alternative terminal emulator modules if we like inthe future. (We are not quite there yet, though.)- Put sysmouse related code in a separate file, thus, simplifying themain part of the driver.As some files are added to the source tree, you need to run config(8)before you compile a new kernel next time.You shouldn't see any functional change by this commit; this is onlyinternal code reorganization.
$Id$ -> $FreeBSD$
The second phase of syscons reorganization.- Split syscons source code into manageable chunks and reorganize some of complicated functions.- Many static variables are moved to the softc structu
The second phase of syscons reorganization.- Split syscons source code into manageable chunks and reorganize some of complicated functions.- Many static variables are moved to the softc structure.- Added a new key function, PREV. When this key is pressed, the vty immediately before the current vty will become foreground. Analogue to PREV, which is usually assigned to the PrntScrn key. PR: kern/10113 Submitted by: Christian Weisgerber <[email protected]>- Modified the kernel console input function sccngetc() so that it handles function keys properly.- Reorganized the screen update routine.- VT switching code is reorganized. It now should be slightly more robust than before.- Added the DEVICE_RESUME function so that syscons no longer hooks the APM resume event directly.- New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING, SC_NO_HISTORY and SC_NO_SYSMOUSE. Various parts of syscons can be omitted so that the kernel size is reduced. SC_PIXEL_MODE Made the VESA 800x600 mode an option, rather than a standard part of syscons. SC_DISABLE_DDBKEY Disables the `debug' key combination. SC_ALT_MOUSE_IMAGE Inverse the character cell at the mouse cursor position in the text console, rather than drawing an arrow on the screen. Submitted by: Nick Hibma ([email protected]) SC_DFLT_FONT makeoptions "SC_DFLT_FONT=_font_name_" Include the named font as the default font of syscons. 16-line, 14-line and 8-line font data will be compiled in. This option replaces the existing STD8X16FONT option, which loads 16-line font data only.- The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c.- The video driver provides a set of ioctl commands to manipulate the frame buffer.- New kernel configuration option: VGA_WIDTH90 Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These modes are mot always supported by the video card. PR: i386/7510 Submitted by: [email protected] and [email protected].- The header file machine/console.h is reorganized; its contents is now split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h (another new file). machine/console.h is still maintained for compatibility reasons.- Kernel console selection/installation routines are fixed and slightly rebumped so that it should now be possible to switch between the interanl kernel console (sc or vt) and a remote kernel console (sio) again, as it was in 2.x, 3.0 and 3.1.- Screen savers and splash screen decoders Because of the header file reorganization described above, screen savers and splash screen decoders are slightly modified. After this update, /sys/modules/syscons/saver.h is no longer necessary and is removed.
Followup to yokota's last commit: - va_mode_flags -> va_info.vi_flags - scanline width may be different from screen width
Retrun EAGAIN if the current video mode is a graphics mode.
The first stage of console driver reorganization: activate newkeyboard and video card drivers.Because of the changes, you are required to update your kernelconfiguration file now!The files in s
The first stage of console driver reorganization: activate newkeyboard and video card drivers.Because of the changes, you are required to update your kernelconfiguration file now!The files in sys/dev/syscons are still i386-specific (but less so thanbefore), and won't compile for alpha and PC98 yet.syscons still directly accesses the video card registers here andthere; this will be rectified in the later stages.
Simple update to make these work as kld and preload modules.
Fix the sreensavers so the work again with the new syscons & friends.Submitted by: Kazutaka YOKOTA <[email protected]>
Add VESA support to syscons.Kazu writes:The VESA support code requires vm86 support. Make sure your kernelconfiguration file has the following line. options "VM86"If you want to statica
Add VESA support to syscons.Kazu writes:The VESA support code requires vm86 support. Make sure your kernelconfiguration file has the following line. options "VM86"If you want to statically link the VESA support code to the kernel,add the following option to the kernel configuration file. options "VESA"The vidcontrol command now accepts the following video mode names:VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600The VESA_800x600 mode is a raster display mode. The 80x25 text willbe displayed on the 800x600 screen. Useful for some laptop computers.vidcontrol accepts the new `-i <info>' option, where <info> must beeither `adapter' or `mode'. When the `-i adapter' option is given,vidcontrol will print basic information (not much) on the videoadapter. When the `-i mode' option is specified, vidcontrol willlist video modes which are actually supported by the video adapter.Submitted by: Kazutaka YOKOTA [email protected]
The daemon, snake and star savers should refuse to load if the currentvideo mode is the VESA mode, because they cannot work properly under theVESA mode support as in the current form.
12