diff options
| author | mycroft <mycroft@NetBSD.org> | 1993-06-16 02:57:17 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 1993-06-16 02:57:17 +0000 |
| commit | 94df11ad63b0e9dbe1bbbe0704f56af9a15b7bd1 (patch) | |
| tree | 6de6940565ae21bb5c95eca425ca6de56fae411b /sys/dev | |
| parent | ec956c81afa17fc542b1e37a0597cd2cf690c5b5 (diff) | |
Make sysbeep() take a frequency, not a timer count, and add constants
BEEP_FREQ and BEEP_TIME which can be overridden in the config file.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/isa/isa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/isa.c b/sys/dev/isa/isa.c index eddb9a682e7..b45864b6a43 100644 --- a/sys/dev/isa/isa.c +++ b/sys/dev/isa/isa.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)isa.c 7.2 (Berkeley) 5/13/91 - * $Id: isa.c,v 1.17 1993/06/15 21:37:16 mycroft Exp $ + * $Id: isa.c,v 1.18 1993/06/16 02:57:17 mycroft Exp $ */ /* @@ -647,8 +647,8 @@ void sysbeep(int pitch, int period) */ disable_intr(); outb(TIMER_MODE, TIMER_SEL2|TIMER_16BIT|TIMER_SQWAVE); - outb(TIMER_CNTR2, pitch); - outb(TIMER_CNTR2, (pitch>>8)); + outb(TIMER_CNTR2, TIMER_DEV(pitch)%256); + outb(TIMER_CNTR2, TIMER_DEV(pitch)/256); outb(0x61, inb(0x61) | 3); /* enable counter 2 */ enable_intr(); } |
