aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons/teken/teken_subr_compat.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-05-31 19:35:41 +0000
committerEd Schouten <ed@FreeBSD.org>2009-05-31 19:35:41 +0000
commitec034df134b277b450fea2b0e700bf280b0ef2b7 (patch)
tree530bd0dac9786416dad1937bdf5bf4d407e19fe2 /sys/dev/syscons/teken/teken_subr_compat.h
parent912ee8a8a39470a1dd495d8771f02ed07c19361d (diff)
downloadsrc-ec034df134b277b450fea2b0e700bf280b0ef2b7.tar.gz
src-ec034df134b277b450fea2b0e700bf280b0ef2b7.zip
Restore support for bell pitch/duration.
Because we only support a single argument to tf_param, use 16 bits for the pitch and 16 bits for the duration. While there, make the argument unsigned. There isn't a single param call that needs a signed integer. Submitted by: danfe (modified)
Notes
Notes: svn path=/head/; revision=193184
Diffstat (limited to 'sys/dev/syscons/teken/teken_subr_compat.h')
-rw-r--r--sys/dev/syscons/teken/teken_subr_compat.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/syscons/teken/teken_subr_compat.h b/sys/dev/syscons/teken/teken_subr_compat.h
index e49c1cd5696f..4e03c6676da5 100644
--- a/sys/dev/syscons/teken/teken_subr_compat.h
+++ b/sys/dev/syscons/teken/teken_subr_compat.h
@@ -66,6 +66,15 @@ teken_subr_cons25_switch_virtual_terminal(teken_t *t, unsigned int vt)
teken_funcs_param(t, TP_SWITCHVT, vt);
}
+static void
+teken_subr_cons25_set_bell_pitch_duration(teken_t *t, unsigned int pitch,
+ unsigned int duration)
+{
+
+ teken_funcs_param(t, TP_SETBELLPD, (pitch << 16) |
+ (duration & 0xffff));
+}
+
#if 0
static void
teken_subr_vt52_decid(teken_t *t)