aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* YAMFC: merge updated keyboard driver code:Kazutaka YOKOTA1999-05-091-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refined internal interface in keyboard drivers so that: 1. the side effect of device probe is kept minimal, 2. polling mode function is added, 3. and new ioctl and configuration options are added (see below). - Added new ioctl: KDSETREPEAT Set keyboard typematic rate. There has existed an ioctl command, KDSETRAD, for the same purpose. However, KDSETRAD is dependent on the AT keyboard. KDSETREPEAT provides more generic interface. KDSETRAD will still be supported in the atkbd driver. - Added new configuration options: ATKBD_DFLT_KEYMAP Specify a keymap to be used as the default, built-in keymap. (There has been undocumented options, DKKEYMAP, UKKEYMAP, GRKEYMAP, SWKEYMAP, RUKEYMAP, ESKEYMAP, and ISKEYMAP to set the default keymap. These options are now gone for good. The new option is more general.) KBD_DISABLE_KEYMAP_LOADING Don't allow the user to change the keymap. - And other minor fixes and updates. merged files and revisions --------------------------------------------------------------------- usr.sbin/kbdcontrol/kbdcontrol.c 1.22, 1.23, 1.24, 1.25 usr.sbin/vidcontrol/vidcontrol.c 1.27 sys/alpha/include/console.h 1.42, 1.43, 1.44 sys/dev/kbd/kbd.c 1.4 sys/dev/kbd/kbdreg.h 1.3 sys/dev/kbd/kbdtables.h 1.45 sys/dev/kbd/atkbd.c 1.5, 1.8 sys/dev/kbd/atkbdreg.h 1.2 sys/dev/syscons/syscons.c 1.295, 1.296, 1.299 sys/dev/usb/ukbd.c 1.9, 1.10, 1.11, 1.12, 1.13 sys/i386/conf/LINT 1.565 sys/i386/conf/options.i386 1.109 sys/i386/conf/files.i386 1.228 sys/i386/include/console.h 1.45 sys/i386/isa/atkbd_isa.c 1.3 sys/i386/isa/pcvt/pcvt_kbd.c 1.28, 1.29 sys/isa/atkbd_isa.c 1.2 Notes: svn path=/stable/3/; revision=46784
* MFC: reorganize macrosDag-Erling Smørgrav1999-04-171-5/+1
| | | | Notes: svn path=/stable/3/; revision=45746
* MFC:Kazutaka YOKOTA1999-02-072-4/+4
| | | | | | | | | | | | | - Don't assume the line length in the video memory is always the same as the screen width. - Store the current video mode information in the `video_adapter' struct. - The size of the `v_offscreensize' field in the VESA mode information block is u_int16, not u_int8. Oked by: jkh Notes: svn path=/stable/3/; revision=43723
* MFC: pull down the splash screen when someone is about to read fromKazutaka YOKOTA1999-01-311-7/+2
| | | | | | | the keyboard (rev 1.294). Notes: svn path=/stable/3/; revision=43469
* This commit was manufactured by cvs2svn to create branch 'RELENG_3'.cvs2svn1999-01-2110-1720/+0
| | | | Notes: svn path=/stable/3/; revision=42951
* sysconsKazutaka YOKOTA1999-01-193-82/+193
| | | | | | | | | | | | | | | | | | | | - Bring down the splash screen when a vty is opened for the first time. - Make sure the splash screen/screen saver is stopped before switching vtys. - Read and save initial values in the BIOS data area early. VESA BIOS may change BIOS data values when switching modes. - Fix missing '&' operator. - Move ISA specific part of driver initialization to syscons_isa.c. atkbd - kbdtables.h is now in /sys/dev/kbd. all - Adjust for forthcoming alpha port. Submitted by: dfr Notes: svn path=/head/; revision=42831
* Retrun EAGAIN if the current video mode is a graphics mode.Kazutaka YOKOTA1999-01-173-6/+6
| | | | Notes: svn path=/head/; revision=42749
* - Examine the error code from the screen saver and act accordingly.Kazutaka YOKOTA1999-01-171-18/+28
| | | | | | | | | | | | | 0 success EAGAIN try again later other don't call this screen saver again - Test flags consistently to examine the status of the screen saver. scrn_blanked: the screen saver is running scp->status & SAVER_RUNNING: the saver is running in this vty - Correctlyu preserve status flag bits in set/restore_scrn_saver_mdoe(). Notes: svn path=/head/; revision=42748
* Move the definition of set_origin from logo_saver.c to saver.h.Dag-Erling Smørgrav1999-01-161-3/+1
| | | | Notes: svn path=/head/; revision=42720
* Get conditional compilation right so that unnecessary referenceKazutaka YOKOTA1999-01-131-8/+10
| | | | | | | | to splash-relatec call won't be made if there is no splash pseudo device. Notes: svn path=/head/; revision=42610
* The first stage of console driver reorganization: activate newKazutaka YOKOTA1999-01-1113-1308/+1051
| | | | | | | | | | | | | | | | keyboard and video card drivers. Because of the changes, you are required to update your kernel configuration file now! The files in sys/dev/syscons are still i386-specific (but less so than before), and won't compile for alpha and PC98 yet. syscons still directly accesses the video card registers here and there; this will be rectified in the later stages. Notes: svn path=/head/; revision=42504
* Remove a hard-coded table of kernel console I/O functions exportedKazutaka YOKOTA1999-01-071-6/+14
| | | | | | | | | | | | | from sc, vt and sio drivers. Use instead a linker_set to collect them. Staticize ??cngetc(), ??cnputc(), etc functions in sc and vt drivers. We must still have siocngetc() and siocnputc() as globals because they are directly referred to by i386-gdbstub.c :-( Oked by: bde Notes: svn path=/head/; revision=42373
* Use M_VGA_VG320 if M_VESA_CG800x600 is not available. It looks ugly inDag-Erling Smørgrav1999-01-011-23/+31
| | | | | | | | | low-res, but it works... Submitted by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=42236
* Here's one for the terminally melancholic amongst us.Dag-Erling Smørgrav1998-12-311-0/+136
| | | | Notes: svn path=/head/; revision=42205
* Compile without warnings.Dag-Erling Smørgrav1998-12-311-4/+4
| | | | Notes: svn path=/head/; revision=42203
* Make the VESA KLD module work!Kazutaka YOKOTA1998-12-301-3/+3
| | | | Notes: svn path=/head/; revision=42179
* One more for the road: Chuck the friendly floating daemon. RequiresDag-Erling Smørgrav1998-12-282-0/+511
| | | | | | | VESA_800x600 to run. Notes: svn path=/head/; revision=42120
* Save the palette in case syscons doesn't restore it properly.Dag-Erling Smørgrav1998-12-281-3/+6
| | | | | | | Fix a minor overflow. Notes: svn path=/head/; revision=42119
* Finally give FreeBSD a graphical screensaver. It isn't much, but it works,Dag-Erling Smørgrav1998-12-271-0/+141
| | | | | | | | | | and can serve as a template for further efforts. Consider this my (belated) Christmas present to the Project :) Requested by: jkh Notes: svn path=/head/; revision=42108
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticArchie Cobbs1998-12-072-8/+4
| | | | | | | and local variables, goto labels, and functions declared but not defined. Notes: svn path=/head/; revision=41591
* * Fix a couple of places in the device pager where an address wasDoug Rabson1998-11-081-2/+2
| | | | | | | | | | | | | | truncated to 32 bits. * Change the calling convention of the device mmap entry point to pass a vm_offset_t instead of an int for the offset allowing devices with a larger memory map than (1<<32) to be supported on the alpha (/dev/mem is one such). These changes are required to allow the X server to mmap the various I/O regions used for device port and memory access on the alpha. Notes: svn path=/head/; revision=41004
* Simple update to make these work as kld and preload modules.Peter Wemm1998-11-046-84/+34
| | | | Notes: svn path=/head/; revision=40885
* Don't update the screen while the cursor shape is being changedKazutaka YOKOTA1998-11-031-1/+5
| | | | | | | | by the user-land program. PR: i386/8344 Notes: svn path=/head/; revision=40836
* Initialize isa_devtab entries for interrupt handlers in individualBruce Evans1998-10-221-2/+4
| | | | | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato Notes: svn path=/head/; revision=40565
* Restore static of sc_flags.Andrey A. Chernov1998-10-011-2/+3
| | | | | | | Restore set_destructive_cursor prototype. Notes: svn path=/head/; revision=39874
* Yet another round of fixes for the VESA support code.Kazutaka YOKOTA1998-10-014-21/+9
| | | | | | | | | | | | | | | | | - Express various sizes in bytes, rather than Kbytes, in the video mode and adapter information structures. - Fill 0 in the linear buffer size field if the linear frame buffer is not available. - Remove SW_VESA_USER ioctl. It is still experimetal and was not meant to be released. - Fix missing cast operator. - Correctly handle pointers returned by the VESA BIOS. The pointers may point to the area either in the BIOS ROM or in the buffer supplied by the caller. - Set the destructive cursor at the right moment. Notes: svn path=/head/; revision=39858
* Fix destructive cursor shape after text mode switch.Andrey A. Chernov1998-09-293-34/+37
| | | | | | | This is only for standard modes, I don't check vesa modes yet. Notes: svn path=/head/; revision=39742
* Cosmetic changes:Kazutaka YOKOTA1998-09-262-23/+21
| | | | | | | | | | | | | | | | | | - there were too many global variables (there still are :-). - the data section was bloated by explicit initializations of static variables to 0 (only fixed the recently changed ones). - WRAPHIST() had silly parentheses around foo->bar. - the comment about inline functions was stale. - the comment about Userconfig presumes too much about the boot environment. - `i' was reused confusingly in scioctl(). - the declaration of `butmap' used a deprecated K&R misfeature. - the initializeation of `butmap' had an unnecessary line break. - `unsigned char' was not consistently (mis)spelled as u_char. - English was poor in a comment in videoio.c. Submitted by: bde Notes: svn path=/head/; revision=39668
* - Use `u_long cmd' ioctl arg.Kazutaka YOKOTA1998-09-263-17/+9
| | | | | | | | - Fix some external function declaration. Submitted by: bde Notes: svn path=/head/; revision=39667
* Cosmetic change: adjust copyright notice.Kazutaka YOKOTA1998-09-252-34/+28
| | | | Notes: svn path=/head/; revision=39643
* Fix and update for VESA BIOS support in syscons.Kazutaka YOKOTA1998-09-234-58/+201
| | | | | | | | | | | | | | | | | | | - Handle pixel (raster text) mode properly. - Clear screen and paint border right. - Paint text attribute (colors). - Fix off-by-one errors. - Add some sanity checks. - Fix some function prototypes. - Add some comment lines. - Define generic text mode numbers so that the user can just give "80x25", "80x60", "132x25"..., rather than "VGA_xxx", to `vidcontrol' to change the current video mode. `vidoio.c' and `vesa.c' will map these numbers to real video mode numbers appropriate and available with the given video hardware. I believe this will be useful to make syscons more portable across archtectures. Notes: svn path=/head/; revision=39591
* Fix the sreensavers so the work again with the new syscons & friends.Søren Schmidt1998-09-176-33/+45
| | | | | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> Notes: svn path=/head/; revision=39428
* Add VESA support to syscons.Søren Schmidt1998-09-1510-1390/+1221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Kazu writes: The VESA support code requires vm86 support. Make sure your kernel configuration 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_800x600 The VESA_800x600 mode is a raster display mode. The 80x25 text will be displayed on the 800x600 screen. Useful for some laptop computers. vidcontrol accepts the new `-i <info>' option, where <info> must be either `adapter' or `mode'. When the `-i adapter' option is given, vidcontrol will print basic information (not much) on the video adapter. When the `-i mode' option is specified, vidcontrol will list video modes which are actually supported by the video adapter. Submitted by: Kazutaka YOKOTA yokota@FreeBSD.ORG Notes: svn path=/head/; revision=39287
* Make /dev/vga a softlink to /dev/ttyv0 under DEVFS using /etc/rc.devfsSøren Schmidt1998-09-141-3/+1
| | | | | | | | Remove the hack from syscons that added a /dev/vga node in DEVFS it broke root acces on ttyv0 because dev_mkdb screwed up. Notes: svn path=/head/; revision=39162
* Added D_TTY to the cdevswitch flags for all tty drivers. This is requiredBruce Evans1998-08-231-9/+11
| | | | | | | | | | | | for the Lite2 fix for always returning EIO in dead_read(). Cleaned up the cdevswitch initializers for all tty drivers. Removed explicit calls to ttsetwater() from all (tty) drivers. ttsetwater() is now called centrally for opens, not just for parameter changes. Notes: svn path=/head/; revision=38485
* Fix one forgotten instance of \n to \rSøren Schmidt1998-08-181-2/+2
| | | | Notes: svn path=/head/; revision=38421
* Changed \n to \r in the mouse cutbuffer, this makes pine & EmacsSøren Schmidt1998-08-141-4/+4
| | | | | | | | | behave better when using the cut&paste functionality. Submitted by: Barry Bierbauch <pivrnec@vszbr.cz> Notes: svn path=/head/; revision=38313
* A workaround for screen flicker; eliminate some I/O access to the VGAKazutaka YOKOTA1998-08-101-1/+17
| | | | | | | | | | | | | | | chip. It has been observed that the problem is most apparent: a) in notebook computers, b) and/or in the systems with C&T video chips. Define the new configuration option SC_BAD_FLICKER in the kernel configuration file to remove outb()/outw() calls in question. Notes: svn path=/head/; revision=38216
* The daemon, snake and star savers should refuse to load if the currentKazutaka YOKOTA1998-08-063-3/+12
| | | | | | | | video mode is the VESA mode, because they cannot work properly under the VESA mode support as in the current form. Notes: svn path=/head/; revision=38137
* 1. Reorganized screen saver related code so that both the LKM screenKazutaka YOKOTA1998-08-032-146/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | saver and splash screen can all work properly with syscons. Note that the splash screen option (SC_SPLASH_SCREEN) does not work yet, as it requires additional code from msmith. - Reorganized the splash screen code to match the latest development in this area. - Delay screen switch in `switch_scr()' until the screen saver is stopped, if one is running, - Start the screen saver immediately, if any, when the `saver' key is pressed. (There will be another commit for `kbdcontrol' to support this keyword in the keymap file.) - Do not always stop the screen saver when mouse-related ioctls are called. Stop it only if the mouse is moved or buttons are clicked; don't stop it if any other mouse ioctls are called. 2. Added provision to write userland screen savers. (Contact me if you are interested in writing one.) - Added CONS_IDLE, CONS_SAVERMODE, and CONS_SAVERSTART ioctls to support userland screen savers. 3. Some code clean-ups. Notes: svn path=/head/; revision=38052
* - When the system is shut down, switch to the vty0 if possible.Kazutaka YOKOTA1998-08-031-3/+17
| | | | | | | | | - Don't try to ring bell when system is going down. Beacuse the clock code is about to be stopped, the timeout routine won't be called anymore. Notes: svn path=/head/; revision=38047
* Fix the bug which always reallocated the cut buffer wheneverKazutaka YOKOTA1998-08-031-7/+18
| | | | | | | | | the screen mode is changed even if another vty has larger size. Reallocate the buffer only when the new screen size is larger than the current cut buffer size. Notes: svn path=/head/; revision=38046
* Don't accept the blank time value, if it is too big.Kazutaka YOKOTA1998-08-031-2/+4
| | | | | | | PR: bin/6188 Notes: svn path=/head/; revision=38045
* - Add new bell types: "quiet.normal" and "quiet.visual".Kazutaka YOKOTA1998-08-032-4/+12
| | | | | | | | | | | | | | | When bell is of "quiet" types, the console won't ring (or flush) if the ringing process is in a background vty. PR: i386/2853 - Modify the escape sequence 'ESC[=%d;%dB' so that bell pitch and duration are set in hertz and msecs by kbdcontrol(1). There will be a corresponding kbdcontrol patch. PR: bin/6037 Submitted by: Kouichi Hirabayashi (kh@eve.mogami-wire.co.jp) Notes: svn path=/head/; revision=38043
* Changed %n to %r in devfs name format strings. %n has almost gone away.Bruce Evans1998-07-151-2/+2
| | | | Notes: svn path=/head/; revision=37683
* Don't pretend to support ix86's with 16-bit ints by using longsBruce Evans1998-07-141-8/+8
| | | | | | | | just to ensure 32-bit variables. Doing so broke i386's with 64-bit longs. Notes: svn path=/head/; revision=37639
* Add the ability to suspend as well as hibernate to the system. ThisWarner Losh1998-07-061-2/+21
| | | | | | | | | | is the kernel part of my commits, the userlevel stuff will be done in a separate commit. Add the ability to suspend as well as hibernate to syscons. Create a new virtual key like hibernate for suspend. Update apm_bios.h to define more apm bios goodies. Notes: svn path=/head/; revision=37414
* Don't refer to mouse_info.u.datea.[xyz] while processing MOUSE_BUTTON_EVENTKazutaka YOKOTA1998-06-241-5/+2
| | | | | | | | | ioctl. These fields don't have valid values for this ioctl. PR: kern/6928 Submitted by: Bill Fenner <fenner@parc.xerox.com> Notes: svn path=/head/; revision=37136
* Add a symlink from /dev/vga to /dev/ttyv0 when using DEVFSSteve Price1998-06-131-1/+3
| | | | | | | | | | for programs like doscmd. PR: 6920 Submitted by: Luoqi Chen <luoqi@chen.ml.org> Notes: svn path=/head/; revision=36948
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-2/+2
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735