aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2020-04-02 16:52:15 +0200
committerAndrew Jones <drjones@redhat.com>2020-04-03 10:03:45 +0200
commit3251672a95b1fa6a096bcc02ec723697115f3f0a (patch)
treef74953a9a818e0d488d74599a02f247cb206d275
parent4f5ef94f3aac2bb002465e741453add618e54b02 (diff)
downloadkvm-unit-tests-3251672a95b1fa6a096bcc02ec723697115f3f0a.tar.gz
libcflat: Add other size defines
Introduce additional SZ_256, SZ_8K, SZ_16K macros that will be used by ITS tests. Signed-off-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Andrew Jones <drjones@redhat.com>
-rw-r--r--lib/libcflat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libcflat.h b/lib/libcflat.h
index ea19f61..7092af2 100644
--- a/lib/libcflat.h
+++ b/lib/libcflat.h
@@ -36,7 +36,10 @@
#define ALIGN(x, a) __ALIGN((x), (a))
#define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0)
+#define SZ_256 (1 << 8)
#define SZ_4K (1 << 12)
+#define SZ_8K (1 << 13)
+#define SZ_16K (1 << 14)
#define SZ_64K (1 << 16)
#define SZ_2M (1 << 21)
#define SZ_1G (1 << 30)