1 // SPDX-License-Identifier: GPL-2.0 2 #ifndef QEMU_DEP_H 3 #define QEMU_DEP_H 4 5 #include <stdint.h> 6 7 #define u64 uint64_t 8 #define u32 uint32_t 9 #define u16 uint16_t 10 #define u8 uint8_t 11 12 #define s64 int64_t 13 #define s32 int32_t 14 #define s16 int16_t 15 #define s8 int8_t 16 17 #define MiB (1U << 20) 18 19 #define QEMU_PACKED __attribute__((packed)) 20 21 #define QEMU_BUILD_BUG_MSG(x, msg) _Static_assert(!(x), msg) 22 #define QEMU_BUILD_BUG_ON(x) QEMU_BUILD_BUG_MSG(x, "not expecting: " #x) 23 #define QEMU_IS_ALIGNED(n, m) (((n) % (m)) == 0) 24 25 #include "ublksrv_tgt_endian.h" 26 27 #endif 28