summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* Fix a panic that occurs when resuming. For some reason, sc->cur_scp isnjl2003-10-291-0/+3
| | | | | | NULL. Submitted by: Andrew Thompson <andy@fud.org.nz>
* Convert to cn_name rather than cn_dev.phk2003-09-261-2/+2
|
* Fix the alpha kernel build.jake2003-08-251-0/+2
| | | | Pointy hat to: jake
* Merge pc98 support from sys/pc98/pc98/syscons.c.nyan2003-08-251-0/+21
|
* Use __FBSDID().obrien2003-08-2411-17/+33
| | | | Also some minor style cleanups.
* - Add a font width field to struct scr_stat. Use this instead of '8'.jake2003-08-243-10/+12
| | | | | - Use the values in the video info for the font size and width instead of second guessing.
* - Remember to flip the foreground and background color attributes injake2003-08-241-11/+18
| | | | | | | | | | | | | | gfb_draw if 'flip' is specified. This causes the mouse cut region to be displayed in reverse color so it is visbile. - Use the "other" implementation of gfb_cursor for the creator driver, which doesn't assume there is a hardware cursor. It seems that the hardware cursor that creator provides doesn't display the character under the cursor in reverse colors, so the driver does this manually and uses the hardware cursor for the mouse pointer (which it also works much better for). This is wedged here because it required less hoops than accessing the syscons vtb from inside the video driver, which is needed to read the character and color attributes under the new cursor position.
* Add sparc64 ifdefs.jake2003-08-245-9/+41
|
* Fix endian bugs accessing ioctl arguments that are passed by value.jake2003-08-242-5/+5
|
* Use the clear function provided by the video adapter driver.nyan2003-07-214-34/+7
| | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
* Use SC_NO_CUTPASTE to protect cutpaste variables correctly, fixing thejmallett2003-06-011-2/+4
| | | | | | | -Werror build with such option, but not other combinations. LINT misses this because syscons knobs in LINT turn off a lot of code. Reviewed by: marcel (some time ago)
* Remove unused variable(s).phk2003-05-311-4/+0
| | | | Found by: FlexeLint
* Trivial addition of __amd64__ to the ifdefs for platforms that usepeter2003-05-091-9/+9
| | | | | | i386-style vga console support. Approved by: re
* Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-291-1/+1
| | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Catch up with recent events.mdodd2003-03-271-3/+1
|
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-03-251-1/+1
| | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
* Use repo-copied files in sys/i386/bios.mdodd2003-03-241-1/+1
|
* Don't call sysbeep() in sc_bell() if either duration or pitch is zero.jhb2003-03-241-1/+1
| | | | | | | | | | Otherwise sysbeep() makes an annoying clicking sound on some systems. 'kbdcontrol -b off' just sets the duration and pitch to zero, it doesn't set the QUIET_BELL flag. Tested by: SorAlx <soralx@cydem.zp.ua> PR: misc/41772 MFC after: 1 week
* Make nokqfilter() return the correct return value.phk2003-03-031-1/+1
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-032-27/+19
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-021-6/+6
|
* When DDB is in the kernel, unlock VTY switching so that wemux2003-02-271-0/+4
| | | | | | | | don't end up freezing the box. This makes VTY locking useless in the DDB case but a box which is supposed to be physically secure shouldn't compile DDB anyway. Reviewed by: silence on -audit
* Cleanup of the d_mmap_t interface.mux2003-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386
* Change the console interface to pass a "struct consdev *" instead of aphk2003-02-201-4/+4
| | | | | | | | | dev_t to the method functions. The dev_t can still be found at struct consdev *->cn_dev. Add a void *cn_arg element to struct consdev which the drivers can use for retrieving their softc.
* Add a "hw.syscons.bell" sysctl, which can disable the bell at syscons level.cognet2003-02-201-1/+4
|
* Back out M_* changes, per decision of the TRB.imp2003-02-196-12/+12
| | | | Approved by: trb
* Added dependency on the apm(4) module.ru2003-02-151-0/+1
|
* chase more of the MIN/MAX mess. *sigh*alfred2003-02-021-0/+3
|
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-216-12/+12
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Do not try to work around ``poor (un)sign extension code''robert2002-10-201-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | creation by GCC-2.6.3. Casting pointers to unsigned char to volatile pointers to unsigned char seemed to produce better results on the ia32 architecture with old versions of GCC. The current FreeBSD system compiler GCC-3.2.1 emits better sign extension code for non-volatile variables: volatile char c; int i = c; is compiled to: ... movb -1(%ebp), %al movbsl %al, %eax movl %eax, -8(%ebp) ... char c; int i = c; is compiled to: ... movbsl -1(%ebp), %eax movl %eax, -8(%ebp) ... The same holds for zero-extension of dereferenced pointers to volatile unsigned char. When compiled on alpha or sparc64, the code produced for the two examples above does not differ.
* Make kqueue(2) work for virtual terminals.kbyanc2002-10-171-1/+2
| | | | | PR: 40486 Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl>
* Be consistent about "static" functions: if the function is markedphk2002-09-281-5/+5
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-2/+2
|
* Use machine/limits.h rather than userland limits.h (which may come frompeter2002-08-221-1/+1
| | | | the userland source tree, or even worse: /usr/include)
* Don't use "NULL" when "0" is really meant.archie2002-08-212-5/+5
|
* de-count schistory.c. The handling of NSC was rather bogus here and waspeter2002-08-191-4/+13
| | | | | | | | little more than a place holder, because nothing actually counted the number of 'sc' units to compare it against NSC. A bit more work here is needed so that the scaling of SC_MAX_HISTORY_SIZE and extra_history_size goes up when more sc units are added. But, it does not appear that we can have more than one console yet, so it does not seem particularly urgent.
* 1. Allow information about current history size be retrieved using ioctl(2);sobomax2002-08-191-5/+44
| | | | | 2. modify screen dumpung routine, so that in addition to visible area, it allows to grab any portion of history buffer as well.
* Add a VT_LOCKSWITCH ioctl that disallows vty switching. Somethingdd2002-07-102-0/+15
| | | | | | | | like this can be emulated by VT_SETMODEing to VT_PROCESS and never releasing the vty, but this has a number of problems, most notably that a process must stay resident for the lock to be in effect. Reviewed by: roam, sheldonh
* Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)alfred2002-06-061-1/+1
| | | | the default.
* When a program launched on the local console exits, the shell willmux2002-05-041-1/+2
| | | | | | | | call read() to get the next command, and scread() disables the screensaver. We don't want this behaviour in the sc_saver_keybonly case. Submitted by: Olivier Houchard <doginou@ci0.org>
* Turn on TGA support.obrien2002-04-133-5/+13
| | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com>
* remove blanktime sysctl, this can't be done as easily as it looks.alfred2002-04-051-2/+0
| | | | Requested by: jhb
* Add some functionality via sysctl to syscons.alfred2002-04-051-1/+8
| | | | | | | | | | | hw.syscons.saver.keybonly: used to specify that only input is to interrupt the screensaver. This allows one to run a chatty console app but still have the screen blank out until a key is pressed. There should probably also be an ioctl for this, we'll do that later. hw.syscons.saver.blanktime: exports the screensaver timeout via sysctl. Submitted by: Olivier Houchard <doginou@cognet.ci0.org>
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-012-3/+3
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Remote newly unused variable to unbreak LINT.brooks2002-03-251-1/+1
| | | | Pointy hat to: amorita
* Add new graphical screen saver (dragon_saver).amorita2002-03-235-90/+490
| | | | Add support for NEC PC-9821 PEGC screen (fire/logo/rain/warp_saver).
* Remove __P.alfred2002-03-201-1/+1
|
* Extend CONS_GETINFO ioctl to provide information about size of the currentlysobomax2002-03-161-0/+1
| | | | | | displayed font. MFC after: 2 weeks
* Fixed compilation warnings.ru2002-03-061-0/+2
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
OpenPOWER on IntegriCloud