aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98/cbus/syscons_cbus.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove pc98 support completely.Yoshihiro Takahashi2017-01-281-202/+0
| | | | | | | | | I thank all developers and contributors for pc98. Relnotes: yes Notes: svn path=/head/; revision=312910
* Move VT switching hack for suspend/resume from bus drivers to syscons.cJung-uk Kim2011-05-091-54/+0
| | | | | | | | | using event handlers. A different version was Submitted by: Taku YAMAMOTO (taku at tackymt dot homeip dot net) Notes: svn path=/head/; revision=221708
* Reduce diffs against syscons_isa.c. No functional changes.Yoshihiro Takahashi2010-05-261-29/+34
| | | | Notes: svn path=/head/; revision=208563
* MFi386: part of 189421Yoshihiro Takahashi2009-03-061-2/+4
| | | | | | | | - 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. Notes: svn path=/head/; revision=189445
* Always set the bell_pitch to 800. This catch up with the sysbeep() argumentYoshihiro Takahashi2008-04-081-4/+1
| | | | | | | changing. Notes: svn path=/head/; revision=178007
* Further cleanup of sound generation in syscons:Poul-Henning Kamp2008-03-261-8/+0
| | | | | | | | | | | The timer_spkr_*() functions take care of the enabling/disabling of the speaker. Test on the existence of timer_spkr_*() functions, rather than architectures. Notes: svn path=/head/; revision=177650
* The "free-lance" timer in the i8254 is only used for the speakerPoul-Henning Kamp2008-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]. Notes: svn path=/head/; revision=177642
* Rename timer0_max_count to i8254_max_count.Poul-Henning Kamp2008-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. Notes: svn path=/head/; revision=177631
* Use pause() rather than tsleep() on explicit global dummy variables.John Baldwin2007-02-271-2/+1
| | | | Notes: svn path=/head/; revision=167085
* Remove unneeded include.Yoshihiro Takahashi2006-05-081-1/+0
| | | | Notes: svn path=/head/; revision=158359
* - Move timerreg.h to <arch>/include and split i8253 specific defines intoYoshihiro Takahashi2005-05-141-10/+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 Notes: svn path=/head/; revision=146211
* Change a directory layout for pc98.Yoshihiro Takahashi2005-05-101-1/+1
| | | | | | | | | | | | - Move MD files into <arch>/<arch>. - Move bus dependent files into <arch>/<bus>. Rename some files to more suitable names. Repo-copied by: peter Discussed with: imp Notes: svn path=/head/; revision=146049
* Merged from sys/isa/syscons_isa.c revision 1.24.Yoshihiro Takahashi2003-10-311-0/+4
| | | | Notes: svn path=/head/; revision=121801
* - Use the new resource_disabled() helper function to see if devices areJohn Baldwin2003-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. Notes: svn path=/head/; revision=117167
* Merged from sys/isa/syscons_isa.c revision 1.21.Yoshihiro Takahashi2003-01-151-8/+19
| | | | Notes: svn path=/head/; revision=109303
* Merged from sys/isa/syscons_isa.c revision 1.20.Yoshihiro Takahashi2002-10-221-0/+2
| | | | Notes: svn path=/head/; revision=105712
* Merged from sys/isa/syscons_isa.c revision 1.19.Yoshihiro Takahashi2002-10-171-0/+4
| | | | Notes: svn path=/head/; revision=105320
* Merged from sys/isa/syscons_isa.c revision 1.18.Yoshihiro Takahashi2002-09-161-0/+35
| | | | Notes: svn path=/head/; revision=103379
* Merged from the following changes.Yoshihiro Takahashi2001-07-141-7/+0
| | | | | | | | | | | sys/dev/syscons/scvgarndr.c revision 1.11 sys/dev/syscons/scvtb.c revision 1.8 sys/dev/syscons/syscons.c revisions 1.361, 1.363, 1.364, 1.365 and 1.366 sys/isa/atkbd_isa.c revision 1.9 sys/isa/syscons_isa.c revision 1.17 Notes: svn path=/head/; revision=79702
* Merged from sys/isa/syscons_isa.c revision 1.16.Yoshihiro Takahashi2001-06-261-1/+1
| | | | Notes: svn path=/head/; revision=78812
* Used kbio.h and consio.h instead of machine/console.h.KATO Takenori2000-10-201-2/+2
| | | | Notes: svn path=/head/; revision=67370
* Changed default cursor shape to non-blink mode.Yoshihiro Takahashi2000-08-081-1/+1
| | | | | | | Submitted by: Tomokazu HARADA <tkhara@osk4.3web.ne.jp> Notes: svn path=/head/; revision=64394
* Merge from the following changes.Yoshihiro Takahashi2000-07-111-17/+20
| | | | | | | | | | | | sys/conf/files.i386 1.321 sys/dev/syscons/syscons.c 1.343 sys/i386/isa/spkr.c 1.46 sys/isa/fd.c 1.183 and 1.185 sys/isa/syscons_isa.c 1.14 sys/isa/vga_isa.c 1.18 Notes: svn path=/head/; revision=62952
* Merged from sys/isa/syscons_isa.c revision 1.13.KATO Takenori2000-06-171-4/+5
| | | | Notes: svn path=/head/; revision=61742
* Merge from the following changes.Yoshihiro Takahashi2000-03-291-6/+3
| | | | | | | | | | | | | | | File Revision sys/conf/files.i386 1.303 and 1.304 sys/dev/kbd/atkbd.c 1.23 sys/dev/syscons/scterm-sc.c 1.2 sys/dev/syscons/scvgarndr.c 1.5 sys/dev/syscons/scvtb.c 1.5 sys/dev/syscons/syscons.c 1.335 sys/isa/syscons_isa.c 1.11 sys/isa/vga_isa.c 1.17 Notes: svn path=/head/; revision=58779
* Synced with the sc driver in the sys/dev/syscons directory.KATO Takenori2000-01-201-9/+9
| | | | | | | Submitted by: yokota Notes: svn path=/head/; revision=56337
* Change isa_get/set_flags() to device_get/set_flags().KATO Takenori1999-09-071-2/+2
| | | | | | | Submitted by: dfr Notes: svn path=/head/; revision=51056
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Merge the cons.c and cons.h to the best of my ability. alpha may orPoul-Henning Kamp1999-08-091-2/+2
| | | | | | | may not compile, I can't test it. Notes: svn path=/head/; revision=49558
* Added copyright.KATO Takenori1999-07-031-1/+25
| | | | | | | Pointed out by: yokota Notes: svn path=/head/; revision=48516
* Merge with sys/isa/syscons_isa.c and sys/dev/syscons/syscons.cKATO Takenori1999-06-241-4/+4
| | | | | | | | | revisions 1.6 and 1.308, respectively. Pointed-out by: yokota Notes: svn path=/head/; revision=48188
* PC98 part of the second phase of syscons reorganization.KATO Takenori1999-06-241-0/+193
Submitted by: yokota Notes: svn path=/head/; revision=48187