1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00
freebsd/sys/sparc64/sparc64
Poul-Henning Kamp e465985885 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].
2008-03-26 20:09:21 +00:00
..
ata_machdep.c The Sun disk label only uses 16-bit fields for cylinders, heads and 2008-02-11 21:40:22 +00:00
autoconf.c
bus_machdep.c - Const'ify the bus_stream_asi and bus_type_asi arrays. 2008-03-24 17:57:01 +00:00
cache.c - Do as the comment in pmap_bootstrap() suggests and flush all non-locked 2008-03-09 15:53:34 +00:00
cheetah.c - Do as the comment in pmap_bootstrap() suggests and flush all non-locked 2008-03-09 15:53:34 +00:00
clock.c The "free-lance" timer in the i8254 is only used for the speaker 2008-03-26 20:09:21 +00:00
counter.c
db_disasm.c
db_hwwatch.c
db_interface.c
db_trace.c Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
dump_machdep.c Add a wrapper function that bound checks writes to the dump device. 2008-01-28 19:04:07 +00:00
eeprom.c If clock_ct_to_ts fails to convert time time from the real time clock, 2007-07-23 09:42:32 +00:00
elf_machdep.c - Fix the handling of R_SPARC_OLO10, which is a bit of a special case 2007-10-16 19:17:48 +00:00
exception.S o Revamp the sparc64 interrupt code in order to be able to interface 2007-09-06 19:16:30 +00:00
gdb_machdep.c
genassym.c - Move all of the PS_ flags into either p_flag or td_flags. 2007-09-17 05:31:39 +00:00
identcpu.c - Also identify USIIIi+, USIV and USIV+ CPUs. 2007-05-20 13:47:36 +00:00
in_cksum.c
interrupt.S Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
intr_machdep.c Simplify the interrupt code a bit: 2008-03-17 22:42:01 +00:00
iommu.c - Fix some style bugs. 2008-03-09 17:09:15 +00:00
locore.S
machdep.c Add a new 'why' argument to kdb_enter(), and a set of constants to use 2007-12-25 17:52:02 +00:00
mem.c Delete the unused/not really used sparc64 (as in sun4u) cache.h, 2007-05-20 13:06:45 +00:00
mp_exception.S Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
mp_locore.S Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
mp_machdep.c - Do as the comment in pmap_bootstrap() suggests and flush all non-locked 2008-03-09 15:53:34 +00:00
nexus.c Rototill the sparc64 nexus(4) (actually this brings in the code the 2007-03-07 21:13:51 +00:00
ofw_bus.c
ofw_machdep.c
pmap.c - Do as the comment in pmap_bootstrap() suggests and flush all non-locked 2008-03-09 15:53:34 +00:00
prof_machdep.c
rtc.c If clock_ct_to_ts fails to convert time time from the real time clock, 2007-07-23 09:42:32 +00:00
rwindow.c
sc_machdep.c Rototill the sparc64 nexus(4) (actually this brings in the code the 2007-03-07 21:13:51 +00:00
spitfire.c - Do as the comment in pmap_bootstrap() suggests and flush all non-locked 2008-03-09 15:53:34 +00:00
stack_machdep.c Break out stack(9) from ddb(4): 2007-12-02 20:40:35 +00:00
support.S Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
swtch.S Convert the remainder of the low hanging fruits regarding including 2007-01-19 11:15:34 +00:00
sys_machdep.c
tick.c o Revamp the sparc64 interrupt code in order to be able to interface 2007-09-06 19:16:30 +00:00
tlb.c - Do as the comment in pmap_bootstrap() suggests and flush all non-locked 2008-03-09 15:53:34 +00:00
trap.c Remove kernel support for M:N threading. 2008-03-12 10:12:01 +00:00
tsb.c Update two tracepoints, i.e., CTRx() invocations, to reflect the demise of 2007-12-27 03:52:14 +00:00
uio_machdep.c
upa.c o Revamp the sparc64 interrupt code in order to be able to interface 2007-09-06 19:16:30 +00:00
vm_machdep.c In keeping with style(9)'s recommendations on macros, use a ';' 2008-03-16 10:58:09 +00:00