genode/repos/os/src/drivers
Martin Stein 399e1586be timer: generic timer_ticks_to_us implementation
There are hardware timers whose frequency can't be expressed as
ticks-per-microsecond integer-value because only a ticks-per-millisecond
integer-value is precise enough. We don't want to use expensive
floating-point values here but nonetheless want to translate from ticks
to time with microseconds precision. Thus, we split the input in two and
translate both parts separately. This way, we can raise precision by
shifting the values to their optimal bit position. Afterwards, the results
are shifted back and merged together again.

As this algorithm is not so trivial anymore and used by at least three
timer drivers (base-hw/x86_64, base-hw/cortex_a9, timer/pit), move it to a
generic header to avoid redundancy.

Ref #2400
2017-08-28 16:49:49 +02:00
..
acpi acpi_drv: use platform_info for rsdt/xsdt lookup 2017-06-29 11:59:50 +02:00
ahci ahci: optionally report discovered devices 2017-05-31 13:16:20 +02:00
audio/spec/linux Streamline exception types 2017-05-31 13:16:07 +02:00
framebuffer os: fix fb_boot_drv framebuffer padding 2017-08-28 16:49:45 +02:00
gpio/spec Fix source file location in RPi GPIO driver 2017-05-31 13:16:21 +02:00
input Streamline exception types 2017-05-31 13:16:07 +02:00
nic/spec os: removal of deprecated os/config.h (fix #2431) 2017-05-31 13:16:22 +02:00
platform/spec platform_drv: replace nova specific device_pd 2017-08-18 10:24:47 +02:00
rtc/spec/x86
sd_card sd_card_drv: prevent deprecated warnings 2017-08-17 11:04:18 +02:00
timer timer: generic timer_ticks_to_us implementation 2017-08-28 16:49:49 +02:00
uart os: removal of deprecated os/config.h (fix #2431) 2017-05-31 13:16:22 +02:00
usb_block