3 * \brief Shared header file
6 * \author Adam Lackorzynski <adam@os.inf.tu-dresden.de> */
11 * This file is part of TUD:OS and distributed under the terms of the
12 * GNU General Public License 2.
13 * Please see the COPYING-GPL-2 file for details.
17 #include <sys/cdefs.h>
18 #include <l4/sys/l4int.h>
19 #include <l4/cxx/hlist>
21 struct Rtc : cxx::H_list_item_t<Rtc>
23 virtual int set_time(l4_uint64_t nsec_offset_1970) = 0;
24 virtual int get_time(l4_uint64_t *nsec_offset_1970) = 0;
25 virtual bool probe() = 0;
28 static Rtc* find_rtc()
30 for (auto o = _rtcs.begin(); o != _rtcs.end(); ++o)
39 Rtc() { _rtcs.add(this); }
42 static cxx::H_list_t<Rtc> _rtcs;