summaryrefslogtreecommitdiff
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* Fix a panic that occurs when resuming. For some reason, sc->cur_scp isNate Lawson2003-10-291-0/+3
| | | | | | | | | NULL. Submitted by: Andrew Thompson <andy@fud.org.nz> Notes: svn path=/head/; revision=121704
* Convert to cn_name rather than cn_dev.Poul-Henning Kamp2003-09-261-2/+2
| | | | Notes: svn path=/head/; revision=120488
* Fix the alpha kernel build.Jake Burkholder2003-08-251-0/+2
| | | | | | | Pointy hat to: jake Notes: svn path=/head/; revision=119476
* Merge pc98 support from sys/pc98/pc98/syscons.c.Yoshihiro Takahashi2003-08-251-0/+21
| | | | Notes: svn path=/head/; revision=119443
* Use __FBSDID().David E. O'Brien2003-08-2411-17/+33
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119420
* - Add a font width field to struct scr_stat. Use this instead of '8'.Jake Burkholder2003-08-243-10/+12
| | | | | | | | - Use the values in the video info for the font size and width instead of second guessing. Notes: svn path=/head/; revision=119388
* - Remember to flip the foreground and background color attributes inJake Burkholder2003-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. Notes: svn path=/head/; revision=119383
* Add sparc64 ifdefs.Jake Burkholder2003-08-245-9/+41
| | | | Notes: svn path=/head/; revision=119379
* Fix endian bugs accessing ioctl arguments that are passed by value.Jake Burkholder2003-08-242-5/+5
| | | | Notes: svn path=/head/; revision=119378
* Use the clear function provided by the video adapter driver.Yoshihiro Takahashi2003-07-214-34/+7
| | | | | | | Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata) Notes: svn path=/head/; revision=117833
* Use SC_NO_CUTPASTE to protect cutpaste variables correctly, fixing theJuli Mallett2003-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) Notes: svn path=/head/; revision=115595
* Remove unused variable(s).Poul-Henning Kamp2003-05-311-4/+0
| | | | | | | Found by: FlexeLint Notes: svn path=/head/; revision=115549
* Trivial addition of __amd64__ to the ifdefs for platforms that usePeter Wemm2003-05-091-9/+9
| | | | | | | | | i386-style vga console support. Approved by: re Notes: svn path=/head/; revision=114857
* Deprecate machine/limits.h in favor of new sys/limits.h.Alexander Kabaev2003-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> Notes: svn path=/head/; revision=114216
* Catch up with recent events.Matthew N. Dodd2003-03-271-3/+1
| | | | Notes: svn path=/head/; revision=112700
* - Add vm_paddr_t, a physical address type. This is required for systemsJake Burkholder2003-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) Notes: svn path=/head/; revision=112569
* Use repo-copied files in sys/i386/bios.Matthew N. Dodd2003-03-241-1/+1
| | | | Notes: svn path=/head/; revision=112551
* Don't call sysbeep() in sc_bell() if either duration or pitch is zero.John Baldwin2003-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 Notes: svn path=/head/; revision=112537
* Make nokqfilter() return the correct return value.Poul-Henning Kamp2003-03-031-1/+1
| | | | | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers. Notes: svn path=/head/; revision=111821
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-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) Notes: svn path=/head/; revision=111815
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).Dag-Erling Smørgrav2003-03-021-6/+6
| | | | Notes: svn path=/head/; revision=111748
* When DDB is in the kernel, unlock VTY switching so that weMaxime Henrion2003-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 Notes: svn path=/head/; revision=111632
* Cleanup of the d_mmap_t interface.Maxime Henrion2003-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 Notes: svn path=/head/; revision=111462
* Change the console interface to pass a "struct consdev *" instead of aPoul-Henning Kamp2003-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. Notes: svn path=/head/; revision=111194
* Add a "hw.syscons.bell" sysctl, which can disable the bell at syscons level.Olivier Houchard2003-02-201-1/+4
| | | | Notes: svn path=/head/; revision=111162
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-196-12/+12
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Added dependency on the apm(4) module.Ruslan Ermilov2003-02-151-0/+1
| | | | Notes: svn path=/head/; revision=110960
* chase more of the MIN/MAX mess. *sigh*Alfred Perlstein2003-02-021-0/+3
| | | | Notes: svn path=/head/; revision=110235
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-216-12/+12
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Do not try to work around ``poor (un)sign extension code''Robert Drehmel2002-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. Notes: svn path=/head/; revision=105584
* Make kqueue(2) work for virtual terminals.Kelly Yancey2002-10-171-1/+2
| | | | | | | | PR: 40486 Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl> Notes: svn path=/head/; revision=105310
* Be consistent about "static" functions: if the function is markedPoul-Henning Kamp2002-09-281-5/+5
| | | | | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512 Notes: svn path=/head/; revision=104094
* Replace various spelling with FALLTHROUGH which is lint()ablePhilippe Charnier2002-08-251-2/+2
| | | | Notes: svn path=/head/; revision=102412
* Use machine/limits.h rather than userland limits.h (which may come fromPeter Wemm2002-08-221-1/+1
| | | | | | | the userland source tree, or even worse: /usr/include) Notes: svn path=/head/; revision=102290
* Don't use "NULL" when "0" is really meant.Archie Cobbs2002-08-212-5/+5
| | | | Notes: svn path=/head/; revision=102241
* de-count schistory.c. The handling of NSC was rather bogus here and wasPeter Wemm2002-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. Notes: svn path=/head/; revision=102148
* 1. Allow information about current history size be retrieved using ioctl(2);Maxim Sobolev2002-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. Notes: svn path=/head/; revision=102108
* Add a VT_LOCKSWITCH ioctl that disallows vty switching. SomethingDima Dorfman2002-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 Notes: svn path=/head/; revision=99704
* Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)Alfred Perlstein2002-06-061-1/+1
| | | | | | | the default. Notes: svn path=/head/; revision=97918
* When a program launched on the local console exits, the shell willMaxime Henrion2002-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> Notes: svn path=/head/; revision=96033
* Turn on TGA support.David E. O'Brien2002-04-133-5/+13
| | | | | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com> Notes: svn path=/head/; revision=94617
* remove blanktime sysctl, this can't be done as easily as it looks.Alfred Perlstein2002-04-051-2/+0
| | | | | | | Requested by: jhb Notes: svn path=/head/; revision=93902
* Add some functionality via sysctl to syscons.Alfred Perlstein2002-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> Notes: svn path=/head/; revision=93897
* Change the suser() API to take advantage of td_ucred as well as do aJohn Baldwin2002-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@ Notes: svn path=/head/; revision=93593
* Remote newly unused variable to unbreak LINT.Brooks Davis2002-03-251-1/+1
| | | | | | | Pointy hat to: amorita Notes: svn path=/head/; revision=93115
* Add new graphical screen saver (dragon_saver).Akio Morita2002-03-235-90/+490
| | | | | | | Add support for NEC PC-9821 PEGC screen (fire/logo/rain/warp_saver). Notes: svn path=/head/; revision=93011
* Remove __P.Alfred Perlstein2002-03-201-1/+1
| | | | Notes: svn path=/head/; revision=92762
* Extend CONS_GETINFO ioctl to provide information about size of the currentlyMaxim Sobolev2002-03-161-0/+1
| | | | | | | | | displayed font. MFC after: 2 weeks Notes: svn path=/head/; revision=92459
* Fixed compilation warnings.Ruslan Ermilov2002-03-061-0/+2
| | | | Notes: svn path=/head/; revision=91734
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredJohn Baldwin2002-02-271-1/+1
| | | | | | | reference. Notes: svn path=/head/; revision=91406