xref: /qemu/tests/qtest/libqos/rtas.h (revision cf716b31cba278a6dbff585d58fa29d1ae2fe334)
1 /*
2  * This work is licensed under the terms of the GNU GPL, version 2 or later.
3  * See the COPYING file in the top-level directory.
4  */
5 
6 #ifndef LIBQOS_RTAS_H
7 #define LIBQOS_RTAS_H
8 #include "libqos/malloc.h"
9 
10 int qrtas_get_time_of_day(QGuestAllocator *alloc, struct tm *tm, uint32_t *ns);
11 uint32_t qrtas_ibm_read_pci_config(QGuestAllocator *alloc, uint64_t buid,
12                                    uint32_t addr, uint32_t size);
13 int qrtas_ibm_write_pci_config(QGuestAllocator *alloc, uint64_t buid,
14                                uint32_t addr, uint32_t size, uint32_t val);
15 #endif /* LIBQOS_RTAS_H */
16