diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-17 18:19:49 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-19 08:31:31 +0100 |
commit | 022c62cbbcf1ff40b23c92874f8670cddfec2414 (patch) | |
tree | 3ce0d762aec7ed41ecc486156cffcc0fbbd16d26 /iorange.h | |
parent | 737e150e89c44c6b33691a627e24bac7fb58f349 (diff) | |
download | qemu-022c62cbbcf1ff40b23c92874f8670cddfec2414.zip qemu-022c62cbbcf1ff40b23c92874f8670cddfec2414.tar.gz qemu-022c62cbbcf1ff40b23c92874f8670cddfec2414.tar.bz2 |
exec: move include files to include/exec/
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'iorange.h')
-rw-r--r-- | iorange.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/iorange.h b/iorange.h deleted file mode 100644 index cd980a8..0000000 --- a/iorange.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef IORANGE_H -#define IORANGE_H - -#include <stdint.h> - -typedef struct IORange IORange; -typedef struct IORangeOps IORangeOps; - -struct IORangeOps { - void (*read)(IORange *iorange, uint64_t offset, unsigned width, - uint64_t *data); - void (*write)(IORange *iorange, uint64_t offset, unsigned width, - uint64_t data); - void (*destructor)(IORange *iorange); -}; - -struct IORange { - const IORangeOps *ops; - uint64_t base; - uint64_t len; -}; - -static inline void iorange_init(IORange *iorange, const IORangeOps *ops, - uint64_t base, uint64_t len) -{ - iorange->ops = ops; - iorange->base = base; - iorange->len = len; -} - -#endif |