genode/repos/base/include
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
..
base allocator avl: exception if metadata assign fails 2017-08-28 16:49:36 +02:00
cap_session Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
cpu Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
cpu_session API documentation refinements 2017-05-31 13:16:21 +02:00
cpu_thread Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
dataspace Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
deprecated Integrate core's RAM service into the PD service 2017-05-31 13:16:14 +02:00
drivers timer: generic timer_ticks_to_us implementation 2017-08-28 16:49:49 +02:00
io_mem_session API documentation refinements 2017-05-31 13:16:21 +02:00
io_port_session API documentation refinements 2017-05-31 13:16:21 +02:00
irq_session API documentation refinements 2017-05-31 13:16:21 +02:00
log_session API documentation refinements 2017-05-31 13:16:21 +02:00
parent API documentation refinements 2017-05-31 13:16:21 +02:00
pd_session core: add map method to pd_session interface 2017-08-18 10:24:46 +02:00
ram_session Integrate core's RAM service into the PD service 2017-05-31 13:16:14 +02:00
region_map Streamline exception types 2017-05-31 13:16:07 +02:00
rm_session API documentation refinements 2017-05-31 13:16:21 +02:00
rom_session API documentation refinements 2017-05-31 13:16:21 +02:00
root Integrate core's RAM service into the PD service 2017-05-31 13:16:14 +02:00
session Streamline exception types 2017-05-31 13:16:07 +02:00
spec base: remove include/spec/* other than ISA 2017-05-31 13:16:01 +02:00
thread Adjust file headers to refer to the AGPLv3 2017-02-28 12:59:29 +01:00
trace_session API documentation refinements 2017-05-31 13:16:21 +02:00
util util: make bit array and allocator copyable 2017-08-28 16:49:46 +02:00
README Move repositories to 'repos/' subdirectory 2014-05-14 16:08:00 +02:00

This directory contains include files of interfaces that are exported
by components to be used by other components. Each subdirectory corresponds
to the component exporting the interface.