-/* $OpenBSD: drm_linux.h,v 1.71 2018/01/30 08:35:21 jsg Exp $ */
+/* $OpenBSD: drm_linux.h,v 1.72 2018/01/30 08:37:44 jsg Exp $ */
/*
* Copyright (c) 2013, 2014, 2015 Mark Kettenis
* Copyright (c) 2017 Martin Pieuchot
#define __init
#define __exit
+#ifndef __user
+#define __user
+#endif
+
#define __printf(x, y)
#define barrier() __asm __volatile("" : : : "memory");
#define GFP_ATOMIC M_NOWAIT
#define GFP_NOWAIT M_NOWAIT
#define GFP_KERNEL (M_WAITOK | M_CANFAIL)
+#define GFP_USER (M_WAITOK | M_CANFAIL)
#define GFP_TEMPORARY (M_WAITOK | M_CANFAIL)
#define GFP_HIGHUSER 0
#define GFP_DMA32 0
return buf;
}
+static inline void *
+vmalloc(unsigned long size)
+{
+ return malloc(size, M_DRM, M_WAITOK | M_CANFAIL);
+}
+
static inline void *
vzalloc(unsigned long size)
{