summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2008-03-26 22:02:51 +0000
committerphk <phk@FreeBSD.org>2008-03-26 22:02:51 +0000
commitf5d8b746903f5367297004175baffffdc7d01824 (patch)
tree29d0b68a4668253b0cdd06139f3149fb6d925b76 /sys/pc98/cbus
parentdafcba3dbfc471eed7465489fa4d60bcecf47eb6 (diff)
downloadFreeBSD-src-f5d8b746903f5367297004175baffffdc7d01824.zip
FreeBSD-src-f5d8b746903f5367297004175baffffdc7d01824.tar.gz
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.
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r--sys/pc98/cbus/syscons_cbus.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/pc98/cbus/syscons_cbus.c b/sys/pc98/cbus/syscons_cbus.c
index c23fbc4..9f42f39 100644
--- a/sys/pc98/cbus/syscons_cbus.c
+++ b/sys/pc98/cbus/syscons_cbus.c
@@ -38,8 +38,6 @@
#include <sys/sysctl.h>
#include <machine/clock.h>
-#include <machine/ppireg.h>
-#include <machine/timerreg.h>
#include <pc98/pc98/pc98_machdep.h>
@@ -227,16 +225,10 @@ sc_tone(int herz)
{
if (herz) {
- /* enable counter 1 */
- ppi_spkr_on();
- /* set command for counter 1, 2 byte write */
if (timer_spkr_acquire())
return EBUSY;
- /* set pitch */
timer_spkr_setfreq(herz);
} else {
- /* disable counter 1 */
- ppi_spkr_off();
timer_spkr_release();
}
return 0;
OpenPOWER on IntegriCloud