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/linux Add S*_C, U*_C.



details:   https://anonhg.NetBSD.org/src/rev/164d1580e073
branches:  trunk
changeset: 365968:164d1580e073
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:25:55 2018 +0000

description:
Add S*_C, U*_C.

diffstat:

 sys/external/bsd/drm2/include/linux/types.h |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 3098760a419f -r 164d1580e073 sys/external/bsd/drm2/include/linux/types.h
--- a/sys/external/bsd/drm2/include/linux/types.h       Mon Aug 27 07:25:43 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/types.h       Mon Aug 27 07:25:55 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.6 2018/08/27 07:09:07 riastradh Exp $      */
+/*     $NetBSD: types.h,v 1.7 2018/08/27 07:25:55 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -34,6 +34,7 @@
 
 #include <sys/types.h>
 #include <sys/bus.h>
+#include <sys/stdint.h>
 
 typedef uint8_t u8;
 typedef uint16_t u16;
@@ -63,6 +64,16 @@
 typedef uint32_t __be32;
 typedef uint64_t __be64;
 
+#define        S8_C    INT8_C
+#define        S16_C   INT16_C
+#define        S32_C   INT32_C
+#define        S64_C   INT64_C
+
+#define        U8_C    UINT8_C
+#define        U16_C   UINT16_C
+#define        U32_C   UINT32_C
+#define        U64_C   UINT64_C
+
 /*
  * This is used for absolute bus addresses, so it has to be bus_addr_t
  * and not bus_size_t; bus_addr_t is sometimes wider than bus_size_t.



Home | Main Index | Thread Index | Old Index