Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Add upper_32_bi...
details: https://anonhg.NetBSD.org/src/rev/49e906f8bfbb
branches: riastradh-drm2
changeset: 788282:49e906f8bfbb
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 03:03:37 2013 +0000
description:
Add upper_32_bits and lower_32_bits to <linux/kernel.h>.
diffstat:
sys/external/bsd/drm2/include/linux/kernel.h | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 58d75c70a2f3 -r 49e906f8bfbb sys/external/bsd/drm2/include/linux/kernel.h
--- a/sys/external/bsd/drm2/include/linux/kernel.h Wed Jul 24 03:03:23 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/kernel.h Wed Jul 24 03:03:37 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernel.h,v 1.1.2.16 2013/07/24 03:01:24 riastradh Exp $ */
+/* $NetBSD: kernel.h,v 1.1.2.17 2013/07/24 03:03:37 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -48,6 +48,9 @@
#define round_up(X, Y) roundup2(X, Y)
+#define upper_32_bits(X) ((uint32_t) (((X) >> 16) >> 16))
+#define lower_32_bits(X) ((uint32_t) ((X) & 0xffffffffUL))
+
#define container_of(PTR, TYPE, FIELD) \
((void)sizeof((PTR) - \
&((TYPE *)(((char *)(PTR)) - \
Home |
Main Index |
Thread Index |
Old Index