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/dist/include/uapi/drm Make sure uapi d...



details:   https://anonhg.NetBSD.org/src/rev/4464ecfca0eb
branches:  trunk
changeset: 1027802:4464ecfca0eb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 00:47:09 2021 +0000

description:
Make sure uapi drm.h defines __u* and __s* types even in kernel.

diffstat:

 sys/external/bsd/drm2/dist/include/uapi/drm/drm.h |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 573dc4f11ef2 -r 4464ecfca0eb sys/external/bsd/drm2/dist/include/uapi/drm/drm.h
--- a/sys/external/bsd/drm2/dist/include/uapi/drm/drm.h Sun Dec 19 00:47:00 2021 +0000
+++ b/sys/external/bsd/drm2/dist/include/uapi/drm/drm.h Sun Dec 19 00:47:09 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm.h,v 1.3 2021/12/19 00:47:00 riastradh Exp $        */
+/*     $NetBSD: drm.h,v 1.4 2021/12/19 00:47:09 riastradh Exp $        */
 
 /**
  * \file drm.h
@@ -59,7 +59,11 @@
 #include <sys/ioccom.h>
 #include <sys/types.h>
 #include <sys/fcntl.h>
-#ifndef _KERNEL
+
+#ifdef _KERNEL
+#include <linux/types.h>
+#include <asm/ioctl.h>
+#else
 typedef int8_t   __s8;
 typedef uint8_t  __u8;
 typedef int16_t  __s16;
@@ -68,10 +72,12 @@
 typedef uint32_t __u32;
 typedef int64_t  __s64;
 typedef uint64_t __u64;
+
 #endif
 #  ifndef __user
 #    define    __user
 #  endif
+
 typedef size_t   __kernel_size_t;
 typedef unsigned long drm_handle_t;
 



Home | Main Index | Thread Index | Old Index