]>
Commit | Line | Data |
---|---|---|
8046f374 DH |
1 | /* |
2 | * TOD (Time Of Day) clock - QEMU implementation | |
3 | * | |
4 | * Copyright 2018 Red Hat, Inc. | |
5 | * Author(s): David Hildenbrand <[email protected]> | |
6 | * | |
7 | * This work is licensed under the terms of the GNU GPL, version 2 or later. | |
8 | * See the COPYING file in the top-level directory. | |
9 | */ | |
10 | ||
11 | #include "qemu/osdep.h" | |
12 | #include "qapi/error.h" | |
13 | #include "hw/s390x/tod.h" | |
14 | ||
15 | static void qemu_s390_tod_get(const S390TODState *td, S390TOD *tod, | |
16 | Error **errp) | |
17 | { | |
18 | /* FIXME */ | |
19 | tod->high = 0; | |
20 | tod->low = 0; | |
21 | } | |
22 | ||
23 | static void qemu_s390_tod_set(S390TODState *td, const S390TOD *tod, | |
24 | Error **errp) | |
25 | { | |
26 | /* FIXME */ | |
27 | } | |
28 | ||
29 | static void qemu_s390_tod_class_init(ObjectClass *oc, void *data) | |
30 | { | |
31 | S390TODClass *tdc = S390_TOD_CLASS(oc); | |
32 | ||
33 | tdc->get = qemu_s390_tod_get; | |
34 | tdc->set = qemu_s390_tod_set; | |
35 | } | |
36 | ||
37 | static TypeInfo qemu_s390_tod_info = { | |
38 | .name = TYPE_QEMU_S390_TOD, | |
39 | .parent = TYPE_S390_TOD, | |
40 | .instance_size = sizeof(S390TODState), | |
41 | .class_init = qemu_s390_tod_class_init, | |
42 | .class_size = sizeof(S390TODClass), | |
43 | }; | |
44 | ||
45 | static void register_types(void) | |
46 | { | |
47 | type_register_static(&qemu_s390_tod_info); | |
48 | } | |
49 | type_init(register_types); |