Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Aug 2020 14:42:39 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363835 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <202008041442.074EgdsH018828@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Tue Aug  4 14:42:38 2020
New Revision: 363835
URL: https://svnweb.freebsd.org/changeset/base/363835

Log:
  linuxkpi: Add linux/sizes.h
  
  This file contain some defines for common sizes.
  
  Sponsored-by: The FreeBSD Foundation
  Reviewed by:	hselasky, emaste
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D25941

Added:
  head/sys/compat/linuxkpi/common/include/linux/sizes.h   (contents, props changed)

Added: head/sys/compat/linuxkpi/common/include/linux/sizes.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sys/compat/linuxkpi/common/include/linux/sizes.h	Tue Aug  4 14:42:38 2020	(r363835)
@@ -0,0 +1,51 @@
+/*-
+ * Copyright (c) 2020 The FreeBSD Foundation
+ *
+ * This software was developed by Emmanuel Vadot under sponsorship
+ * from the FreeBSD Foundation.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef __LINUX_SIZES_H__
+#define	__LINUX_SIZES_H__
+
+#define SZ_1K	(1024 * 1)
+#define SZ_4K	(1024 * 4)
+#define SZ_8K	(1024 * 8)
+#define SZ_16K	(1024 * 16)
+#define SZ_32K	(1024 * 32)
+#define SZ_64K	(1024 * 64)
+#define SZ_128K	(1024 * 128)
+#define SZ_256K	(1024 * 256)
+#define SZ_512K	(1024 * 512)
+
+#define SZ_1M	(1024 * 1024 * 1)
+#define SZ_2M	(1024 * 1024 * 2)
+#define SZ_8M	(1024 * 1024 * 8)
+#define SZ_16M	(1024 * 1024 * 16)
+#define SZ_32M	(1024 * 1024 * 32)
+#define SZ_64M	(1024 * 1024 * 64)
+
+#endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008041442.074EgdsH018828>