Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/include/asm Add put_unaligned_le32 to ...



details:   https://anonhg.NetBSD.org/src/rev/bacd66d15875
branches:  trunk
changeset: 336313:bacd66d15875
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Feb 25 14:36:58 2015 +0000

description:
Add put_unaligned_le32 to Linux <asm/unaligned.h>.

diffstat:

 sys/external/bsd/drm2/include/asm/unaligned.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 44080b0cdc02 -r bacd66d15875 sys/external/bsd/drm2/include/asm/unaligned.h
--- a/sys/external/bsd/drm2/include/asm/unaligned.h     Wed Feb 25 14:08:45 2015 +0000
+++ b/sys/external/bsd/drm2/include/asm/unaligned.h     Wed Feb 25 14:36:58 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unaligned.h,v 1.1 2014/07/16 20:59:58 riastradh Exp $  */
+/*     $NetBSD: unaligned.h,v 1.2 2015/02/25 14:36:58 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -41,4 +41,11 @@
        return le32dec(p);
 }
 
+static inline void
+put_unaligned_le32(uint32_t v, void *p)
+{
+
+       return le32enc(p, v);
+}
+
 #endif  /* _ASM_UNALIGNED_H_ */



Home | Main Index | Thread Index | Old Index