#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
221708 |
|
09-May-2011 |
jkim |
Move VT switching hack for suspend/resume from bus drivers to syscons.c using event handlers. A different version was
Submitted by: Taku YAMAMOTO (taku at tackymt dot homeip dot net)
|
#
208563 |
|
26-May-2010 |
nyan |
Reduce diffs against syscons_isa.c. No functional changes.
|
#
189445 |
|
06-Mar-2009 |
nyan |
MFi386: part of 189421
- 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.
|
#
178007 |
|
08-Apr-2008 |
nyan |
Always set the bell_pitch to 800. This catch up with the sysbeep() argument changing.
|
#
177650 |
|
26-Mar-2008 |
phk |
Further cleanup of sound generation in syscons:
The timer_spkr_*() functions take care of the enabling/disabling of the speaker.
Test on the existence of timer_spkr_*() functions, rather than architectures.
|
#
177642 |
|
26-Mar-2008 |
phk |
The "free-lance" timer in the i8254 is only used for the speaker 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].
|
#
177631 |
|
26-Mar-2008 |
phk |
Rename timer0_max_count to i8254_max_count. 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.
|
#
167085 |
|
27-Feb-2007 |
jhb |
Use pause() rather than tsleep() on explicit global dummy variables.
|
#
158359 |
|
08-May-2006 |
nyan |
Remove unneeded include.
|
#
146211 |
|
14-May-2005 |
nyan |
- Move timerreg.h to <arch>/include and split i8253 specific defines into 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
|
#
146049 |
|
10-May-2005 |
nyan |
Change a directory layout for pc98. - 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
|
#
121801 |
|
31-Oct-2003 |
nyan |
Merged from sys/isa/syscons_isa.c revision 1.24.
|
#
117167 |
|
02-Jul-2003 |
jhb |
- Use the new resource_disabled() helper function to see if devices are 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.
|
#
109303 |
|
15-Jan-2003 |
nyan |
Merged from sys/isa/syscons_isa.c revision 1.21.
|
#
105712 |
|
22-Oct-2002 |
nyan |
Merged from sys/isa/syscons_isa.c revision 1.20.
|
#
105320 |
|
17-Oct-2002 |
nyan |
Merged from sys/isa/syscons_isa.c revision 1.19.
|
#
103379 |
|
16-Sep-2002 |
nyan |
Merged from sys/isa/syscons_isa.c revision 1.18.
|
#
79702 |
|
14-Jul-2001 |
nyan |
Merged from the following changes.
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
|
#
78812 |
|
26-Jun-2001 |
nyan |
Merged from sys/isa/syscons_isa.c revision 1.16.
|
#
67370 |
|
20-Oct-2000 |
kato |
Used kbio.h and consio.h instead of machine/console.h.
|
#
64394 |
|
08-Aug-2000 |
nyan |
Changed default cursor shape to non-blink mode.
Submitted by: Tomokazu HARADA <tkhara@osk4.3web.ne.jp>
|
#
62952 |
|
11-Jul-2000 |
nyan |
Merge from the following changes.
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
|
#
61742 |
|
17-Jun-2000 |
kato |
Merged from sys/isa/syscons_isa.c revision 1.13.
|
#
58779 |
|
29-Mar-2000 |
nyan |
Merge from the following changes.
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
|
#
56337 |
|
20-Jan-2000 |
kato |
Synced with the sc driver in the sys/dev/syscons directory.
Submitted by: yokota
|
#
51056 |
|
07-Sep-1999 |
kato |
Change isa_get/set_flags() to device_get/set_flags().
Submitted by: dfr
|
#
50477 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
49558 |
|
09-Aug-1999 |
phk |
Merge the cons.c and cons.h to the best of my ability. alpha may or may not compile, I can't test it.
|
#
48516 |
|
03-Jul-1999 |
kato |
Added copyright.
Pointed out by: yokota
|
#
48188 |
|
24-Jun-1999 |
kato |
Merge with sys/isa/syscons_isa.c and sys/dev/syscons/syscons.c revisions 1.6 and 1.308, respectively.
Pointed-out by: yokota
|
#
48187 |
|
24-Jun-1999 |
kato |
PC98 part of the second phase of syscons reorganization.
Submitted by: yokota
|