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