xref: /freebsd/sys/compat/linuxkpi/common/include/linux/sizes.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
116fdd8b7SEmmanuel Vadot /*-
216fdd8b7SEmmanuel Vadot  * Copyright (c) 2020 The FreeBSD Foundation
316fdd8b7SEmmanuel Vadot  *
416fdd8b7SEmmanuel Vadot  * This software was developed by Emmanuel Vadot under sponsorship
516fdd8b7SEmmanuel Vadot  * from the FreeBSD Foundation.
616fdd8b7SEmmanuel Vadot  *
716fdd8b7SEmmanuel Vadot  * Redistribution and use in source and binary forms, with or without
816fdd8b7SEmmanuel Vadot  * modification, are permitted provided that the following conditions
916fdd8b7SEmmanuel Vadot  * are met:
1016fdd8b7SEmmanuel Vadot  * 1. Redistributions of source code must retain the above copyright
1116fdd8b7SEmmanuel Vadot  *    notice, this list of conditions and the following disclaimer.
1216fdd8b7SEmmanuel Vadot  * 2. Redistributions in binary form must reproduce the above copyright
1316fdd8b7SEmmanuel Vadot  *    notice, this list of conditions and the following disclaimer in the
1416fdd8b7SEmmanuel Vadot  *    documentation and/or other materials provided with the distribution.
1516fdd8b7SEmmanuel Vadot  *
1616fdd8b7SEmmanuel Vadot  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1716fdd8b7SEmmanuel Vadot  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1816fdd8b7SEmmanuel Vadot  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1916fdd8b7SEmmanuel Vadot  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2016fdd8b7SEmmanuel Vadot  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2116fdd8b7SEmmanuel Vadot  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2216fdd8b7SEmmanuel Vadot  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2316fdd8b7SEmmanuel Vadot  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2416fdd8b7SEmmanuel Vadot  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2516fdd8b7SEmmanuel Vadot  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2616fdd8b7SEmmanuel Vadot  * SUCH DAMAGE.
2716fdd8b7SEmmanuel Vadot  */
2816fdd8b7SEmmanuel Vadot 
29307f78f3SVladimir Kondratyev #ifndef _LINUXKPI_LINUX_SIZES_H_
30307f78f3SVladimir Kondratyev #define	_LINUXKPI_LINUX_SIZES_H_
3116fdd8b7SEmmanuel Vadot 
3216fdd8b7SEmmanuel Vadot #define SZ_1K	(1024 * 1)
33*04cbeeb5SJean-Sébastien Pédron #define SZ_2K	(1024 * 2)
3416fdd8b7SEmmanuel Vadot #define SZ_4K	(1024 * 4)
3516fdd8b7SEmmanuel Vadot #define SZ_8K	(1024 * 8)
3616fdd8b7SEmmanuel Vadot #define SZ_16K	(1024 * 16)
3716fdd8b7SEmmanuel Vadot #define SZ_32K	(1024 * 32)
3816fdd8b7SEmmanuel Vadot #define SZ_64K	(1024 * 64)
3916fdd8b7SEmmanuel Vadot #define SZ_128K	(1024 * 128)
4016fdd8b7SEmmanuel Vadot #define SZ_256K	(1024 * 256)
4116fdd8b7SEmmanuel Vadot #define SZ_512K	(1024 * 512)
4216fdd8b7SEmmanuel Vadot 
4316fdd8b7SEmmanuel Vadot #define SZ_1M	(1024 * 1024 * 1)
4416fdd8b7SEmmanuel Vadot #define SZ_2M	(1024 * 1024 * 2)
45*04cbeeb5SJean-Sébastien Pédron #define SZ_4M	(1024 * 1024 * 4)
4616fdd8b7SEmmanuel Vadot #define SZ_8M	(1024 * 1024 * 8)
4716fdd8b7SEmmanuel Vadot #define SZ_16M	(1024 * 1024 * 16)
4816fdd8b7SEmmanuel Vadot #define SZ_32M	(1024 * 1024 * 32)
4916fdd8b7SEmmanuel Vadot #define SZ_64M	(1024 * 1024 * 64)
50*04cbeeb5SJean-Sébastien Pédron #define SZ_128M	(1024 * 1024 * 128)
51*04cbeeb5SJean-Sébastien Pédron #define SZ_256M	(1024 * 1024 * 256)
52*04cbeeb5SJean-Sébastien Pédron #define SZ_512M	(1024 * 1024 * 512)
53*04cbeeb5SJean-Sébastien Pédron 
54*04cbeeb5SJean-Sébastien Pédron #define SZ_1G	(1024 * 1024 * 1024 * 1)
55*04cbeeb5SJean-Sébastien Pédron #define SZ_2G	(1024 * 1024 * 1024 * 2)
56*04cbeeb5SJean-Sébastien Pédron #define SZ_4G	(1024 * 1024 * 1024 * 4)
57*04cbeeb5SJean-Sébastien Pédron #define SZ_8G	(1024 * 1024 * 1024 * 8)
58*04cbeeb5SJean-Sébastien Pédron #define SZ_16G	(1024 * 1024 * 1024 * 16)
59*04cbeeb5SJean-Sébastien Pédron #define SZ_32G	(1024 * 1024 * 1024 * 32)
60*04cbeeb5SJean-Sébastien Pédron 
61*04cbeeb5SJean-Sébastien Pédron #define SZ_64T	(1024 * 1024 * 1024 * 1024 * 64)
6216fdd8b7SEmmanuel Vadot 
6316fdd8b7SEmmanuel Vadot #endif
64