freebsd-nq/sys/pc98/include
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
..
pc Move pc98 specific parts to the pc98 specific file. 2005-04-13 13:12:12 +00:00
_bus.h There's no need to include all the detauls of struct bus_space_{tag,handle} 2005-04-19 21:07:00 +00:00
_inttypes.h
_limits.h
_stdint.h
_types.h By popular demand, move __HAVE_ACPI and __PCI_REROUTE_INTERRUPT into 2006-01-09 06:05:57 +00:00
apicreg.h Oops, correct typo. 2005-04-10 03:36:13 +00:00
apicvar.h Oops, correct typo. 2005-04-10 03:36:13 +00:00
apm_bios.h Move pc98 specific parts to the pc98 specific file. 2005-04-03 23:27:11 +00:00
apm_segments.h
asm.h
asmacros.h
atomic.h
bootinfo.h
bus_dma.h
bus.h Fix -Wundef warnings found when compiling i386 LINT, GENERIC and 2005-12-05 11:58:35 +00:00
clock.h The "free-lance" timer in the i8254 is only used for the speaker 2008-03-26 20:09:21 +00:00
cpu.h
cpufunc.h
cputypes.h
cserial.h
db_machdep.h
elf.h
endian.h
exec.h
float.h
floatingpoint.h
frame.h
gdb_machdep.h
ieeefp.h
in_cksum.h
intr_machdep.h
ioctl_bt848.h Oops, correct typo. 2005-04-10 03:36:13 +00:00
ioctl_meteor.h Oops, correct typo. 2005-04-10 03:36:13 +00:00
iodev.h
kdb.h
legacyvar.h
limits.h
md_var.h Add pc98 specific code to adjust the firmware geometry when it differs 2006-08-09 18:25:07 +00:00
memdev.h
metadata.h
minidump.h Add minidump.h for pc98. 2006-04-21 12:13:59 +00:00
mp_watchdog.h
mptable.h
mutex.h
nexusvar.h Add stub for pc98. 2008-03-14 09:00:04 +00:00
npx.h - Move the NPX_DEBUG option to options.{i386,pc98} and use opt_npx.h. 2005-05-12 12:47:41 +00:00
param.h By popular demand, move __HAVE_ACPI and __PCI_REROUTE_INTERRUPT into 2006-01-09 06:05:57 +00:00
pcaudioio.h Oops, correct typo. 2005-04-10 03:36:13 +00:00
pcb_ext.h
pcb.h
pci_cfgreg.h Move pc98 specific parts to the pc98 specific file. 2005-04-03 23:27:11 +00:00
pcpu.h
pecoff_machdep.h
perfmon.h
pmap.h
pmc_mdep.h Since pmc is a CPU feature, grab the mdep file from the i386 directory. 2005-04-19 21:06:06 +00:00
ppireg.h - Move timerreg.h to <arch>/include and split i8253 specific defines into 2005-05-14 09:10:02 +00:00
privatespace.h
proc.h
profile.h
psl.h
ptrace.h
reg.h
reloc.h
resource.h
runq.h
segments.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smapi.h
smp.h
speaker.h
specialreg.h
stack.h Catch up pc98 for i386 stack(9) changes: 2007-12-03 11:38:28 +00:00
stdarg.h
sysarch.h
timerreg.h The "free-lance" timer in the i8254 is only used for the speaker 2008-03-26 20:09:21 +00:00
trap.h
tss.h
ucontext.h
varargs.h
vm86.h
vmparam.h