Module Name:    src
Committed By:   riastradh
Date:           Mon Aug 27 07:25:55 UTC 2018

Modified Files:
        src/sys/external/bsd/drm2/include/linux: types.h

Log Message:
Add S*_C, U*_C.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm2/include/linux/types.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/types.h
diff -u src/sys/external/bsd/drm2/include/linux/types.h:1.6 src/sys/external/bsd/drm2/include/linux/types.h:1.7
--- src/sys/external/bsd/drm2/include/linux/types.h:1.6	Mon Aug 27 07:09:07 2018
+++ src/sys/external/bsd/drm2/include/linux/types.h	Mon Aug 27 07:25:55 2018
@@ -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 uint16_t __be16;
 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.

Reply via email to