Merge remote-tracking branch 'qemu-project/master'
[qemu/ar7.git] / block / blksim.h
blob7afca98513c70e2f7d501016d9e4970e5f088319
1 /*
2 * Copyright (c) 2010-2011 IBM
4 * Authors:
5 * Chunqiang Tang <ctang@us.ibm.com>
7 * This work is licensed under the terms of the GNU GPL, version 2.
8 * See the COPYING file in the top-level directory.
9 */
11 /*=============================================================================
12 * A short description: this is the header of the simulated block device
13 * driver "sim".
14 *============================================================================*/
16 #ifndef __block_sim_h__
17 #define __block_sim_h__
19 void enable_block_sim (int print, int64_t _rand_time);
20 void sim_list_tasks (void);
21 int sim_task_by_uuid (int64_t uuid);
22 int sim_all_tasks (void);
23 int64_t sim_get_time (void);
24 void *sim_new_timer (void *cb, void *opaque);
25 void sim_mod_timer (void *ts, int64_t expire_time);
26 void sim_free_timer (void *ts);
27 void sim_del_timer (void *ts);
28 void sim_set_disk_io_return_code (int ret);
30 #endif