Code style fixing and adde some documentation
[qemu/ovp.git] / qemu-vio.h
blob069947132efe4b4d45cd2989eea16dffa12580f6
1 #ifndef QUEMU_VIO_H
2 #define QUEMU_VIO_H
4 #include <linux/types.h>
6 //#define DEBUG_QEMUVIO
8 #ifdef DEBUG_QEMUVIO
9 void printSwapBuff(struct swap_buff *buf);
10 void printConfigs(void *devdata);
12 #define pdebug(fmt, ...) printf(fmt,##__VA_ARGS__)
13 #else
14 #define pdebug(fmt, ...) ({ if (0) printf(fmt, ##__VA_ARGS__); 0; })
15 #endif
17 #define toSeconds(t) (t.tv_sec + (t.tv_usec/1000000.))
20 #endif /* QUEMU_VIO_H */