Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107488156
D47395.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
684 B
Referenced Files
None
Subscribers
None
D47395.diff
View Options
diff --git a/sys/dev/vt/vt_core.c b/sys/dev/vt/vt_core.c
--- a/sys/dev/vt/vt_core.c
+++ b/sys/dev/vt/vt_core.c
@@ -1135,6 +1135,13 @@
sysbeep(vw->vw_bell_pitch, vw->vw_bell_duration);
}
+/*
+ * Beep with user-provided frequency and duration as specified by a KDMKTONE
+ * ioctl (compatible with Linux). The frequency is specified as a 8254 PIT
+ * divisor for a 1.19MHz clock.
+ *
+ * See https://tldp.org/LDP/lpg/node83.html.
+ */
static void
vtterm_beep(struct terminal *tm, u_int param)
{
@@ -1148,6 +1155,7 @@
return;
}
+ /* XXX period unit is supposed to be "timer ticks." */
period = ((param >> 16) & 0xffff) * SBT_1MS;
freq = 1193182 / (param & 0xffff);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 15, 10:28 PM (17 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14436699
Default Alt Text
D47395.diff (684 B)
Attached To
Mode
D47395: vt: add comments for KDMKTONE ioctl implementation
Attached
Detach File
Event Timeline
Log In to Comment