summaryrefslogtreecommitdiffstats
path: root/sys/isa/syscons_isa.c
Commit message (Collapse)AuthorAgeFilesLines
* Move VT switching hack for suspend/resume from bus drivers to syscons.cjkim2011-05-091-127/+0
| | | | | | using event handlers. A different version was Submitted by: Taku YAMAMOTO (taku at tackymt dot homeip dot net)
* When we are not switching VTs, just mark all buffer to be updated.jkim2010-07-151-1/+7
|
* Do not attempt to switch to the same VTs between suspend and resume.jkim2010-05-261-9/+11
|
* Let the first device suspend and the last device resume syscons(4).jkim2010-05-261-10/+5
|
* Fix more style(9) nits that I missed in the previous commit.jkim2010-05-221-5/+4
|
* Fix style(9) nits.jkim2010-05-221-36/+39
|
* Suspend screen updates when the video controller is powered down.jkim2010-05-221-15/+86
|
* Allow syscons to work on amd64 and i386 without any hints:jhb2009-03-051-3/+7
| | | | | | | | - Enable keyboard autodetection by default for ISA syscons attachments. - If there are no syscons hints at all, assume there is a single sc0 device anyway. The console probe will still fail unless a VGA adapter is found. MFC after: 2 weeks
* Further cleanup of sound generation in syscons:phk2008-03-261-9/+1
| | | | | | | | The timer_spkr_*() functions take care of the enabling/disabling of the speaker. Test on the existence of timer_spkr_*() functions, rather than architectures.
* The "free-lance" timer in the i8254 is only used for the speakerphk2008-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | these days, so de-generalize the acquire_timer/release_timer api to just deal with speakers. The new (optional) MD functions are: timer_spkr_acquire() timer_spkr_release() and timer_spkr_setfreq() the last of which configures the timer to generate a tone of a given frequency, in Hz instead of 1/1193182th of seconds. Drop entirely timer2 on pc98, it is not used anywhere at all. Move sysbeep() to kern/tty_cons.c and use the timer_spkr*() if they exist, and do nothing otherwise. Remove prototypes and empty acquire-/release-timer() and sysbeep() functions from the non-beeping archs. This eliminate the need for the speaker driver to know about i8254frequency at all. In theory this makes the speaker driver MI, contingent on the timer_spkr_*() functions existing but the driver does not know this yet and still attaches to the ISA bus. Syscons is more tricky, in one function, sc_tone(), it knows the hz and things are just fine. In the other function, sc_bell() it seems to get the period from the KDMKTONE ioctl in terms if 1/1193182th second, so we hardcode the 1193182 and leave it at that. It's probably not important. Change a few other sysbeep() uses which obviously knew that the argument was in terms of i8254 frequency, and leave alone those that look like people thought sysbeep() took frequency in hertz. This eliminates the knowledge of i8254_freq from all but the actual clock.c code and the prof_machdep.c on amd64 and i386, where I think it would be smart to ask for help from the timecounters anyway [TBD].
* Rename timer0_max_count to i8254_max_count.phk2008-03-261-1/+1
| | | | | Rename timer0_real_max_count to i8254_real_max_count and make it static. Rename timer_freq to i8254_freq and make it a loader tunable.
* Use pause() rather than tsleep() on explicit global dummy variables.jhb2007-02-271-2/+1
|
* Committed the xbox syscons(8)-able console driver.rink2006-03-031-0/+19
| | | | | Reviewed by: arch@ (no comments) Approved by: imp (mentor)
* - Move timerreg.h to <arch>/include and split i8253 specific defines intonyan2005-05-141-12/+7
| | | | | | | | | i8253reg.h, and add some defines to control a speaker. - Move PPI related defines from i386/isa/spkr.c into ppireg.h and use them. - Move IO_{PPI,TIMER} defines into ppireg.h and timerreg.h respectively. - Use isa/isareg.h rather than <arch>/isa/isa.h. Tested on: i386, pc98
* Converge towards i386. I originally resisted creating <machine/pc/bios.h>peter2004-09-241-8/+7
| | | | | | | | | | | | because it was mostly irrelevant - except for the silly BIOS_PADDRTOVADDR etc macros. Along the way of working around this, I missed a few things. * Make syscons properly inherit the bios capslock/shiftlock/etc state like i386 does. Note that we cannot inherit the bios key repeat rate because that requires a bios call (which is impossible for us). * Give syscons the ability to beep on amd64. Oops. While here, make bios.c compile and add it to files.amd64.
* Remove atdevbase and replace it's remaining uses with direct references tojhb2004-06-101-0/+1
| | | | KERNBASE instead.
* Fix a panic that occurs when resuming. For some reason, sc->cur_scp isnjl2003-10-291-0/+4
| | | | | | NULL. Submitted by: Andrew Thompson <andy@fud.org.nz>
* - Use the new resource_disabled() helper function to see if devices arejhb2003-07-021-3/+1
| | | | | | | | | | | | disabled. - Change the apm driver to match the acpi driver's behavior by checking to see if the device is disabled in the identify routine instead of in the probe routine. This way if the device is disabled it is never created. Note that a few places (ips(4), Alpha SMP) used "disable" instead of "disabled" for their hint names, and these hints must be changed to "disabled". If this is a big problem, resource_disabled() can always be changed to honor both names.
* Use __FBSDID().obrien2003-06-111-2/+3
|
* Make the SC_NO_SUSPEND_VTYSWITCH kernel option available as a loadermdodd2003-01-151-9/+19
| | | | tunable and sysctl (hw.syscons.sc_no_suspend_vtswitch).
* Fix compile with options SC_NO_SUSPEND_VTYSWITCH.jhb2002-10-171-0/+2
|
* Add new syscons option SC_NO_SUSPEND_VTYSWITCH.iwasaki2002-10-171-0/+4
| | | | This disables vty switch during suspend/resume.
* Add suspend/resume method to syscons. This switch the modeiwasaki2002-08-251-0/+35
| | | | | (text <-> graphics) by changing current vty during ACPI sleep/wakeup (maybe APM also).
* Remove the resume method. It is not necessary any more, becauseyokota2001-06-301-7/+0
| | | | | keyboard drivers have it now... MFC after: 4 weeks
* Fix warning:peter2001-06-151-1/+1
| | | | 163: passing arg 4 of `resource_string_value' from incompatible pointer type
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-081-1/+2
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* Add device_identify methods so that we do not need thepeter2000-06-281-17/+20
| | | | | hint.sc.0.at=isa and hint.vga.0.at=isa hints in order for these to probe/attach.
* This is a temporary bandaid to get vidconsole working again withoutpeter2000-06-151-4/+5
| | | | | | | | | | | options USERCONFIG being present. Due to the lack of early boot hints neither sio or sc would succeed the console probe. If USERCONFIG was active, there was a second cninit() after userconfig had run and that happened to make the console selection work. If you left out USERCONFIG, you would end up with no console at all. :-( This needs a proper fix, especially when sc looses the "at isa" hint. But for now, this works.
* - Fix SC_ALT_MOUSE_IMAGE; don't blink the mouse cursor.yokota2000-03-311-0/+1
| | | | - Fix non-destructive, underline text cursor.
* Use config's conditional compilation rather than using #ifdefs that makepeter2000-01-291-6/+3
| | | | | modular compilation harder. I'm doing this because people seem to like cut/pasting examples of bad practices in existing code.
* Make the mouse cursor char code configurable via the CONS_MOUSECTLyokota2000-01-121-9/+9
| | | | | | ioctl. By popular demand.
* Change isa_get/set_flags() to device_get/set_flags().dfr1999-09-071-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Merge the cons.c and cons.h to the best of my ability. alpha may orphk1999-08-091-2/+2
| | | | may not compile, I can't test it.
* Declare the correct size of softc and fix sc_get_softc().yokota1999-06-241-4/+4
|
* The second phase of syscons reorganization.yokota1999-06-221-5/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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 <naddy@mips.rhein-neckar.de> - 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 (n_hibma@FreeBSD.ORG) 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: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx. - 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.
* No support for pnp yet.dfr1999-05-301-1/+5
|
* Move the declaration of the interrupt type from the driver structuredfr1999-05-081-2/+1
| | | | to the BUS_SETUP_INTR call.
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-1/+4
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* Update the alpha port to use the new syscons.dfr1999-01-231-0/+80
Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> (partly)
OpenPOWER on IntegriCloud