hw/audio: Fix crashes when devices are used on ISA bus without DMA
[qemu.git] / tests / boot-sector.h
blob6ee6bb4d97f4eb98b694095c20f50d54fc383536
1 /*
2 * QEMU boot sector testing helpers.
4 * Copyright (c) 2016 Red Hat Inc.
6 * Authors:
7 * Michael S. Tsirkin <mst@redhat.com>
8 * Victor Kaplansky <victork@redhat.com>
10 * This work is licensed under the terms of the GNU GPL, version 2 or later.
11 * See the COPYING file in the top-level directory.
14 #ifndef TEST_BOOT_SECTOR_H
15 #define TEST_BOOT_SECTOR_H
17 #include "libqtest.h"
19 /* Create boot disk file. fname must be a suitable string for mkstemp() */
20 int boot_sector_init(char *fname);
22 /* Loop until signature in memory is OK. */
23 void boot_sector_test(QTestState *qts);
25 /* unlink boot disk file. */
26 void boot_sector_cleanup(const char *fname);
28 #endif /* TEST_BOOT_SECTOR_H */