1 /* 2 * SPDX-License-Identifier: BSD-3-Clause 3 * SPDX-FileCopyrightText: Copyright TF-RMM Contributors. 4 */ 5 6 #ifndef SIZES_H 7 #define SIZES_H 8 9 #include <utils_def.h> 10 11 #define SZ_1K (UL(1) << 10) 12 #define SZ_1M (UL(1) << 20) 13 #define SZ_1G (UL(1) << 30) 14 15 #define SZ_4K (UL(4) * SZ_1K) 16 #define SZ_16K (UL(16) * SZ_1K) 17 #define SZ_64K (UL(64) * SZ_1K) 18 19 #define SZ_2G (UL(2) * SZ_1G) 20 #define SZ_2M (UL(2) * SZ_1M) 21 22 #ifndef __ASSEMBLER__ 23 #define BITS_PER_UL (8 * sizeof(unsigned long)) 24 #endif 25 26 #endif /* SIZES_H */ 27