mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
libqos: Use explicit QTestState for rtas operations
Drop one more client of global_qtest by teaching all rtas test functionality to pass in an explicit QTestState, adjusting all callers. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> [thuth: Use nicer indentation in rtas.h] Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
05e520f1c7
commit
9b67af76db
4 changed files with 40 additions and 28 deletions
|
@ -7,9 +7,11 @@
|
|||
#define LIBQOS_RTAS_H
|
||||
#include "libqos/malloc.h"
|
||||
|
||||
int qrtas_get_time_of_day(QGuestAllocator *alloc, struct tm *tm, uint32_t *ns);
|
||||
uint32_t qrtas_ibm_read_pci_config(QGuestAllocator *alloc, uint64_t buid,
|
||||
uint32_t addr, uint32_t size);
|
||||
int qrtas_ibm_write_pci_config(QGuestAllocator *alloc, uint64_t buid,
|
||||
uint32_t addr, uint32_t size, uint32_t val);
|
||||
int qrtas_get_time_of_day(QTestState *qts, QGuestAllocator *alloc,
|
||||
struct tm *tm, uint32_t *ns);
|
||||
uint32_t qrtas_ibm_read_pci_config(QTestState *qts, QGuestAllocator *alloc,
|
||||
uint64_t buid, uint32_t addr, uint32_t size);
|
||||
int qrtas_ibm_write_pci_config(QTestState *qts, QGuestAllocator *alloc,
|
||||
uint64_t buid, uint32_t addr, uint32_t size,
|
||||
uint32_t val);
|
||||
#endif /* LIBQOS_RTAS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue