MCPcopy Create free account
hub / github.com/F-Stack/f-stack / timer_spkr_setfreq

Function timer_spkr_setfreq

freebsd/x86/isa/clock.c:193–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void
194timer_spkr_setfreq(int freq)
195{
196
197 freq = i8254_freq / freq;
198 mtx_lock_spin(&clock_lock);
199 outb(TIMER_CNTR2, freq & 0xff);
200 outb(TIMER_CNTR2, freq >> 8);
201 mtx_unlock_spin(&clock_lock);
202}
203
204static int
205getit(void)

Callers 1

sysbeepFunction · 0.85

Calls 1

outbFunction · 0.50

Tested by

no test coverage detected