summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/z8530kbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc/dev/z8530kbd.c')
-rw-r--r--sys/arch/sparc/dev/z8530kbd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/z8530kbd.c b/sys/arch/sparc/dev/z8530kbd.c
index 4fdb08ce063..7ce16c28a66 100644
--- a/sys/arch/sparc/dev/z8530kbd.c
+++ b/sys/arch/sparc/dev/z8530kbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: z8530kbd.c,v 1.5 2005/03/06 23:23:08 miod Exp $ */
+/* $OpenBSD: z8530kbd.c,v 1.6 2005/03/29 12:55:55 miod Exp $ */
/* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */
/*-
@@ -124,6 +124,11 @@
#include <dev/cons.h>
+#include "tctrl.h"
+#if NTCTRL > 0
+#include <sparc/dev/tctrlvar.h>
+#endif
+
/*
* How many input characters we can buffer.
* The port-specific var.h may override this.
@@ -1229,6 +1234,11 @@ zskbd_bell(zst, period, pitch, volume)
if (ticks <= 0)
ticks = 1;
+#if NTCTRL > 0
+ if (tadpole_bell(period / 10, pitch, volume) != 0)
+ return;
+#endif
+
s = splzs();
if (zst->zst_bellactive) {
if (zst->zst_belltimeout == 0)